Solved

submit a form using ajax without reloading entire page

Posted on 2010-08-18
5
262 Views
Last Modified: 2012-05-10
I have a web page, that gets built using classic asp, and I have multiple rows of data. For each row, the user can click a button, that dynamically loads more input text boxes in the cell that the user can enter data. This is just date information but can expand up to as many dates as needed. The input boxes are part of a form that I build dynamically using AJAX. This works fine.

What I'd like to do is when the user is done entering their data in these date fields, I'd like them to be able to submit the form to update the database WITHOUT reloading the entire page, but just that section of the page where the <form> tag exists.

Is this possible to do with AJAX? I guess my confusion is on the form tag, I have to put a page for the action parameter and I am pointing to a page - put how do I say to reroute to a page to process the form but only update the section of the ain page where the form is.

Thanks in advance.
0
Comment
Question by:samic400
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 33463539
Wrap the form in a div and use for example jQuery to fetch the result of the form into that div
0
 
LVL 13

Author Comment

by:samic400
ID: 33463566
I'm not sure what you mean by fetching the result using jQuery - not familiar with that.
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 33463710
0
 
LVL 35

Expert Comment

by:YZlat
ID: 33467706
use UpdatePanel and put part of the page you want to refresh into that panel
0
 
LVL 35

Expert Comment

by:YZlat
ID: 33467717
actually updatepanel is only for ASP.NET, not for ASP
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question