heres my js:

var stuff7=eval('function() {alert("stuff..");}')

when i alert stuff7 it is undefined.

now if i do this:
eval('var stuff7=function() {alert("stuff..");}')

and alert stuff7, it is defined

does anybody know y, the jscript eval doc doesnt really help, i
suspect it is a scope issue?
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to