> > You know what the next step is, don't you? A code editor, with > > immediate evaluation of changed code to see the effect on the > > demo. Just like wxPython. > > > We already worked on that but ran into all kinds of problems, so > removed the relevant code again. The problem is injecting the > modified code back into the Iframe. If you are using > 'document.write()' everything works nicely for code immediately > contained on the page. But all external code (e.g. referenced > through "<script src=...>") seems not to be loaded, so > you get "qx undefined". Furthermore, once you modified the source > of the the Iframe document, accessing the src attribute produces an > error (at least in FF), which means you cannot reload the original > sample code easily (you have to load another sample, the come back > to the initial one). > > So we backed out.
A pity. This would be a seriously sexy addition. How about this approach: 1. API application compiled with all classes (so that any modified code will find the source). 2. API application loaded via <script src= tag as normal into main window. 3. API application loads itself from the server again, into a string object. 4. Create a throw-away iframe object for the modified code, in another sub-tab. That way you aren't concerned about any problems with the src attribute, and further, can compare the behaviours of the original sample and the modified sample. 5. When injecting the code, concatenate the full API application string with the modified code and inject the lot in the body of the iframe. That way you guarantee that the qx object is available. Hugh ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
