Redirect to page??

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2008
Posts: 147
Reputation: anuj576 is an unknown quantity at this point 
Solved Threads: 10
anuj576 anuj576 is offline Offline
Junior Poster

Redirect to page??

 
0
  #1
Nov 1st, 2009
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.
Thanks & Regards,
Anuj Sharma
Future Software Engineer
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 17
Reputation: futingkiller is an unknown quantity at this point 
Solved Threads: 2
futingkiller futingkiller is offline Offline
Newbie Poster
 
0
  #2
34 Days Ago
Originally Posted by anuj576 View 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.
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,
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC