.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification