wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes how to avoid displaying url in a window? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to avoid displaying url in a window?" Watch "how to avoid displaying url in a window?" New topic
Author

how to avoid displaying url in a window?

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
can any one tell me how to avoid displaying url in the new window?

i have opened a window using win=window.open("index.jsp?data="+data_value+"","main","scrollbars=yes, resizable=yes, top=100,left=100,width=800, height=400"); method.

In the new window, the url is displayed on the top with parameters, can any one suggest me some ideas for removing the url from the top.


Abhishek
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If you do not want to display parameters, you can not do a get, you need to do a post. Since you are doing a pop up window, you are sort of limited on it.

You can look around the web for examples of using a form to post to a pop up window.

Eric
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Hello Abhishek,

take a look at this page. It has an example of how to post a form to a popup.

There's of course another solution, which is really ugly . You can create a page that takes the parameters from a get request, put them in hidden fields in a form, then use javascript to automatically submit this form to the real page you want. This way you can open the dummy page in a popup, and it will submit the parameters to the real page you want. As I said, it's ugly, but you can use that if you face problems with posting to the popup directly (which you shouldn't ).


Visit my blog: http://jnassef.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to avoid displaying url in a window?
 
Similar Threads
How to write in java script for the child window url becomes readonly mode.
Help on popup windows
Want to obtain the url being displayed in the currently active browser window
Problem displaying/populating session scoped variables in a child popup window in IE
gxt window on top of two frames