Hi T.J.
'scriptadded' does get reset to false just after the loop counter 'i'
is incremented, and in fact through Firebug I can see the <script/>
tags appearing in the HTML - so I know this aspect of the code is
working.
> OT: Why the `eval`?
I know its use is to be avoided but I couldn't see a way around it.
If, for example, my array looked like this...
var scripts = [
{ src: 'js/s1.js' , obj: Stu.s1.func },
{ src: 'js/s2.js' , obj: Stu.s2.func },
{ src: 'js/s3.js' , obj: Stu.s3.func }
];
...then 'scripts[i].obj' will be null because at declaration time none
of the Stu literals exist. If there is an easy workaround I'd
appreciate a pointer ;)
Thanks
Stuart
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.