IE 6 Blocks Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Scholl

    #1

    IE 6 Blocks Javascript

    Can someone help me here.

    I have a web site with some javscript. When I upgraded to WinXP IE6 etc I
    found that opening my site I get an Information Bar message that Internet
    Explorer has restricted this file from showing active content. Presumably
    anyone else accessing my site gets the same message.
    However when I access other sites with javascript I don't get the message.
    Ergo it must be my code that is the problem.


    Mike


  • Randy Webb

    #2
    Re: IE 6 Blocks Javascript

    Mike Scholl wrote:
    [color=blue]
    > Can someone help me here.
    >
    > I have a web site with some javscript. When I upgraded to WinXP IE6 etc I
    > found that opening my site I get an Information Bar message that Internet
    > Explorer has restricted this file from showing active content. Presumably
    > anyone else accessing my site gets the same message.
    > However when I access other sites with javascript I don't get the message.
    > Ergo it must be my code that is the problem.[/color]

    Search the groups.google.c om archives of comp.lang.javas cript for the
    string "Mark of the Web" and read the thread. It will answer your
    question, and, tell you the solution.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    • Kien

      #3
      Re: IE 6 Blocks Javascript

      Hi,

      If you test the page *locally* you'll get the message.
      But if you upload it and see it online, you won't.
      The bar is there to warn you that the script is accessing something in
      your *local* hard-drive, like images or text-files or something.

      Kien

      Randy Webb wrote:[color=blue]
      > Mike Scholl wrote:
      >[color=green]
      >> Can someone help me here.
      >>
      >> I have a web site with some javscript. When I upgraded to WinXP IE6
      >> etc I found that opening my site I get an Information Bar message that
      >> Internet Explorer has restricted this file from showing active
      >> content. Presumably anyone else accessing my site gets the same message.
      >> However when I access other sites with javascript I don't get the
      >> message. Ergo it must be my code that is the problem.[/color]
      >
      >
      > Search the groups.google.c om archives of comp.lang.javas cript for the
      > string "Mark of the Web" and read the thread. It will answer your
      > question, and, tell you the solution.
      >[/color]

      Comment

      • Randy Webb

        #4
        Re: IE 6 Blocks Javascript

        Kien wrote:[color=blue]
        > Hi,
        >
        > If you test the page *locally* you'll get the message.
        > But if you upload it and see it online, you won't.
        > The bar is there to warn you that the script is accessing something in
        > your *local* hard-drive, like images or text-files or something.[/color]

        NO. The bar is not there for that reason. Had you bothered to read the
        article/thread I mentioned you would have found that out. An empty
        script block as such:

        <script type="text/javascript"></script>

        will cause that bar to be present. Now, how is that script above
        "accessing something on your local hard drive"?

        And read the group FAQ. It will do you good.
        [color=blue]
        > Kien
        >
        > Randy Webb wrote:
        >[color=green]
        >> Mike Scholl wrote:
        >>[color=darkred]
        >>> Can someone help me here.
        >>>
        >>> I have a web site with some javscript. When I upgraded to WinXP IE6
        >>> etc I found that opening my site I get an Information Bar message
        >>> that Internet Explorer has restricted this file from showing active
        >>> content. Presumably anyone else accessing my site gets the same message.
        >>> However when I access other sites with javascript I don't get the
        >>> message. Ergo it must be my code that is the problem.[/color]
        >>
        >>
        >>
        >> Search the groups.google.c om archives of comp.lang.javas cript for the
        >> string "Mark of the Web" and read the thread. It will answer your
        >> question, and, tell you the solution.
        >>[/color][/color]


        --
        Randy
        comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
        Answer:It destroys the order of the conversation
        Question: Why?
        Answer: Top-Posting.
        Question: Whats the most annoying thing on Usenet?

        Comment

        • Kien

          #5
          Re: IE 6 Blocks Javascript

          Randy Webb wrote:[color=blue]
          > Kien wrote:
          >[color=green]
          >> Hi,
          >>
          >> If you test the page *locally* you'll get the message.
          >> But if you upload it and see it online, you won't.
          >> The bar is there to warn you that the script is accessing something in
          >> your *local* hard-drive, like images or text-files or something.[/color]
          >
          >
          > NO. The bar is not there for that reason. Had you bothered to read the
          > article/thread I mentioned you would have found that out. An empty
          > script block as such:
          >
          > <script type="text/javascript"></script>
          >
          > will cause that bar to be present. Now, how is that script above
          > "accessing something on your local hard drive"?
          >
          > And read the group FAQ. It will do you good.
          >[/color]

          Hi Randy,

          OK I take that back but ...
          The "Mark of the Web" didn't work.
          I tested it locally and the bar is still there.

          Isn't there a way to manually and locally switch of this annoying
          "feature" of IE6 WXP sp2?

          Kien

          Comment

          • Randy Webb

            #6
            Re: IE 6 Blocks Javascript

            Kien wrote:
            [color=blue]
            > Randy Webb wrote:
            >[color=green]
            >> Kien wrote:
            >>[color=darkred]
            >>> Hi,
            >>>
            >>> If you test the page *locally* you'll get the message.
            >>> But if you upload it and see it online, you won't.
            >>> The bar is there to warn you that the script is accessing something
            >>> in your *local* hard-drive, like images or text-files or something.[/color]
            >>
            >>
            >>
            >> NO. The bar is not there for that reason. Had you bothered to read the
            >> article/thread I mentioned you would have found that out. An empty
            >> script block as such:
            >>
            >> <script type="text/javascript"></script>
            >>
            >> will cause that bar to be present. Now, how is that script above
            >> "accessing something on your local hard drive"?
            >>
            >> And read the group FAQ. It will do you good.
            >>[/color]
            >
            > Hi Randy,
            >
            > OK I take that back but ...
            > The "Mark of the Web" didn't work.
            > I tested it locally and the bar is still there.[/color]

            Sample code? I have never had it fail in IE6 XP SP2.
            [color=blue]
            > Isn't there a way to manually and locally switch of this annoying
            > "feature" of IE6 WXP sp2?[/color]

            I think, not sure, that you can edit the registry but not sure.

            --
            Randy
            comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

            Comment

            • Grant Wagner

              #7
              Re: IE 6 Blocks Javascript

              "Kien" <caoxuankien@ho tmail.com> wrote in message
              news:UoESd.1711 52$K7.149169@ne ws-server.bigpond. net.au...[color=blue]
              > Randy Webb wrote:[color=green]
              >> Kien wrote:
              >>[color=darkred]
              >>> Hi,
              >>>
              >>> If you test the page *locally* you'll get the message.
              >>> But if you upload it and see it online, you won't.
              >>> The bar is there to warn you that the script is accessing something
              >>> in your *local* hard-drive, like images or text-files or something.[/color]
              >>
              >>
              >> NO. The bar is not there for that reason. Had you bothered to read
              >> the article/thread I mentioned you would have found that out. An
              >> empty script block as such:
              >>
              >> <script type="text/javascript"></script>
              >>
              >> will cause that bar to be present. Now, how is that script above
              >> "accessing something on your local hard drive"?
              >>
              >> And read the group FAQ. It will do you good.
              >>[/color]
              >
              > Hi Randy,
              >
              > OK I take that back but ...
              > The "Mark of the Web" didn't work.
              > I tested it locally and the bar is still there.[/color]

              Correctly inserting the "Mark of the Web" does work:

              <!-- saved from url=(0014)about :internet -->
              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
              <html>
              <head>
              <title>Title</title>
              </head>
              <body>
              </body>
              </html>

              The above places the script in the Internet zone, and therefore IE does
              not block any script, since script in the Internet zone can not do the
              damage that one running in the My Computer zone can.
              [color=blue]
              > Isn't there a way to manually and locally switch of this annoying
              > "feature" of IE6 WXP sp2?[/color]

              Yes.

              Tools > Internet Options > Advanced
              Security section
              check "Allow active content to run in files on My Computer"

              --
              Grant Wagner <gwagner@agrico reunited.com>
              comp.lang.javas cript FAQ - http://jibbering.com/faq


              Comment

              • Dr John Stockton

                #8
                Re: IE 6 Blocks Javascript

                JRS: In article <ke5Td.218$3d3. 914@news2.mts.n et>, dated Wed, 23 Feb
                2005 19:57:04, seen in news:comp.lang. javascript, Grant Wagner
                <gwagner@agrico reunited.com> posted :

                <FAQENTRY>[color=blue]
                >
                >Correctly inserting the "Mark of the Web" does work:
                >
                ><!-- saved from url=(0014)about :internet -->
                ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                > ...
                >The above places the script in the Internet zone, and therefore IE does
                >not block any script, since script in the Internet zone can not do the
                >damage that one running in the My Computer zone can.[/color]

                IMHO, the Mark should be in the FAQ.

                Since there seems to be some difficulty or delaying element as regards
                FAQ updates, can the newsgroup itself develop an item on the Mark,
                suitable for direct quotation or insertion?

                The above is no doubt correct, but IMHO a little more explanation would
                be appropriate for a FAQ response.

                --
                © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
                <URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
                <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
                <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

                Comment

                Working...