Hi Deech As Thomas already pointed out, the HTML code generated by qooxdoo would be rather bloated and most likely not really usable as a "normal/static" Web-Page.
If i were you, i'd create some sort of Interface or abstract baseclass for the Widgets you'd like to drag to the canvas. This interface would define a method like "generateHTML" which would return the HTML String for that element, depending on the parameters set for that widget. When you're ready to save the canvas to HTML, just gather all "generateHTML" results from the Widgets placed on the canvas and save that to the Database or wherever you want to store it. Sure, this approach is more complicated than using the code generated by qooxdoo, but gives you improved control over the resulting code. Best - Roman thron7 wrote: > Hi Deech, > > >> Qooxdoo is very impressive and I am considering using it for a project >> where a user can create a purely informational web page using >> predefined components. > > Fine :). > >> In a typical use case, the user is faced with a blank region (the >> canvas), and a column of available components (images, movies, audio >> clips etc). The user can then drag-drop and position the components >> into the canvas to his satisfaction. In the final step, the user can >> save the canvas to simple HTML, essentially freezing it and stripping >> away any dependancy on Qooxdoo. >> >> Is this possible in Qooxdoo? The final step where the canvas "compiles >> down" into simple HTML is particularly important to me. > > Mh, I'm not sure about this. You could try to serialize the DOM to HTML > at a given point in time (and that will leave you with myriads of > <div>'s). But qooxdoo lives as much in the Javascript objects as it > lives in DOM elements. And you will be missing out on the Javascript > objects. Just think of all the event handlers etc. If you resurrect the > HTML you'll probably end up with a "dead" picture that looks like a user > interface, but has no behaviour whatsoever. (If you want to get a feel > for this open any qooxdoo application and in a JS console (Firebug or > qooxdoo console or similar) enter "qx.core.ObjectRegistry.shutdown()" ;). > > My 2 pence. We're in the middle of bringing out a new release, so it > might take a bit for others to comment on this. > > Thomas > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
