Thanks - it wasn't the missing script tag (no effect), but the missing closing brace on the end of init() did cause a wee bit of a problem. That's what I get for working on this at 1 in the morning! Thanks for your help,
Lance 2009/9/21 Michael Geary <[email protected]> > My election map gadgets from last year are working fine in Chrome, and they > all use external JS files. I haven't tried them in the iGoogle sandbox, > though. Here's an example: > > http://maps.google.com/help/maps/elections/#2008_election > > I do notice that you have a missing </script> tag - could that be causing a > problem? > > -Mike > > On Mon, Sep 21, 2009 at 2:24 PM, Lance <[email protected]> wrote: > >> >> I know about the latency issues, but I'm trying to modularize my code. >> However, when I include an external js file I fail with the message >> "Unsafe JavaScript attempt to access frame with URL" (full message >> below). >> >> I must be setting things up incorrectly, but I'm ignorant of the >> correct way. Can anyone help? >> >> Code is hosted on googlecode. >> >> I am currently running in the developer sandbox of iGoogle on Chrome. >> >> Any help much appreciated, >> >> Lance >> >> *********************************************************** >> >> XML source file CDATA: >> <![CDATA[ >> <script type="text/javascript" src="http://www.google.com/jsapi? >> >> key=ABQIAAAAWWBfe9unq3UCEqhss1UOrhSM3v9UhwCrJBumDggbKMBzcA64iRTf_8eiQkdyjwJ9S7WwebvD_4u2lg<http://www.google.com/jsapi?%0Akey=ABQIAAAAWWBfe9unq3UCEqhss1UOrhSM3v9UhwCrJBumDggbKMBzcA64iRTf_8eiQkdyjwJ9S7WwebvD_4u2lg> >> "></ >> script> >> <script type="text/javascript" src="http:// >> spbloggertabgadget.googlecode.com/svn/trunk/Testing.js"> >> <script type="text/javascript"> >> function init() { >> >> justATest(); >> return; >> >> // Call init function to initialize and display tabs. >> gadgets.util.registerOnLoadHandler(init); >> </script> >> ]]> >> >> *********************************************************** >> >> FULL CONTENTS OF TESTING.JS >> >> function justATest(){ >> document.write("Did it work?"); >> } >> >> *********************************************************** >> >> FULL MESSAGE: >> Unsafe JavaScript attempt to access frame with URL >> http://www.google.com/ig?t=5 >> from frame with URL >> >> http://6to1hb06fbtb1b7tpn8r76iites63smo.ig.ig.gmodules.com/gadgets/ifr?view=home&url=http://spbloggertabgadget.googlecode.com/svn/trunk/SPBloggerTabGadget.xml&nocache=1&up_selectedTab=&up_blog=http://sanitypreferred.blogspot.com&up_numposts=5&up_keywords=video&up_lasttab=tl_114_0&up_generator=Blogger&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=114&ifpctok=6904857185004566287&exp_split_js=1&exp_track_js=1&exp_ids=17259,300540&parent=http://www.google.com&refresh=3600&libs=core:core.io:core.iglegacy#st=c%3Dig%26e%3DAPu7icr6qW%252B7DEE4DJ/dzh3JnVU6Nl5Vg7lAdJbTzy0f/vaEwzwPGW04l%252BGmIVqgXYRoFuG982WiYCH5oeRI5qCpTbfKOi9OMCO6wke7m/SgVJLlOmVVNrH48ZpEc1dTbBcCILOF9kXf&gadgetId=110998880047042204987&gadgetOwner=105090936449430181148&gadgetViewer=105090936449430181148&extern_js=/extern_js/f/CgJlbhICdXMrMNIBOAEsKzDYATgBLCsw2gE4ACwrMNsBOAEs/fWzgRbX4nIM.js&is_signedin=1&is_social=1 >> . >> Domains, protocols and ports must match. >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
