944,103 Members | Top Members by Rank

Ad:
Nov 1st, 2009
0

Redirect to page??

Expand Post »
Hey Guys,
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page.
Please tell me how to do this.
Reputation Points: 8
Solved Threads: 13
Junior Poster
anuj576 is offline Offline
180 posts
since Jul 2008
Nov 5th, 2009
0
Re: Redirect to page??
Click to Expand / Collapse  Quote originally posted by anuj576 ...
Hey Guys,
I want to redirect a page to another page in JSP after a certain validation has been done using AJAX. If the validation is done it should redirect the user to another page but if validation is not done then it should remain on the same page.
Please tell me how to do this.
this is how you redirect a website:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <HEAD>
  2. <SCRIPT language="JavaScript">
  3. <!--
  4. window.location="http://someplace.com";
  5. //-->
  6. </SCRIPT>
  7. </HEAD>
if you want to redirect after it was validate... try using that responseText from the Ajax function,
Reputation Points: 10
Solved Threads: 2
Newbie Poster
futingkiller is offline Offline
17 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Please help!!! JavaScript!
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: HELP PLZ. content appear/disappear





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC