Hmm, I must not have understood what that whitepaper was saying.  I
thought it meant that your example below WOULDN'T work.  Maybe I read it
wrong:

"However if the JavaScript sent by the server contains functions, these
functions will not be accessible from any others scripts once the eval
function is over."

Based on that sentence, I would expect your call to Testing() after the
eval to throw an object expected error.

~Brad

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 7:39 PM
To: CF-Talk
Subject: RE: Dynamic JS

So would eval(js_strting).

So I could pass this back from my ajax call

var test = 0;

function Testing()
{
 Test++;
}

And then eval(string) and call Testing()

That's why I love dojo, this is all built in for me:-)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269106
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to