Hi, the following code is to build a asyncjstree from www.jstree.com. and I use _IG_GetCachedUrl() to return the cached version to build this jstree since in a gadget can not directly using ajax to call a web server. But it still shows nothing. No tree. I test the follow code in frontpage it is working very well. Any suggestion will be highly appreciated, thanks.
the gadget is :http://hosting.gmodules.com/ig/gadgets/file/ 110988133272630009707/fetchTest.xml James var url = _IG_GetCachedUrl("http://www.jstree.com/reference/_examples/ 1_async.php"); $(function () { alert(url); $("#demo5").tree({ data : { type : "json", url : url, async : true, async_data : function (NODE) { return { id : $(NODE).attr ("id") || 0, my_param : "my_value" } } } }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
