Hello Kora,
The best way to that is to load JQuery asynchronously and initialize your 
plugin once it's loaded.
Here is a code sample you can use for your plugins.

initJQuery : function()
{
   var self = this;
   //checkl if jQuery is allredy loaded, loop if not
   if(typeof(jQuery) == "boolean") {
                //_initJQuery: loading but not finished, loop
    qx.event.Timer.once(this._initJQuery, this, 10);
    return;
   }

   //if jQuery allready start to load
   if(typeof(jQuery) == "function") {
     //_initJQuery: allredy loaded fast forward to _initPlugin
     self._initPlugin();
     return;
   }

   //_initJQuery: starting loading JQuery
   jQuery = true;
   var url = "JQuery Path"
   var req = new qx.bom.request.Script();
                
   req.onload = function() {
      //_initPlugin: loading finished fast forward to _initPlugin
      self._initPlugin();
   }
                
   req.open("GET", url);
   req.send();
},


_initPlugin : function(){
        //init your plugins like $(#id).MyPlugin();
}


Regards,
Romeo

-----Ursprüngliche Nachricht-----
Von: kora [mailto:[email protected]] 
Gesendet: Freitag, 14. Juni 2013 09:52
An: [email protected]
Betreff: [qooxdoo-devel] Need Help in how to execute java script code inside of 
embed.html code

Hello,

I need to use a foreign js libraries / "jQuery plugin" inside of qooxdoo.

Reading a topic
http://qooxdoo.678.n2.nabble.com/jqGrid-and-qooxdoo-td5808285.html#none
<http://qooxdoo.678.n2.nabble.com/jqGrid-and-qooxdoo-td5808285.html#none>
 a suggestion was, to use embed.html to use a foreign js libraries in qooxdoo.

So I made a little test with embed.html but it seems not to execute a script 
inside of the embeded html code.


Here is the playground example:
http://tinyurl.com/pdxr46l <http://tinyurl.com/pdxr46l>  

Has anybody an idea what is wrong ?

Cheers

Kora




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Need-Help-in-how-to-execute-java-script-code-inside-of-embed-html-code-tp7583866.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to