Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#353 closed defect (fixed)

Digitizing fails in IE with 2.0 Beta

Reported by: ksgeograf Owned by: chrisclaydon
Priority: medium Milestone: 2.0
Component: AJAX Viewer Version: 2.0.0
Severity: trivial Keywords: digitize KeyTarget type=hidden digitize
Cc: External ID: 1036905

Description

The call:

document.getElementById("KeyTarget").focus();

fails in IE because the KeyTarget element is declared with type=hidden. It is not possible to focus a hidden element in IE.

The fix is simple, change line 3656 in ajaxmappane from:

<input id="KeyTarget" type="hidden" onKeyDown="return KeyPressed(event);" style="position: absolute; left: 0px; right: 0px; width: 0px; height: 0px" >

to:

<input id="KeyTarget" onKeyDown="return KeyPressed(event);" style="position: absolute; left: 0px; right: 0px; width: 0px; height: 0px; z-index: 0;" >

Change History (3)

comment:1 by tomfukushima, 16 years ago

Owner: set to chrisclaydon

comment:2 by ronnielouie, 16 years ago

External ID: 1036905
Resolution: fixed
Status: newclosed

Digitize behavior was broken as a result for changes for ticket #5. Internet Explorer 6 and greater does not allow focus on hidden objects. Updated ajaxmappane.templ to use the default (text) type when IE 6 or greater is detected. With this fix digitize on IE 6, 7, and FireFox (2.0.0.12 Windows and 1.5.0.3 Linux) tested OK.

Note: See TracTickets for help on using tickets.