Hello,

For my app, a user's sandbox has two states...I'll call them focused and 
unfocused.  While unfocused, my rough goal is to display content in their 
sandbox as if the browser had scripting disabled, maybe even supporting the 
noscript tag so that users could create a kind of "splash"/summary/icon 
-type of view.  When the sandbox is clicked, it becomes focused, at which 
point I'd like javascript to become enabled.

The obvious way to do this that I can figure out is to compile two versions 
of a user's source on the server, one with, one without, scripting enabled 
(which I'm assuming is easily doable, correct if wrong).  My app would 
simply download the <noscript> version initially, and only download the 
scripted version if needed.

Does this sound like a good approach?  The other scheme I can think of is 
compiling just one full version, and somehow having caja on the client 
render the compiled html as if scripting were enabled or disabled, but I 
don't know if that's possible.

In fact, I kind of like the first approach because it probably means much 
less network overhead (assuming <noscript> content is comparatively very 
small) if a user of my app is scrolling through dozens of profiles and only 
focusing a given profile once in a while.

Anyway, sorry for rambling...thanks again for any input.

- Doug

Reply via email to