3.2.0

Code Compilation

What tool do you use to compile the grid code into the single grid.js file? Some custom tool that processes those $import statements?

Thanks
Greg
July 21,
I was also interested in knowing the same...
Sudhaker Raj
July 23,
bump
July 27,
As an adjuct to this question, how do you handle having your code in a format so that it can be effectively debugged with the Microsoft script debugger or other script debugger. Certainly you must have a format other than a single long line for debugging purposes??

Thanks Alex. I'm very impressed by the work you've done here.
Greg
July 27,
The package comes with two variants of the same code:
- 'compressed' (i.e. whitespace and linebreaks removed) in the /runtime directory
- original, for debug purposes, in the /source directory.
It is the same code, so you just have to change the references in your .htm files:
<link href="../../source/styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
    <script src="../../source/lib/grid.js"></script>
Alex (ActiveWidgets)
July 28,
(and original question)
import statements are actually just JS functions which add external script blocks using document.write() function.

I am not using any special tool, just another (batch) script which removes whitespaces and merges everything into one file.
Alex (ActiveWidgets)
July 28,
Isn't it amazing how obvious things become when they are explained to you <g>. Thanks Alex, and glad to see you back on the list answering our feeble questions. Hope this project of your's isn't overwhelming you!
Greg
July 29,
Hi, Alex. Could you provide source of batch script which removes whitespacees and merges everything into one file ?
Roman
August 22,
Hi.

In openmodeling we use a tiny java program doing the crunching by running a script in batch.

The script is the following:
-----------------------------------------------------------------------------
ESC (ECMAScript Cruncher)
* Version : 1.11
* Date : 2002-01-25 11:03:43 [+0100]
* License : GNU GPL (http://www.gnu.org/copyleft/gpl.txt)
* Copyright (C) 2001,2002 Thomas Loo - Saltstorm. &lt;esc@saltstorm.net&gt;

---------------------------------------------------------------------------
ESC is an ECMAScript(*) pre-processor enabling an unlimited number of
external scripts to be compressed/crunched into tight, bandwidth-optimized
packages. ESC supports compressing of external sources only. Trying to
process scripts inlined in HTML, ASP, PHP or equivalent pages are NOT
recommended with this version of ESC. This feature might be added in a
future version. Type "cscript ESC.wsf -help" for usage instructions.

ESC is built using components from the Soya Scripting API 1.0.0-b5,
a uni-host/cross-browser ECMAScript compliant class-library distributed
freely under the terms of the BSD License. The Soya Scripting API,
'lib-soya' and the Soya SDK can be found at http://www.saltstorm.net
---------------------------------------------------------------------------
* ECMAScript is the international standard for javascript.

Search for esc.wsf in google and you find it. If you want to run in batch maybe we can provide you goodies.
John Ophof http://open-modeling.sourceforge.net
August 22,
I still have some problems with building grid.js.
If i try to run grid.js from source/lib folder csscript returns error
"Microsoft JScript runtime error: Object doesn't support this property or method".
If i try use ESC.wsf like that "cscript ESC.wsf -l 1 -ow grid1.js lib"
i get bad grid.js file :(
Please help.
Roman
August 22,
Hi,

Are the folders there your lib must be full named as path. Be patient and it will work

http://www.saltstorm.net/depo/esc/usage.wbm?pod=js

See example of use.
John Ophof http://open-modeling.sourceforge.net
August 22,

This topic is archived.

See also:


Back to support forum