Re: Javascript inside a ajax content not work

2009-09-28 Thread Martin Westin
Some (most?) javascript libraries will strip the response of live javascript. You should configure the ajax call to evaluate the script instead. Exactly how you do that depends on the library. On Sep 28, 10:34 am, "marco.rizze...@gmail.com" wrote: > Hi > I use ajax helper to load the content o

Javascript inside a ajax content not work

2009-09-28 Thread marco.rizze...@gmail.com
Hi I use ajax helper to load the content of a div inside my page. In this ajax content I have this: codeBlock('var value='.$value.';'); ?> But when I try to use the javascript variable value I get the error that the value doesn't exist. In my ajax call I have set eval to true. Can someone tell