gthelp.com

Domain for sale - best offer

Welcome Guest, our newest member is: maxxxmodels2009  
User Name Password Save?
 Re: Getting "Access is Denied" on resizeTo and moveTo methods

Post New Content Post New Content  

  #1  
Old July 30th, 2008, 12:47 PM
0xG Offline
Junior Member
 
Join Date: Jul 2008
Posts: 1 10

I struggled with this for some time, too.
Here is the solution:

This is due to a race condition; the window has not actually finished loading, and so is not ready to accept a resize command. I used a delay to lkaunch the resize:

Window.SetTimeout "Window.ResizeTo 800, 600", 1000 ' (vbscript)
Window.SetTimeout ( "Window.ResizeTo ( 800, 600)", 1000) /* other */

The above uses a 1 second (1000 ms) delay; this may be tuneable but you don't always know how slow the users PC is; min is quite fast.

PS I am not sure of the exact syntax in the second example, but you get the idea...


 

Post New Content Post New Content  

Display Modes


Staff - Contact Us - Main - Archive - Technorati Profile - Top  
vBulletin Software: Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Page generated in 0.06883 seconds with 11 queries