• 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

How to resize the pop-up window in IE-8 ?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

This is regarding the resizing of a pop-up window in our application ( similar to a calendar pop-up ) in IE-8.

We are able to alter the height of the window to any value. But we are not able to reduce the width of the window. It seems to have some minimum fixed value. Whatever width we give lesser than that is not getting reflected. (But we are able to increase the width to any value as we wish. ) Because of this, we have a large empty space inside the pop-up window, which we dont want.

In IE-6, which we were using earlier, it's working fine. Could you please suggest anything to tackle this problem?

Thanks in advance

Kind Regards
Athul
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey friend;
we can alter widows width and height it's true with our values following is some sample code for you,

var w = 400;
var h = 220;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) /1.5;

winprops = 'standard,height=' + h + ',width='+w+',top='+wint+',left='+winl+'status=no,scrollbars=yes,toolbar=no,
dependent=yes,alwaysRaised=no,maximize=no,resizable=yes';
win = window.open('../techOffice/popupComments.jsp?key='+c,'win',winprops);
document.forms[0].target = "win";

You should use like this or directly
window.open('../techOffice/popupComments.jsp'); //abusolute path of your page
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
browsers have a minimal width and height that you can set for a pop up. It is done for security reasons. Once upon a time you could make them very tiny and people used them for bad things.

In this day in age, I would not even think of using a pop up window. Use a layer as a modal form and have the user do everything in that page. Jquery UI Dialog is a great place to start if you are using jQuery.

Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic