Skip to main content

Search and Top Navigation

#7826 closed bug (duplicate)

Opened October 31, 2011 11:08AM UTC

Closed October 19, 2012 07:37PM UTC

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: **

1. Disable javascript in IE in **internet** zone (Internet Options -> Security -> Internet -> Custom Level... -> Scripting -> Active Scripting: disable)

1. Make sure javascript is enabled in **local intranet** zone (Internet Options -> Security -> Local intranet -> Custom Level... -> Scripting -> Active Scripting: enable)

1. Open page with any datepicker in IE from **local intranet** zone

1. 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

Attachments (0)
Change History (2)

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:1

milestone: 1.9.01.11.0

Changed October 19, 2012 07:37PM UTC by mikesherov comment:2

resolution: → duplicate
status: newclosed

Duplicate of #3945.