RE: Streaming javascript and XP Service Pack 2

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 10/25/04


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();

}



Relevant Pages

  • Re: Std Users, Update Files?
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... I use a VB script which simply points to a BAT file. ...
    (microsoft.public.windows.server.general)
  • Re: Javascript in an HTML table
    ... [previous posting superseded in the face of new evidence] ... This just displays my graph by itself. ... The <script ...> tag that was in the original code is missing here. ... Prototype.js was written by people who don't know javascript for people who ...
    (comp.lang.javascript)
  • Re: Setting registry data
    ... Manbinder Pal Singh ... This posting is provided "AS IS" with no warranties, ... I tried in google, but i was able to get codes in script format, not in ... this example shows how to read values from the registry but ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Metabase restore - how to tell if there is corruption?
    ... As your servers are clustering, you can synchronize the two metabases ... between the nodes using the following script: ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.exchange.admin)
  • Re: Script in GPO
    ... any questions should be posted in the NewsGroup ... This posting is provided "AS IS" with no warranties, ... I changed the script back to match it, we would then have the same issue ...
    (microsoft.public.win2000.active_directory)