Edgewall Software
Modify

Opened 18 years ago

Closed 16 years ago

#3014 closed defect (fixed)

IE specific - Problems with Custom Query about Checkbox Custom Fields

Reported by: dmlee@… Owned by: osimons
Priority: normal Milestone: 0.11
Component: ticket system Version: 0.9.4
Severity: normal Keywords: query ie radio
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

With IE 6 on Windows XP, custom queries do not work properly with checkbox custom fields. The filter shows up with 'yes' and 'no' radio buttons, but I cannot select either radio button using IE.

Firefox works fine.

Attachments (3)

trac-0.9.5-ie-dynamic-radio-fix.diff (1.0 KB ) - added by dmlee@… 18 years ago.
Potential fix
trac-0.10.3-ie-dynamic-radio-fix.diff (825 bytes ) - added by martin dot tomes at eurotherm dot com 17 years ago.
An alternative fix.
trac-ie-dynamic-radio-fix.diff (958 bytes ) - added by Paul Irish <paul.irishEWWSPAM@…> 16 years ago.
revised radio button creation using innerHTML

Download all attachments as: .zip

Change History (15)

by dmlee@…, 18 years ago

Potential fix

comment:1 by dmlee@…, 18 years ago

Turns out this is an IE bug. You just simply cannot select dynamically created radio buttons. I found a work-around at http://cf-bill.blogspot.com/2006/03/another-ie-gotcha-dynamiclly-created.html.

attachment:trac-0.9.5-ie-dynamic-radio-fix.diff fixes the problem. It's ugly, but that's the way things go in the browser compatability game.

comment:2 by dmlee@…, 18 years ago

Milestone: 0.9.6

Maybe if I set the milestone on this bug it will get some attention…

comment:3 by Christopher Lenz, 18 years ago

Component: report systemticket system
Keywords: query added
Milestone: 0.9.60.10
Owner: changed from daniel to Christopher Lenz
Status: newassigned

Ouch, that is another rather awful bug in our beloved browser. If I read the post you linked to correctly, the patch won't work in Opera because it doesn't raise an exception. I'll play with this and try to find something workable.

comment:4 by Christopher Lenz, 18 years ago

Milestone: 0.100.10.1

comment:5 by Matthew Good, 17 years ago

#4199 has been marked as a duplicate.

by martin dot tomes at eurotherm dot com, 17 years ago

An alternative fix.

comment:6 by martin dot tomes at eurotherm dot com, 17 years ago

The best fix would probably be a mix of mine and the original one. In particular only type and name need to be put in the tag passed into createElement for IE.

comment:7 by osimons, 16 years ago

Keywords: ie radio added
Milestone: 0.10.50.11.1

#6778 closed as a duplicate.

comment:ticket:6778:2 has arrived at the same workaround, and has an example pattern for use with current trunk (jQuery).

by Paul Irish <paul.irishEWWSPAM@…>, 16 years ago

revised radio button creation using innerHTML

comment:8 by Paul Irish <paul.irishEWWSPAM@…>, 16 years ago

Patch uses innerHTML to create the radio inside a wrapper SPAN. This avoids browser sniffing, which is a messy game to play.

Tested here in ie6, ie7, ff2, saf3.

in reply to:  8 comment:9 by osimons, 16 years ago

Owner: changed from Christopher Lenz to osimons
Status: assignednew

Replying to Paul Irish <paul.irishEWWSPAM@gmail.com>:

Patch uses innerHTML to create the radio inside a wrapper SPAN. This avoids browser sniffing, which is a messy game to play.

Tested here in ie6, ie7, ff2, saf3.

Superb! Works fine for me on same set of browsers + opera9. Any solution that makes it work without browser sniffing is a "go" from me :-)

Further comments before I commit?

comment:10 by Christian Boos, 16 years ago

Yes, wait 15 more minutes or so if you don't mind, as I'd like to get my next commits grouped with r6633 ;-)

comment:11 by Christian Boos, 16 years ago

Go! ;-)

comment:12 by osimons, 16 years ago

Milestone: 0.11.10.11
Resolution: fixed
Status: newclosed

Latest patch comitted as [6636].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from osimons to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.