SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Mar 9, 2007, 22:56 #1
- Join Date
- Jul 2003
- Location
- Northeastern USA
- Posts
- 4,617
- Mentioned
- 56 Post(s)
- Tagged
- 1 Thread(s)
JavaScript being detected as ActiveX??
I built a form that utilizes arrays for storing data, prototype objects stored in arrays, and DOM using getElementByID and getElementByName. Now, in XP SP2 with the security center turned on, I get alerted by IE6/7 that there is an ActiveX script on the page and it asks to be allowed.
I don't want users IE to see this ActiveX warning. First, the users going to be using this form are not exactly tech savvy enough to know to allow it. Second, I had no idea JavaScript was related to ActiveX--which begs the question, what sort of things cause JavaScript to be flagged as ActiveX?
Thanks
-
Mar 9, 2007, 23:09 #2
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Are you sure that is said ActiveX and not "active content"?
How to Disable Internet Explorer's Information Bar for Active ContentWe miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Mar 10, 2007, 16:06 #3
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
Internet Explorer has several different active scripting languages - VBScript, JScript and ActiveX. The first two can be linked directly into a web page and the htird must be called from one of the first two.
IE does not understand Javascript at all and treats the code as if it were JScript.
Any scripts running from your computer potentially have access to all the files on your computer and therefore popup the warning. If it is running from a web site instead of your computer then access is limited to the domain it is running on unless an ActiveX call is made and so the warning will then only popup when JCscript or VBscript calls ActiveX.
You therefore get warnings while testing scripts on your computer that will not appear after the script is uploaded to your site.Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
-
Mar 11, 2007, 19:23 #4
- Join Date
- Jul 2003
- Location
- Northeastern USA
- Posts
- 4,617
- Mentioned
- 56 Post(s)
- Tagged
- 1 Thread(s)
Yup, that's what it was. Guess I didn't read carefully enough. Thanks guys
Bookmarks