MapGuide Open Source:  Home |  Download |  Internals

Ticket #353 (closed defect: fixed)

Opened 9 months ago

Last modified 7 months ago

Digitizing fails in IE with 2.0 Beta

Reported by: ksgeograf Assigned to: 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

12/03/07 11:01:44 changed by tomfukushima

  • owner set to chrisclaydon.

02/11/08 16:49:04 changed by ronnielouie

  • status changed from new to closed.
  • resolution set to fixed.
  • external_id set to 1036905.

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.

02/11/08 16:52:30 changed by ronnielouie