I should probably have been a bit more helpful as well - can't you
just create a JavaScript timer which tests for the presence of one of
the variables / methods that is only present in the Channel API JS
include?  Once that tests positive then you can run your
"somethingelse"

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.

Reply via email to