Solved

submit a form using ajax without reloading entire page

Posted on 2010-08-18
5
260 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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 35

Expert Comment

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

Expert Comment

by:YZlat
Comment Utility
actually updatepanel is only for ASP.NET, not for ASP
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Ajax control editor 4 31
Website Home page blank 4 25
getting id from database 5 24
update field on focusout 15 19
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

772 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

12 Experts available now in Live!

Get 1:1 Help Now