Felipe, Call the javascript files using full path, including domain. Example:
common/js/jquery.js change to http://www.mydomain.com/path/common/js/jquery.js . Let me know if you have any doubt. -Robson 2009/3/9 Felipe Oliveira <ifn...@gmail.com> > Hi Robson, > > Following example of code (xml). > > Tomorrow I test you code, and send e-mail about, thanks for help ;P > > <?xml version="1.0" encoding="UTF-8" ?> > <Module> > <ModulePrefs title="My APP" description="APP" title_url=" > http://www.orkut.com" height="300" author="Felipe Oliveira" author_email=" > ifn...@gmail.com"> > <Require feature="opensocial-0.7"/> > </ModulePrefs> > <Content type="html" view="canvas"> > <![CDATA[ > <link href="common/css/style.css" type="text/css" > rel="stylesheet"></link> > > <script type="text/javascript" > src="common/js/jquery.js"></script> > <script type="text/javascript" src="common/js/friends.js"></script> > <script type="text/javascript" > src="common/js/functions.js"></script> > <script type="text/javascript" src="common/js/canvas.js"></script> > > <div class="load">loading...</div> > > <div class="container" style="display: none"> > ... content - canvas ... > </div> > ]]> > </Content> > <Content type="html" view="profile"> > <![CDATA[ > <link href="common/css/style.css" type="text/css" > rel="stylesheet"></link> > > <script type="text/javascript" > src="common/js/jquery.js"></script> > <script type="text/javascript" src="common/js/friends.js"></script> > <script type="text/javascript" > src="common/js/functions.js"></script> > <script type="text/javascript" src="common/js/profile.js"></script> > > <div class="load">loading...</div> > > <div class="container" style="display: none"> > ... content - profile ... > </div> > ]]> > </Content> > </Module> > > Thanks. > > Felipe Oliveira. > > > On Mon, Mar 9, 2009 at 6:24 PM, Robson Dantas <biu.dan...@gmail.com>wrote: > >> Hi Felipe, >> >> Send us some piece of code to illustrate how you are loading the external >> files. >> >> If you´re trying to call dynamically, take a look over the functions >> below: >> >> >> function addScript(page) >> { >> >> var headID = document.getElementsByTagName("head")[0]; >> var newScript = document.createElement('script'); >> newScript.type = 'text/javascript'; >> newScript.src = page; >> headID.appendChild(newScript); >> } >> >> >> function addCss(page) >> { >> >> var headID = document.getElementsByTagName("head")[0]; >> var cssNode = document.createElement('link'); >> cssNode.type = 'text/css'; >> cssNode.rel = 'stylesheet'; >> cssNode.href = page; >> cssNode.media = 'screen'; >> headID.appendChild(cssNode); >> } >> >> >> Regards, >> >> -Robson >> http://blogdodantas.dxs.com.br >> >> >> 2009/3/9 FelipeOliveira <ifn...@gmail.com> >> >> >>> Hello, >>> >>> I am developing an application to orkut and want to know how to load >>> external JavaScripts files? >>> >>> Example: >>> >>> I have a XML with all the information the Application (canvas, >>> profile, etc) and it is working perfectly in firefox / safari, but in >>> internet explorer it does not load, and the tests I made, it can not >>> load the javascript outside the application. >>> >>> Because I have the 'app.xml' and in it I call to the JS and CSS files, >>> but it's failing in Internet Explorer, someone knows what can be and >>> how can I fix? >>> >>> Structure (example): >>> - App.xml >>> - / Js / jquery.js >>> - / Js / friends.js >>> - / Css / style.js >>> - Etc. .. >>> >>> Thanks. >>> >>> >> >> >> >> >> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---