Permission denied to set property xulelement.selectedIndex FireFox Error

by demtron on Thursday, December 04, 2008 04:38 PM

When using the JavaScript focus() method to set focus to an input element in FireFox, the following error may be produced:

Permission denied to set property xulelement.selectedIndex

This is a known bug in FireFox which, based on my research, was supposed to be fixed several versions ago.  To avoid this error, autocomplete needs to be turned off for the element in question.  This can be accomplished:

Via JavaScript, using element.setAttribute('autocomplete','off');

Or

Via HTML using autocomplete=”off”.

I have read that this error is also produced with the JavaScript select() method but have been unable to reproduce it.


Comments

Comments are closed

Powered by BlogEngine.NET 1.5.1.18
Theme by Mads Kristensen · Adapted by Demtron

Bookmark and Share

Calendar

<<  March 2024  >>
MoTuWeThFrSaSu
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar
Log in

Milwaukee SEO Company

Milwaukee Access Programmer/Developer

Milwaukee Website Designer and Developer



Marketing / SEO

Blog Directory
blogarama - the blog directory
TopOfBlogs
Milwaukee area SEO, SEM, ASP.Net