Results 1 to 4 of 4

Thread: Submit Any Form via Ajax and get result back on same page.

  1. #1
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    97
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default Submit Any Form via Ajax and get result back on same page.

    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):

  2. #2
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default patch for firefox

    if you get strange errors in Firefox, here's some helpful patch information (also includes modifications to enable more verbose debugging)

    line 10:

    Code:
    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

    Code:
        return [msg];
    line 517
    Code:
    jf.xmlhttp.send('');

  3. The Following User Says Thank You to dainw For This Useful Post:

    diltony (06-17-2009)

  4. #3
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    97
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default

    Thanks for that, i appreciate it

  5. #4
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    97
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default

    I have done the fixes already, on the link : http://ds.mwebng.net/pages/js/jsubmit/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •