This is a migrated thread and some comments may be shown as answers.

Erroneous check after refresh (FireFox)

2 Answers 35 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 13 Jan 2011, 06:44 PM
This is a FireFox (3.6.13) problem (cannot reproduce in IE 8) - however, using IE8 is not a viable alternative since it's such a crappy browser.

I have a ListBox on my page that has an item that appears checked even though it is actually not checked (or selected). If I click on the erroneously checked item, the code executes as if I have just checked it, not unchecked it. Also, the image remains checked. If I check it again, it unchecks the item and the code executes as such.

Here's a strange part: if I select the 2nd item in the list and refresh the web page (using the browser's refresh button), the 1st item will appear selected (even though it's not). When I use FireBug to look at the checkbox elements in the ListBox, the box does NOT have the attribute checked="checked". The css styles on the elements didn't reveal anything either.

2 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 14 Jan 2011, 08:37 AM
Hello Brad,

This is actually a Firefox feature - it fills out the form fields for you after refresh, even the hidden ones. Check this page in MDC for more information, the fix usually boils down to adding an autocomplete="off" to the form tag.

Regards,
Kamen Bundev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brad
Top achievements
Rank 1
answered on 14 Jan 2011, 01:51 PM
Okay, so that worked, but I'm not sure how "autocomplete" would cause a checkbox to appear checked when it is actually not checked. What purpose is this? That's a rhetorical question. Thanks Telerik.
Tags
ListBox
Asked by
Brad
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Brad
Top achievements
Rank 1
Share this question
or