Does that method of loading a script work in Safari? I was testing something very similar last week and it worked for all browsers apart from that one - the only reliable method I could find for adding the script was using document.write in the end!
On Dec 6, 12:09 pm, Henric Persson <[email protected]> wrote: > We need to load the javascript to load the channel API asynchronous. > Is there a way to know when the script has been downloaded and > available? I've looked into script.onload and > script.onreadystatechanged but it doesn't seem to be reliable enough. > The best thing would be if there was a callback method from > channel.js. > > This is similar to what I want to do: > > var script= document.createElement('script'); > script.src = "/_ah/channel/jsapi"; > document.getElementsByTagName('HEAD')[0].appendChild(script); > script.onload = proceedWithSomethingElse; > > But this only works in decent browsers. -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
