File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ajax - I want to open a URL in the same window . how can i do that ?
Joined: Sep 15, 2011
Nov 02, 2011 07:21:12
I want to navigate to the url as I click on the 'Go' link on my existing page.
I am using jsp and ajax.
The code I have written is :
ajaxRequest.open("GET", "someContextRoot/hardcodedPath.do?customerName=" + custName + "&customerID=" + custID, false);
<a href="#" onclick="launchURL();">Go</a>
The URL getting built is correct but I am not able to load the URL page on the same window.
How can I do that ?
Author and ninkuma
Joined: Jan 10, 2002
Nov 02, 2011 08:14:44
Don't use Ajax for that. The whole point of Ajax is to
replace the current page. If you want a "normal" submission that replaces the current page, use a "normal" hyperlink or form submission.
Books by Bear
I agree. Here's the link:
subject: Ajax - I want to open a URL in the same window . how can i do that ?
Trigger action on combo change
pass <bean:write> to a function
registration page using jsp and ajax
passing the values from popup window to jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013