Alex McAuley wrote:
> Sorry i get what u mean now!..
>  
> Example:
>  
> function myFunction(options) {
> alert(options.id);
> eval(mySecondFunction);// Be very aware that evaluation is bad as JS 
> can be injected if you do not sanitise strings correctly....
> }
>  
> myFunction({id:1234,callback:'mySecondFunction'});
> // alerts 1234 then evals mySecondFunction();
>  
>  
> Not using eval EVER i cant remember if you need to add () or not... 
> but its a quick trial and error fix!!
>  
> HTH
>  
>  
> Alex Mcauley
> http://www.thevacancymarket.com
Thanks Alex, together with TJ's reply I have plenty to chew on for now.
bill

-- 
Bill Drescher
william {at} TechServSys {dot} com

--

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-scriptacul...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=.


Reply via email to