PDA

View Full Version : Submit Any Form via Ajax and get result back on same page.



diltony
12-30-2008, 11:15 PM
1) CODE TITLE: Ajax Form Submission Lite

2) AUTHOR NAME/NOTES: Tony Ogundipe

3) DESCRIPTION: A very simple way to submit any form with ajax and get result on same page. No special skills required.

4) URL TO CODE: http://ds.mwebng.net/pages/js/jsubmit/

or, ATTACHED BELOW (see #3 in guidelines below):

dainw
06-10-2009, 05:28 PM
if you get strange errors in Firefox, here's some helpful patch information (also includes modifications to enable more verbose debugging)

line 10:



post(function(){
if(isReady()) {
//post complete
document.getElementById(TheTarget).innerHTML=responseText;
} else if(isNav() != '') {
//post incomplete
alert("Request could not be completed.\n" + isNav() + "\n" + buildQuery());
}
});


line 487



return [msg];


line 517


jf.xmlhttp.send('');

diltony
06-17-2009, 03:26 AM
Thanks for that, i appreciate it

diltony
08-05-2009, 04:50 PM
I have done the fixes already, on the link : http://ds.mwebng.net/pages/js/jsubmit/