Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 770
  • Last Modified:

dynamic resizing of activex control in a pop up window

Hi,

i am trying to get the activex control dynamically resized based on the size of popup window.

popup window contains a activex control , i set it to a default size when loaded.

what i want to achieve is when the user resizes the popup, even the activex shld resize accordingly.
is that possible?
0
chandua
Asked:
chandua
  • 4
  • 4
1 Solution
 
justinbilligCommented:
try this, it might not work but give it a try

window.onResize = OnResize;

function OnResize( )
{
      // Get a reference to the activeX control
      var objControl = document.getElementById( "idActiveX" );

      // Resize it
      objControl.height = event.height;
      objControl.width = event.width;
}
0
 
justinbilligCommented:
you could always make it so the user can't resize the window


http://devguru.com/Technologies/ecmascript/quickref/win_open.html


window.open( "URL", "TITLE", "resizable=no;" );
0
 
chanduaAuthor Commented:
hi justinbillig,

i can't set to NO as i need to have this functionality.
 i was trying to implement your first answer,
window.onResize = OnResize;
where i wud ablr to set this as i open the popup window using window.open()

pls reply asap.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
justinbilligCommented:
put it in the page that you open

so if your line looks like this

window.open( "http://www.domain.com/axtivex.html" );


in axtivex.html put that function
0
 
chanduaAuthor Commented:
i hit the the following err on "undefined"
event.height;
0
 
justinbilligCommented:
try window.height / window.width
0
 
chanduaAuthor Commented:
hi i get it as invalid arguement.
 i tried document.Form1.clientHeight
its the same err
0
 
chanduaAuthor Commented:
Hi justinbilling,

i used document.body.clientHeight & it worked.

anyways thanks for getting it going.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now