[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

dynamic resizing of activex control in a pop up window

Posted on 2004-10-29
8
Medium Priority
?
762 Views
Last Modified: 2010-05-19
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
Comment
Question by:chandua
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 15

Accepted Solution

by:
justinbillig earned 450 total points
ID: 12444965
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
 
LVL 15

Expert Comment

by:justinbillig
ID: 12444982
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
 

Author Comment

by:chandua
ID: 12447794
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 15

Expert Comment

by:justinbillig
ID: 12447825
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
 

Author Comment

by:chandua
ID: 12462895
i hit the the following err on "undefined"
event.height;
0
 
LVL 15

Expert Comment

by:justinbillig
ID: 12463170
try window.height / window.width
0
 

Author Comment

by:chandua
ID: 12463286
hi i get it as invalid arguement.
 i tried document.Form1.clientHeight
its the same err
0
 

Author Comment

by:chandua
ID: 12464025
Hi justinbilling,

i used document.body.clientHeight & it worked.

anyways thanks for getting it going.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question