That's ok, but I do not know which fragment I will get, so I cannot use the callback method. The script has to be in the fragment I return from the server.
By the way it is still not working. The script seems to be executed only for the first request. If I replace the script with the fragment another time, the function cannot be found anymore, even if it exists in the DOM. Harald > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Mike Alsup > Sent: Dienstag, 16. Januar 2007 18:49 > To: jQuery Discussion. > Subject: Re: [jQuery] Problem loading HTML and Script Code with Ajax > > > Harald, > > I just re-read you post. You just need to run the ajaxForm code > within the callback method of $.post. In other words, after the new > form has been added to the dom you can prepare it using ajaxForm. > > Sorry for the confusion. > > Mike > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
