Forum  General Visual ...  How do I...?  Page_Load JavaScript
Previous Previous
 
Next Next
New Post 4/22/2009 5:26 AM
Unresolved
  musman_bit
1 posts
No Ranking


Page_Load JavaScript 
Modified By musman_bit  on 4/22/2009 7:37:20 AM)

Hi,

I try to execute

this.InvokeMethodWithId("window.resizeTo(200,300);");

on Page_Load. But i received the following error.

Error

Can not find member window.resizeTo(200,300);

 Please tell me how can i resize window...  

 

this

 
New Post 4/23/2009 1:50 PM
  palli
11189 posts
1st Level Poster




Re: Page_Load JavaScript 

Hi,

The InfomeMethodWithId expects the name of the function in the first parameer, and then the parameters to the function. That's why it's complaining as there is no function named "window.resizeTo(200,300);"

Try this:

   this.InvokeMethodWithId("window.resizeTo", 200, 300)

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Page_Load JavaScript
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS