try this:
$(sFormName).set('send', {
evalScripts: true,
update: $(sContentShow)
});
cya!
Fábio Miranda Costa
Solucione Sistemas
Front-End Engineer
http://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