Hi Raphael,
using update option might just not do the trick – I remember having
some troubles with it myself – have you tried doing a:
...
onComplete: function(response) {
$('responseDiv').set/inject/append(...) // pick one, considering
what is your response
}
...
Best,
Oskar
On Oct 31, 8:13 pm, Raphael Gomes <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I'm building a site that relies heavily on Ajax responses that include
> Javascript.
>
> In 1.1 this wasn't a problem and if I had a code like:
>
> $('myForm').send({
> method: 'post',
> evalScripts: true,
> update: $('responseDiv')
>
> });
>
> it would fetch the server response to myForm, update responseDiv with
> it and execute all scripts in the response.
>
> Now in 1.2, I'm writing this code as:
>
> $('myForm').set('send',{
> method: 'post',
> evalScripts: true,
> update: $('responseDiv')
>
> }).send();
>
> and I find that it ignores all the scripts on the response. Using
> evalResponse (alone or in combination with evalScripts) didn't help
> either.
>
> Any ideas?