I'm using 1.2.2.

I will try do this, after that I will post here again.

Thanks a lot ;)


On 22 jul, 18:28, Fábio M. Costa <[email protected]> wrote:
> Hm... you will have to use Request.HTML
>
> http://demos.mootools.net/Request.HTMLhttp://mootools.net/docs/core/Request/Request.HTML
>
> new Request.HTML({
>    evalScripts: true,
>    update: $(sContentShow),
>    data: $(sFormName)
>
> });
>
> Fábio Miranda Costa
> Solucione Sistemas
> Front-End Engineerhttp://meiocodigo.com
>
> 2009/7/22 Fábio M. Costa <[email protected]>
>
> > Fala Paulo!
>
> > Well.. i guess its using Request right now then....
>
> > Whats the mootools version you are using? 1.2.2? 1.2.3?
>
> > Fábio Miranda Costa
> > Solucione Sistemas
> > Front-End Engineer
> >http://meiocodigo.com
>
> > On Wed, Jul 22, 2009 at 6:08 PM, paulocamboim <[email protected]>wrote:
>
> >> Grande Fabio =P
> >> Aqui eh Paulo q trabalhou na maxmeio ;)
>
> >> Actually when using "update" insted set('html', response) the response
> >> is not even loaded in the target div...
>
> >> any clue?
>
> >> On 22 jul, 18:00, Fábio M. Costa <[email protected]> wrote:
> >> > try this:
>
> >> > $(sFormName).set('send', {
> >> >                    evalScripts: true,
> >> >                    update: $(sContentShow)
>
> >> > });
>
> >> > cya!
>
> >> > Fábio Miranda Costa
> >> > Solucione Sistemas
> >> > Front-End Engineerhttp://meiocodigo.com
>
> >> > On Wed, Jul 22, 2009 at 5:49 PM, paulocamboim <[email protected]
> >> >wrote:
>
> >> > > Hello guys, its my first post here, i looked into a post similar but i
> >> > > could get it solved, so i decided to open this topic.
>
> >> > > I have one form that i send with ajax, i wanna submit this form and
> >> > > update a div with text and also run some javascript like a simple
> >> > > "alert('the form was sent!')".
>
> >> > > Here is the code I'm using for submit my form
>
> >> > > $(sFormName).set('send', {
> >> > >                    evalScripts: true,
> >> > >                    evalResponse: true,
>
> >> > >                    onComplete: function(response) {
> >> > >                         // show response target reply
> >> > >                             $(sContentShow).set('html', response);
> >> > >                         }
> >> > > ....
>
> >> -------------------------------------------------------------------------
> >> > > My div is update normally i get answers like: "My text ... <script
> >> > > type="text/javascript"> alert('the form was sent!'); </script>"
>
> >> > > But the javascript it's not loaded :(
> >> > > I don't know what else to try for make this working...
>
> >> > > Thank you all

Reply via email to