Form binding after ajax call

Discuss anything that's related to the Raxan framework

Form binding after ajax call

Postby vatanen » Mon Oct 03, 2011 6:24 pm

Hi,

I've got a form with a button which calls an action. This action generates another form in the return string and populates a pre-existing div. Now, this form doesn't seem to want to call another action in the RaxanWebPage. Do I need to bind this beforehand? Is it even possible? Just looking for a little help in this matter.

Thanks
vatanen
 
Posts: 6
Joined: Fri Oct 09, 2009 9:01 am

Re: Form binding after ajax call

Postby raymond » Wed Oct 05, 2011 8:46 am

Hello,

This is only possible with delegate() method.

Example:

Code: Select all
$this->findById("parentDiv")->delegate("newbutton","click",".callbackFunction");


You can get more information about the delegate() method here:
http://raxanpdi.com/sdk/docs/server-side-events.html

__
Raymond
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron