473,856 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Streaming javascript and XP Service Pack 2

I have an ASP.NET application that imports product descriptions from an
Excel file. The Excel file is uploaded, then a background thread will start
importing the product descriptions from the Excel file. When the Excel file
is uploaded, the user's browser is redirected (using Response.Redire ct) to a
new page that will stream some javascript to show the progress of the
import. I do perform a Response.Flush( ) after each script tag. I've included
the contents of the page with the javascript below. The import can take
several minutes if the Excel file is large. With IE6 on Windows Server 2003
this works fine. Also with IE6 on Windows XP without Service Pack 2 this
works fine. However, with Windows XP with Service Pack 2 this does not work.
The browser does not display the page with the streamed javascript that
shows the progress. It stays on the page where the file upload is done until
it finally displays the "Page cannot be displayed" page. From the logs, I
can see that the redirect is sent to the browser and that the import is
successfully done on the webserver - but the user will never know when it is
done. I have tried putting the website in the trusted sites, but still no
luck. What can I do to resolve this problem?

Casper
<HTML><HEAD><TI TLE>Importerer</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT>
function up(percent) { var e = document.getEle mentById('divSt atus'); if (e)
{ e.innerHTML = percent + ' % færdig...'; } }
</SCRIPT>

<META content="MSHTML 6.00.3790.186" name=GENERATOR> </HEAD>
<BODY>
<DIV id=divStatus></DIV>
<SCRIPT>up('0') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('1') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('2') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('3') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('4') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('5') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('6') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('7') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('8') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('9') ;</SCRIPT>
</SCRIPT>
<SCRIPT>up('10' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('11' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('12' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('13' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('14' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('15' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('16' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('17' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('18' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('19' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('20' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('21' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('22' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('23' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('24' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('25' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('26' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('27' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('28' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('29' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('30' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('31' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('32' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('33' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('34' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('35' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('36' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('37' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('38' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('39' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('40' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('41' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('42' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('43' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('44' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('45' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('46' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('47' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('48' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('49' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('50' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('51' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('52' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('53' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('54' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('55' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('56' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('57' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('58' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('59' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('60' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('61' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('62' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('63' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('64' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('65' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('66' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('67' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('68' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('69' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('70' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('71' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('72' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('73' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('74' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('75' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('76' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('77' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('78' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('79' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('80' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('81' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('82' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('83' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('84' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('85' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('86' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('87' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('88' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('89' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('90' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('91' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('92' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('93' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('94' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('95' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('96' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('97' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('98' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('99' );</SCRIPT>
</SCRIPT>
<SCRIPT>up('100 ');</SCRIPT>
</SCRIPT><BR><BR> <FONT color=blue>Vare rne er importeret med
succes.</FONT></BODY></HTML>
Nov 18 '05 #1
3 1465
Hi Casper,

Thanks for your posting. As for the problem you mentioned, I've done some
tests based on your description and the code snippet you provided. I also
test on two machines one is w2k3 server IE6 AND another WIN XP with sp2
and IE6. However, it seems that the script can run correctly on my side.
Also, here is a kb article mentioned the script in local html which
reference a local htc or xml file will not work, you may have a look to see
whether it applys:

#Scripts may not run on a local HTML Web page that references .htc or .xml
files in Windows XP Service Pack 2
http://support.microsoft.com/?id=884322

Also, I'll paste my test page's code at the bottom. You may also have a
test on yourside to see whether it works. Hope helps.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

=============== =test page (Only the Page_load function in code
behind)======== =============== =

private void Page_Load(objec t sender, System.EventArg s e)
{
string strStart = @"<HTML><HEAD>< TITLE>Importere r</TITLE>" +
"<META http-equiv=Content-Type content='text/html; charset=utf-8'>"+
"<SCRIPT>"+
"function up(percent) { var e = document.getEle mentById('divSt atus'); if
(e)"+
"{ e.innerHTML = percent + ' % finished...'; } }"+
"</SCRIPT>"+
"<META content='MSHTML 6.00.3790.186' name=GENERATOR> </HEAD><BODY><DIV
id='divStatus'> </DIV>";

Response.ClearC ontent();
Response.Write( strStart);
Response.Flush( );
for(int i=0;i<100;i++)
{
Response.Write( "\n<SCRIPT>up(' " + i + "');</SCRIPT>");
Response.Flush( );

System.Threadin g.Thread.Sleep( 500);
}

Response.Write( "<br></br><font size ='30'>Task
Finished!</font></body></html>");
Response.End();


}

Nov 18 '05 #2
Hi Steven.

Thanks for your answer. I'm not sure why I didn't notice it before
but there was output an extra </script> tag in my progress page. Removing
that and the XP SP2 machine can also display the progress page. I guess
the new IE is a bit more critical about what it processes. It would be nice
if IE
would tell me that the script is not valid instead of waiting a few minutes
and
display the "Page not found" dialog ;-)

Casper

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:Us******** ******@cpmsftng xa10.phx.gbl...
Hi Casper,

Thanks for your posting. As for the problem you mentioned, I've done some
tests based on your description and the code snippet you provided. I also
test on two machines one is w2k3 server IE6 AND another WIN XP with sp2
and IE6. However, it seems that the script can run correctly on my side.
Also, here is a kb article mentioned the script in local html which
reference a local htc or xml file will not work, you may have a look to see whether it applys:

#Scripts may not run on a local HTML Web page that references .htc or .xml
files in Windows XP Service Pack 2
http://support.microsoft.com/?id=884322

Also, I'll paste my test page's code at the bottom. You may also have a
test on yourside to see whether it works. Hope helps.
Regards,

Steven Cheng
Microsoft Online Support


Nov 18 '05 #3
Hi Casper,

Thanks for the followup. Glad that the problem is figured out.
Have a good day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1298
by: Jeff | last post by:
Hi, I have an ASP.NET web application that streams PDF output to a new instance of the browser. Using version 6 of Internet Explorer there are no problems. Using version 6 Service Pack 1 gives me a "You are not authorized to view this page" error after I close my PDF window and try to post to the server (by clicking on a link etc.) I'm using Data Dynamics ActiveReports for .NET to generate
7
2524
by: jonathan | last post by:
I installed service pack 2. Sometimes I saw a link that link to: <a href="javascript:popChatWin(0)"> Sometimes I use javascript to redirect website. Service pack 2 block that. Sometimes the javascript is not blocked. Sometimes it is. When is it blocked and when not? Does javascript always blocked under service pack 2?
0
244
by: Jeff | last post by:
Hi, I have an ASP.NET web application that streams PDF output to a new instance of the browser. Using version 6 of Internet Explorer there are no problems. Using version 6 Service Pack 1 gives me a "You are not authorized to view this page" error after I close my PDF window and try to post to the server (by clicking on a link etc.) I'm using Data Dynamics ActiveReports for .NET to generate
1
2872
by: Faisal Shafiq | last post by:
I want to upload a file direct to the Silverlight Streaming Service from a Web Client such as silverlight application. As per our product requirement we want to upload a .WMV file directly from silverlight client to Silverlight streaming service. I tried to user WebClient and HttpWebRequest for that purpose but, unfortunately I can found the way to do so. There are some problems with both classes. 1. There is no property of get...
0
9920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10699
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10790
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9535
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4580
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.