[Proto-Scripty] Re: TypeError: Value undefined (result of expression Element.insert) is not object.

2009-02-17 Thread david
Hi Robert, That's another problem, if prototype is loaded dynamically, it's a kind of lazyloading you need. just look at some code that aleready exist: == http://ajaxian.com/archives/a-technique-for-lazy-script-loading == http://www.bram.us/projects/js_bramus/lazierload/ Both use prototype, but

[Proto-Scripty] Re: TypeError: Value undefined (result of expression Element.insert) is not object.

2009-02-16 Thread david
Hi robert, It's hard to guess your problem, but, javascript are loaded synchronously, so that not the reason. If you have an exemple, I could help you? a little bit more !? -- david On 16 fév, 23:31, chienr chi...@gmail.com wrote: Hi, Intermittently, I get a browser popup error that says:

[Proto-Scripty] Re: TypeError: Value undefined (result of expression Element.insert) is not object.

2009-02-16 Thread chienr
Hi david, I don't have an example to show you, and it happens so randomly. FWIW, I'm loading prototype on-demand with element.appendChild(), which probably complicates things a little. I just found reference to setInterval() in Javascript, will look into that to see if it fits my needs. Thanks.