Observe on Script Elements

0 views
Skip to first unread message

webbear1000

unread,
Oct 10, 2008, 2:37:02 PM10/10/08
to Prototype & script.aculo.us
Hey peeps

I've got this pretty knotty problem.

I'm loading js files on demand by generating them and appending them
to the head element.

What I'm also doing is binding a passed function to the script tag for
it's load event which enables me to call in a js file and work on it
when I know it's loaded.

I hope that makes sense.

The problem is IE (of course). It doesn't seem to call the load event.
Anybody done something similar and managed to work around the problem?

Thanks guys and gals

Diodeus

unread,
Oct 10, 2008, 3:04:21 PM10/10/08
to Prototype & script.aculo.us
Do it the other way around: have the loaded script announce itself
once it has loaded by putting a function call in it.
Reply all
Reply to author
Forward
0 new messages