Solved

submit a form using ajax without reloading entire page

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

680 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