SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Volitics's Avatar
    Join Date
    Aug 2003
    Location
    US
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript works fine in IE browser, but exact same JS in new file gives error

    .
    I am trying to get the JavaScript drop down menu from this site to work with the Internet Explorer browser:

    Simple JavaScript Drop Down Menu with timeout effect v2.0 Scripts and Tricks JavaScript DHTML Tutorials

    I can download the page to my computer, then open the page from the folder into which it was downloaded with the IE browser, and and it works fine.

    But however, if I: 1). rename the page or 2). copy and paste all of the Html code on the page and then paste it in to a new file and then try to open it in the IE browser I get this message:

    To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options...
    It's got me bewildered.

    I had this exact same problem a few weeks ago with a different web site. I ended up having to not use any JavaScript at all on the previous web site.

    Does anybody have any idea what could be causing the problem?

    Thanks.
    .
    .

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,678
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Volitics View Post
    But however, if I: 1). rename the page or 2). copy and paste all of the Html code on the page and then paste it in to a new file and then try to open it in the IE browser I get this message:

    To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options...
    It's got me bewildered.
    Internet Explorer blocks local scripts, including JavaScript as a potential security threat. If you trust the script that's going to run, you can choose to trust the script and allow it to run.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •