IE9 - Problem with javascript

lukasamd

New member
Member
Local time
1:20 PM
Messages
24
Hello,
I have IE9 on Win7 x64 PRO SP1.

I have a problem with javascript on a lot of websites - it doesn't work on normal browse, but when I refresh page (CTRL+F5) everything is ok.

I checked this in developter tools, and there are many communicates like this one:

Code:
SCRIPT: Permission denied

I tried to reset all settings to defaults, remove all addons but nothing helps :|
 

My Computer

OS
Windows 7 / Windows 8

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Packard Bell
OS
Windows 7 Home Premium 64bit
CPU
Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Motherboard
Packard Bell IPISB-AG
Memory
3.00 GB
Graphics Card(s)
(1) Intel(R) HD Graphics (2) VNC Mirror Driver
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
AIO LCD
Screen Resolution
1920 x 1080
Hard Drives
WDC WD10EADX-22TDHB0 ATA Device
Fixed hard disk media
4 partitions
931.51 GB
Keyboard
Wireless
Mouse
Wireless
Antivirus
Microsoft Security Essentials
Browser
IE; Firefox
Other Info
Also:
Samsung N220 Plus Netbook - Windows 7 Home
HP laptop
iPad 5
Thanks, but.. I tried fix - without result.
I reinstalled IE - still without result.
I disable all EMET options (and DEP manually) - still without result.

Hm... any ideas?
 

My Computer

OS
Windows 7 / Windows 8

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Packard Bell
OS
Windows 7 Home Premium 64bit
CPU
Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Motherboard
Packard Bell IPISB-AG
Memory
3.00 GB
Graphics Card(s)
(1) Intel(R) HD Graphics (2) VNC Mirror Driver
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
AIO LCD
Screen Resolution
1920 x 1080
Hard Drives
WDC WD10EADX-22TDHB0 ATA Device
Fixed hard disk media
4 partitions
931.51 GB
Keyboard
Wireless
Mouse
Wireless
Antivirus
Microsoft Security Essentials
Browser
IE; Firefox
Other Info
Also:
Samsung N220 Plus Netbook - Windows 7 Home
HP laptop
iPad 5
I think it isn't the problem - on IE8 everything works fine.
 

My Computer

OS
Windows 7 / Windows 8
There are some interesting points here :
Release Notes

The following may be relevant to your porblem:
Changes in JavaScript Support in Internet Explorer 9
The Chakra JavaScript engine provides support for the ECMAScript Fifth Edition standard and improved script performance. As a result of these changes, and due to our intent to support the same script and same markup across browsers, certain JavaScript features behave differently in or are not supported by Internet Explorer 9. For a list of feature changes and guidance on how to update your web sites, see the Internet Explorer 9 Compatibility Cookbook and the blog post Enhanced Scripting in IE9: ECMAScript 5 Support and More
It seems to me. very early days in IE9's development, so there will inevitably be issues to be resolved - mostly by MS. Perhaps you should revert back to IE9 to avoid the present dilemma. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Packard Bell
OS
Windows 7 Home Premium 64bit
CPU
Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Motherboard
Packard Bell IPISB-AG
Memory
3.00 GB
Graphics Card(s)
(1) Intel(R) HD Graphics (2) VNC Mirror Driver
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
AIO LCD
Screen Resolution
1920 x 1080
Hard Drives
WDC WD10EADX-22TDHB0 ATA Device
Fixed hard disk media
4 partitions
931.51 GB
Keyboard
Wireless
Mouse
Wireless
Antivirus
Microsoft Security Essentials
Browser
IE; Firefox
Other Info
Also:
Samsung N220 Plus Netbook - Windows 7 Home
HP laptop
iPad 5
I think it isn't problem too :)

I made tests on my site (I use jQuery in newest version, compatible with IE9):
- when I open page first time, everything is ok
- when I open subpage JS doesn't work (Permission Denied in scripts monitor)
- when I reload subpage using CTRL+F5, JS works fine, without any problem
- when I back to main page and open subpage again, JS doesn't work again

