what does runtime/activeui.js do?


I just found this project, I have to take my hat off, it is awesome! I am trying to understand how the system works, and came across actuveui.js, I'm not quite sure what it does. It appears that all white space and newlines have been removed from it. What is its purpose?

Also, any idea if this will ever work in Safari and Opera? What are those browsers missing that cause the grid to not work?


November 21,
The file runtime/activeui.js contains all the scripts from source/lib/* combined into the single file and compressed (i.e. white space and line breaks removed). Same for runtime/classic/activeui.css – it’s the stylesheet, which contains everything from source/styles/classic/ in one compressed file. You can use either

<link href="runtime/classic/activeui.css" rel="stylesheet" type="text/css" >
<script src="runtime/activeui.js">


<link href="source/styles/classic/activeui.css" rel="stylesheet" type="text/css" >
<script src="source/lib/activeui.js">

it’s the same except for the number of file requests.

To make this working in other browsers requires
- good DOM events support (scroll!)
- CSS box-sizing: border-box;
- HTTPRequest + XPath

I’m not sure if Opera or Safari have that.

Alex (ActiveWidgets)
November 21,
Thank you.

How would I generate the compressed file if I make a change to the source?

November 21,
Basically you just need to merge all files in one and maybe remove spaces/linebreaks. I'll include the script which does that in the next releases.

However I don't recommend modifying the sources. I'm going to publish new releases often, so keeping your changes would be a pain. Instead of editing source files you can achieve the same result by applying changes ('patch') during run-time on top of ActiveWidgets classes (the technique is decribed here:
http:/messages/?id=81 , there is an example in /patches folder). Then you will be able to replace the library with a later version and still have your modifications in place.
Alex (ActiveWidgets)
November 21,
Hi Alex,

where can I find the script mentioned above?
March 8,

This topic is archived.

See also:

Back to support forum