Hi, would you please describe how you bound the sage library with the embedded widget?
Please notice, that the embedded HTML code will be evaluated asynchronously. That means you should use following scheme to implement your code: var sage = new qx.ui.embed.Html(''); sage.addListenerOnce("appear", function(){ var elem = sage.getContentElement().getDomElement(); // bind sage lib with DOM element }, this); Gruß Mustafa Sak Applications & Integration 1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany -----Ursprüngliche Nachricht----- Von: Bober [mailto:bober1...@gmx.de] Gesendet: Mittwoch, 4. März 2015 12:04 An: qooxdoo-devel@lists.sourceforge.net Betreff: [qooxdoo-devel] Get current code in embed.Html (with Sage cell) Hi, I am using a qx.ui.embed.Html object to include a Sage Div in my Application. The code I use in the Html is: var sage = new qx.ui.embed.Html(''); which is translated to three separate DIVs by Sage (https://sagecell.sagemath.org/static/embedded_sagecell.js) while rendering the site. I do now have to get access to the new inserted DIVs and change their value for example. I was trying to use the getHtml() method: sage.getHtml() but it always returns the initial value I gave to it, not the current html created by the Sage Script (which I can also see in my browser/debugger). How can I comfortably access the current content of a embed.Html? And how can I comfortably navigate thru the hierarchies? Thanks a lot for your advice. Regards, Bober -- View this message in context: http://qooxdoo.678.n2.nabble.com/Get-current-code-in-embed-Html-with-Sage-cell-tp7586907.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel