Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to avoid displaying url in a window?

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic