[TYPO3-dev] Ajax/JS help needed.

Stig Nørgaard Færch stig at 8620.dk
Mon Jul 28 14:32:37 CEST 2008


Benjamin Mack skrev:
> how about:
> 
> ...
> onComplete: function(xhr) { shortcut(); }
> ...
> 
> ?
> 
> I always try to avoid "eval", especially when you have the possibility 
> of closures like in Javascript.
> 

Hi Benjamin

Thanks for answering :-)

So which part of your suggestion is supposed to help me out.
Not using eval or the function()... way?
I'm not sure how to convert my script into this style.
I have to run the contents of the shortcut var somehow as I see it. Any 
alternatives to eval?
Closures in Javascript - is it a security issue?
I have tried:
onComplete : function() { return eval(roleTest) }
but it doesn't change anything.

/Stig




More information about the TYPO3-dev mailing list