window.open slow loading
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.jscript.

Post a new message to this list...

tmeister
I have a page that displays a small image of a given product. By clicking on the image the user can bring up another window with a larger sized image on it. The problem I'm running into is that the second page with the image on it pulls up very slowly. It may take as long as 10 seconds before the new browser window appears. I've included some of the source below.

newwindow = window.open(url,name,'width=' + mywidth + ',height=' + myheight + ',scrollbars,resizable');

Any suggestions?

Thanks,

Todd Meister
Reply to this message...
 
    
adnan boz
Hi,
I'm using the same method, but everything seems to be OK. Some debuging could help you further:

Test first the method with a blank html page as the destination, like "about:blank"?
If it will pop fast up,
you have a problem with you original page.
If not,
you have problem with your IE or OS. Don't waste more time.

In case of it works faster;
If your destination URL is an aspx page,
at the first browse to the page after a compile, the page will load very slow, because of the worker process.
If it is a html page,
Look over your HTML code. Could something wrong with the scripts.

In case of you have an aspx page and it is still slow after the first start;
Build an empty container HTML page with an IFRAME in it, set it as your open url. And load your original page to the IFRAME. The window will pop very fast and the content will load after it, where you can show a "please wait" like message.

Hope it helps,
Adnan

"tmeister" <Click here to reveal e-mail address> wrote in message news:Click here to reveal e-mail address...
I have a page that displays a small image of a given product. By clicking on the image the user can bring up another window with a larger sized image on it. The problem I'm running into is that the second page with the image on it pulls up very slowly. It may take as long as 10 seconds before the new browser window appears. I've included some of the source below.

newwindow = window.open(url,name,'width=' + mywidth + ',height=' + myheight + ',scrollbars,resizable');

Any suggestions?

Thanks,

Todd Meister
Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com