• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

'Popping up' a jsp page but don't want to use JavaScript

 
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to make a page 'pop up' but not use javascript. I'd like to use Canoo or HTTPUnit to test my pages and don't want to use JavaScript in my pages. Is there a way to pop up some windows w/out using javascript.
Dale
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The basic answer is no. You can request that a browser open a link in a new window using the "target" attribute of the A HREF tag, but you don't have any control over where the window appears, or what size it is etc.
The other problem is that it is unxpectedly difficult to unit test multi-browser-window applications using tools like HTTPUnit.
May I ask why you want to open another window? Is there anyway you can get similar user benefits using some other method?
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to use something else, but the client likes the idea of the page opening up to a smaller window. Any suggestions???
Dale
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only way to do this is using JavaScript. I feel that your client is falling in to the far-too-common trap of thinking of a Web user interface in the same way as a desktop application GUI.
Pop-up windows are horrible to use, horrible to maintain, horrible to test. Show your client some of those awful geocities pages which pop up half a dozen ads for casinos and spy cameras, and try to explain why users have a negative reaction to pop-up windows.
Good luck.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! The sin of this whole thing was that the previous java developer liked them. Personally I've always felt the same way you do. That they are bad news.
Regards,
Dale DeMott
reply
    Bookmark Topic Watch Topic
  • New Topic