Von: "Mustafa Sak" <mustafa....@1und1.de>
An: "qooxdoo Development" <qooxdoo-devel@lists.sourceforge.net>
Betreff: Re: [qooxdoo-devel] Get current code in embed.Html (with Sage cell)
Sorry Bober,
but I am not familiar with sagecell. But normally a lib provides a function to be able connect the logic with a Dom element. Or a library overtakes the whole document. In this case you should think about using an embedded Iframe widget [1]
[1] http://demo.qooxdoo.org/current/apiviewer/#qx.ui.embed.Iframe
Gruß
Mustafa Sak
Applications & Integration
1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany
Von: bober1...@gmx.de [mailto:bober1...@gmx.de]
Gesendet: Mittwoch, 4. März 2015 14:50
An: qooxdoo-devel@lists.sourceforge.net
Betreff: Re: [qooxdoo-devel] Get current code in embed.Html (with Sage cell)
Dear Mustafa,
here the complete email:
I simply bound the sage lib to the whole application using
<script src="" href="https://sagecell.sagemath.org/static/embedded_sagecell.js" target="_blank">https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
in the head of the index.html
Is there a better way to do so?
How exactly am I supposed to implement my html code?
And how can I access the code in it?
Right now I am using a button that shows a alert containing the html value of the embeded html:
apply_button.addListener("execute", function(e) {
alert(sage.getHtml());
});
If I call
sage.getContentElement().getDomElement()
it says "Object HTMLDivElement"
Regards,
Bober
Gesendet: Mittwoch, 04. März 2015 um 14:27 Uhr
Von: "Mustafa Sak" <mustafa....@1und1.de>
An: "qooxdoo Development" <qooxdoo-devel@lists.sourceforge.net>
Betreff: Re: [qooxdoo-devel] Get current code in embed.Html (with Sage cell)
Sorry but I could not see your example code.
By the way,
Console.log(sage.getContentElement().getDomElement());
will show you the DOM elements you are interested in.
The property "html" is just one way, you are bale to set HTML code as String and the widget lets it be evaluated by the browser. But the property still just holds the string, not the evaluated and maybe modified DOM elements.
Your third party library will sure make some modification on the DOM, so please use getDomElement().
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 14:07
An: qooxdoo-devel@lists.sourceforge.net
Betreff: Re: [qooxdoo-devel] Get current code in embed.Html (with Sage cell)
Dear Mustafa,
thanks for the answer.
I simply bound the sage lib to the whole application using
in the head of the index.html
Is there a better way to do so?
How exactly am I supposed to implement my html code?
And how can I access the code in it?
Right now I am using a button that shows a alert containing the html value
of the embeded html:
apply_button.addListener("execute", function(e) {
alert(sage.getHtml);
});
Regards,
Bober
--
View this message in context: http://qooxdoo.678.n2.nabble.com/Get-current-code-in-embed-Html-with-Sage-cell-tp7586907p7586913.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
------------------------------------------------------------------------------ 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
- [qooxdoo-devel] Get current code in embed.Html (with Sage cell... Bober
- Re: [qooxdoo-devel] Get current code in embed.Html (with ... Mustafa Sak
- Re: [qooxdoo-devel] Get current code in embed.Html (w... Bober
- Re: [qooxdoo-devel] Get current code in embed.Htm... Mustafa Sak
- Re: [qooxdoo-devel] Get current code in embed... Bober1990
- Re: [qooxdoo-devel] Get current code in ... Mustafa Sak
- Re: [qooxdoo-devel] Get current code... Bober1990
- Re: [qooxdoo-devel] Get current ... Mustafa Sak
- Re: [qooxdoo-devel] Get current ... Bober1990