Are you sure it is outputting data in the response?  I would check that
first. I am using 1.2 and not having any issues with it.

Firefox and FireBug is a good start as you can see the response data from
your ajax request in the console. 

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of electronbender
Sent: Monday, 3 November 2008 12:06 AM
To: MooTools Users
Subject: Re: send() and evalScripts not working in 1.2 ?


I havent done much 1.2 code, but get the code, and just evail it, wold
that work?

On Nov 1, 3:41 pm, Raphael Gomes <[EMAIL PROTECTED]> wrote:
> This didn't work. Examining the response (via alert(response)) shows
> the following:
>
> 1) with only evalScripts set to true, all the script tags are stripped
> off.
> 2) with evalResponse set to true, the script tags aren't stripped off
> but aren't evaluated, either.
>
> On 1 nov, 07:55, Oskar Krawczyk <[EMAIL PROTECTED]> wrote:
>
> > 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?

Reply via email to