|
-
Oct 9th, 2008, 11:40 PM
#1
Thread Starter
Hyperactive Member
[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?
-
Oct 10th, 2008, 12:10 AM
#2
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
-
Oct 10th, 2008, 12:21 AM
#3
Thread Starter
Hyperactive Member
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.
-
Oct 10th, 2008, 07:44 AM
#4
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
-
Oct 10th, 2008, 07:48 AM
#5
Thread Starter
Hyperactive Member
Re: Javascript security alert on IE
So basically, if a PHP page comes from a webserver, it is deemed as "safe"?
-
Oct 12th, 2008, 06:45 PM
#6
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.)
-
Oct 13th, 2008, 01:28 AM
#7
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.
-
Oct 13th, 2008, 02:04 AM
#8
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|