Opened 11 years ago
Closed 10 years ago
#7826 closed bug (duplicate)
Datepicker does not work in IE from local intranet due to security zones
Reported by: | dkl | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.11.0 |
Component: | ui.datepicker | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Steps to reproduce:
- Disable javascript in IE in internet zone (Internet Options -> Security -> Internet -> Custom Level... -> Scripting -> Active Scripting: disable)
- Make sure javascript is enabled in local intranet zone (Internet Options -> Security -> Local intranet -> Custom Level... -> Scripting -> Active Scripting: enable)
- Open page with any datepicker in IE from local intranet zone
- Datepicker will display when clicking into textbox, but you are unable to select any day or move to another month.
Why this happens
Datepicker creates content of calendar as HTML string (function _generateHTML). For each clickable element (e.g. day), an onclick attribute with javascript code is generated. When finally adding this HTML to the DOM tree, IE thinks this is script from internet zone and disables any javascript in it.
Related
http://karma.nucleuscms.org/item/101 http://bugs.jquery.com/ticket/1734 http://msdn.microsoft.com/en-us/site/ms536389
How to fix it
Attach click events to items after it is added to the DOM tree.
Versions
Reproduced on jquery-ui 1.8.16 + jquery 1.6.2
as well as on jquery-ui 1.8.11 + jquery 1.4.2
IE8, but very likely to affect all versions of IE
Windows7
Change History (2)
comment:1 Changed 10 years ago by
Milestone: | 1.9.0 → 1.11.0 |
---|
comment:2 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #3945.