23 msgChange current tab color
3 msgfirefox need to restart
1 msgSystem Restarts on logging onto Net
2 msgNew Yahoo Mail beta problem
2 msgPrinting webpage problems
2 msgFirefox doesn't maintain page position
4 msgFireFox Add-On?
2 msgyahoo requiring sign in every time
2 msgFiefox hangs when connecting to particular site
1 msgFirefox hangs when visiting certain site
3 msg'Message Authentication Code' problem
3 msgBookmarks Location
3 msgFirefox freezes after 15 seconds even after uni...
4 msgCan't open local html file when Firefox running
2 msg'Shut down PC' extension ?
2 msgadd ins
1 msgProblem: Subscribe to feed using iTunes
1 msgRe: Problems with Flash Player 9
6 msg'onmouseover' javascript

Ajax Issue
\ glennh (30 Aug 2007)

Subject:Ajax Issue
Group:Mozilla-support-firefox
From:glennh
Date:30 Aug 2007


I am trying to figure out how to load javascript files dynamically, or
rather, what the flow is in the browser. I have a page written that
uses ajax calls to retrieve pages into a div on the page. I can't put
javascript inside these files because the browser won't read it when
its loaded. As a result I've had to put all my javascript inside
a .js file and import it via javascript when a menu is clicked. This
all works just fine, however, sometimes I have to click the menu twice
before it will load. It appears that even though it loads the script,
its not available for immediate use. The actual page that loads
afterwards is on a timer. If I set it for 3 seconds later it works
100% of the time, if I set it for 1 second about 80% of the time it
will NOT work.

Is there some way that I can detect when a script is available for use
and then load the page that requires it?

Thanks,

cybercrypt

_______________________________________________
support-firefox mailing list
support-firefox
https://lists.mozilla.org/listinfo/support-firefox
To unsubscribe, send an email to support-firefox-request?subject=unsubscribe


© 2004-2008 readlist.com