Results 1 to 8 of 8

Thread: [RESOLVED] Javascript security alert on IE

  1. #1

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Resolved [RESOLVED] Javascript security alert on IE

    Hi All

    This is more an observation than a question...

    Has anyone noticed that if you add javascript to your PHP pages, you don't get the "Security Alert" banner in IE? If you take exactly the same php file, remove the php code and save it as HTML, the banner appears.

    Perhaps this topic has been raised before, though I couldn't find anything explaining the odd symptoms. Is there perhaps a documented reason for this anywhere?

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Javascript security alert on IE

    It is possible that IE doesn't look for javascript in files with the php extension.
    My usual boring signature: Something

  3. #3

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Re: Javascript security alert on IE

    I suspected that as well... Unfortunately there aren't any other browsers (that I'm aware of) that stops JS from running with a security alert. Opera, Firefox, etc... they all just run the JS.

  4. #4
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Javascript security alert on IE

    Now, you may be right, I am not in the mood to prove you wrong

    If you open a HTML + JavaScript file locally IE will say 'hang about, I don't think I shall be executing a JavaScript like this' and displays a warning. But to view a PHP script, you have to go through a web server, aka this is not technically local and therefore your browser may apply normal restrictions.

    Me

  5. #5

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Javascript security alert on IE

    Yes — if you look in IE's security zoning settings, you should see that scripts in local files are untrusted. (I'm not certain why, but there you go.)

  7. #7
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: [RESOLVED] Javascript security alert on IE

    It's not PHP from a webserver mind, any scripting language from a webserver has different settings to that of a local file.

  8. #8

    Thread Starter
    Hyperactive Member BillGeek's Avatar
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    440

    Re: [RESOLVED] Javascript security alert on IE

    Indeed. (I didn't submit my previous post... )

    In the meanwhile, I have set the security settings for the "Internet" zone, and the security alert popped up.

    Thread resolved.

Posting Permissions

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



Click Here to Expand Forum to Full Width