Jump to content
Killersites Forums

Drupal 7 AJAX forms


Recommended Posts

Hi guys. I need a Drupal guy here :rolleyes:


I am building a website for a client using Drupal 7. One feature of this site is a link at the top of the browser which when i click it a dialog box pops up with a form in it.


The form comes in the dialog using AJAX. Also the form submits using AJAX.


The page where the form is called is here. Try to submit the form to see the AJAX thing. It works ok. But when i load the form in the dialog form it loses the ajax submit functionality. I know this is happening because new content comes in the page and it needs to rebind the AJAX action. However drupal uses a form api to builds forms and there is a backend mechanism for AJAX in the forms so i only i need to write the php side of the ajax process. The problem is that i can't find out how to rebind the ajax submit when i load a form using ajax. In the above link you can see what i mean.


If i wasn't clear enough please ask me to explain more.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...