Jump to content

Why Doesn't This Form Submit?


lastkarrde

Recommended Posts

Howdy folks.

 

I'm having some troubles with forms not submitting when they are included by an AJAX call.

 

I have a page, <em>/add_many/</em> which just displays an HTML form. If I navigate to that page the form works as expected. However If i try and display that page in a dijit.Dialog modal (loaded via AJAX), the form will not submit.

 

Below is my AJAX code

 

addDialog = new dijit.Dialog({title: 'Add Reddit User', style: 'width:500px', preventCache:true});
addDialog.attr('href', '/add_many/');
addDialog.show();

 

The form displays fine in the dijit.Dialog box, and I can enter information into it. However clicking the submit button does absolutely nothing.

Any ideas?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/232633-why-doesnt-this-form-submit/
Share on other sites

I'm not at all familiar with Dijit or Dojo, but the documentation suggests that you need to handle the form in a different way:

 

In order to run Dialog's execute-method the submit button has to be a dijit.form.Button, normal submit button doesn't trigger this function.

 

http://dojotoolkit.org/reference-guide/dijit/Dialog.html#forms-and-functionality-in-dialogs

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.