• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

submit a form using ajax without reloading entire page

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
samic400
Asked:
samic400
  • 2
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
Wrap the form in a div and use for example jQuery to fetch the result of the form into that div
0
 
samic400Author Commented:
I'm not sure what you mean by fetching the result using jQuery - not familiar with that.
0
 
YZlatCommented:
use UpdatePanel and put part of the page you want to refresh into that panel
0
 
YZlatCommented:
actually updatepanel is only for ASP.NET, not for ASP
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now