So it looks like on each page...
On IE8, Firefox 3/4, Chromium 12 and Opera 11 everything is ok.
 

My Computer

OS
Windows 7 / Windows 8
Maybe someone else will have some ideas.

At least you have alternatives which work for you. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Packard Bell
OS
Windows 7 Home Premium 64bit
CPU
Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Motherboard
Packard Bell IPISB-AG
Memory
3.00 GB
Graphics Card(s)
(1) Intel(R) HD Graphics (2) VNC Mirror Driver
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
AIO LCD
Screen Resolution
1920 x 1080
Hard Drives
WDC WD10EADX-22TDHB0 ATA Device
Fixed hard disk media
4 partitions
931.51 GB
Keyboard
Wireless
Mouse
Wireless
Antivirus
Microsoft Security Essentials
Browser
IE; Firefox
Other Info
Also:
Samsung N220 Plus Netbook - Windows 7 Home
HP laptop
iPad 5
Yes, of course. I'm a web designer and I use Firefox usual, but I recommend householders IE9 - I thing it's very good browser for normal user.
 

My Computer

OS
Windows 7 / Windows 8
FWIW (and for those who may be eavesdropping on this discussion), make sure you are trying to repair the correct issue, Java or Java Script: Java vs. JavaScript
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
OQO 2+
OS
Windows 8 Pro w/MC 32-bit
CPU
Intel Atom 1.86 GHz
Motherboard
OQO 2+
Memory
2 GB
Graphics Card(s)
Intel GMA 500
Sound Card
IDT
Monitor(s) Displays
LCD
Screen Resolution
800 x 480 (portable) 1280 x 1024 (docked)
Hard Drives
64 GB SSD
PSU
9 Ah Battery (portable) or OQO Brick (docked)
Case
Shirt Pocket Sized
Cooling
Tiny Fan
Keyboard
Slide out (portable) DiNovo Edge (docked)
Mouse
Eraser head (portable) Logitech Bluetooth (docked)
Internet Speed
WWAN or 802.11G (portable) T1 (docked)
Browser
IE 10
Other Info
DVD-RW OQO Docking Station
This problem concerns javascript, I wrote that I use jQuery.
 

My Computer

OS
Windows 7 / Windows 8
I addded to site code:

Code:
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

and the problem disappeared.
 

My Computer

OS
Windows 7 / Windows 8
I addded to site code:

Code:
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

and the problem disappeared.

I'm having the exact same problem, but this fix didn't work.

I concede though that I am in the midst of writing a new site, so at first, I thought the problem was only with my coding. I haven't confirmed if the problem is mine or IE9 yet.

Usually I work under Chrome and all my buttons function fine. At first, I had a problem because I had never added multiple buttons to a single page before, so when I first added a second button to the page, I realized the problem was that my buttons weren't unique. Spent a week figuring that out and now all my new pages work fine on Chrome, each button having a unique id (but the same class).

Then I got a new computer this week, Windows 7 Home 64 bit with IE9, Dell. So I tested my site using IE9. On the page where I have only one button, it works fine. On the page where I have multiple buttons, although they are unique, they aren't being recognized by IE9. I click and nothing happens. Yet it works fine under Chrome.

At least that's my interpretation of the problem right now. Maybe somebody else knows more...

I am using a line similar to this:

<a id="_post_btt_109" class="button" href="javascript:void(0)">Post It!</a>

Is the void cancelling the action in IE9??
 

My Computer

OS
Windows 7 Home 64 bit
I have found IE9 to be very finicky about where your JavaScript resides in your page. Try moving your JavaScript to the bottom of your code and see if that helps, especially in the case where a script does not work when a page is first loaded, but then it does work after a refresh.
 

My Computer

OS
Windows 7 Professional 64bit
Back
Top