Solved

submit a form using ajax without reloading entire page

Posted on 2010-08-18
5
261 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now