RE: Streaming javascript and XP Service Pack 2
From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 10/25/04
- Next message: Calvin KD: "Mouseover dropdown menu"
- Previous message: roberto: "Design Time - cannot add control to web page using iDesignerHost"
- In reply to: Casper Hornstrup: "Streaming javascript and XP Service Pack 2"
- Next in thread: Casper Hornstrup: "Re: Streaming javascript and XP Service Pack 2"
- Reply: Casper Hornstrup: "Re: Streaming javascript and XP Service Pack 2"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 25 Oct 2004 08:09:27 GMT
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(object sender, System.EventArgs e)
{
string strStart = @"<HTML><HEAD><TITLE>Importerer</TITLE>" +
"<META http-equiv=Content-Type content='text/html; charset=utf-8'>"+
"<SCRIPT>"+
"function up(percent) { var e = document.getElementById('divStatus'); if
(e)"+
"{ e.innerHTML = percent + ' % finished...'; } }"+
"</SCRIPT>"+
"<META content='MSHTML 6.00.3790.186' name=GENERATOR></HEAD><BODY><DIV
id='divStatus'></DIV>";
Response.ClearContent();
Response.Write(strStart);
Response.Flush();
for(int i=0;i<100;i++)
{
Response.Write("\n<SCRIPT>up('" + i + "');</SCRIPT>");
Response.Flush();
System.Threading.Thread.Sleep(500);
}
Response.Write("<br></br><font size ='30'>Task
Finished!</font></body></html>");
Response.End();
}
- Next message: Calvin KD: "Mouseover dropdown menu"
- Previous message: roberto: "Design Time - cannot add control to web page using iDesignerHost"
- In reply to: Casper Hornstrup: "Streaming javascript and XP Service Pack 2"
- Next in thread: Casper Hornstrup: "Re: Streaming javascript and XP Service Pack 2"
- Reply: Casper Hornstrup: "Re: Streaming javascript and XP Service Pack 2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|