Home > Uncategorized > Help!. Can’t reopen a page whilst another is loading…

Help!. Can’t reopen a page whilst another is loading…

If a page takes a long time to load, but has already flushed out content containing a hyperlink, that
hyperlink will not work until the page is fully loaded.
 
To demonstrate:
 
<a href="tempTest.aspx" target="_blank">Click to reopen this page</a><br>
<%
 for (int i=0;i<1000;i++)
 {
  System.Threading.Thread.Sleep(100);
  Response.Write(i + "…");
  Response.Flush();
 } 
%>
 
If you save this as tempTest.aspx, then load it in your web browser, and click on the link before
it has counted to 1000, you will see that the popup window hangs until the first page is complete.
 
Free pint of beer to whoever solves this one!
 
Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: