• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

how to avoid displaying url in a window?

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic