Posted on Friday 7th of September 2007 at 15:21 in Web Development

Fixing the Permission denied to get property XULElement.selectedIndex error

If you're ever doing some AJAX stuff with a text-box input it's possible that your Firebug will throw a very unusual error:

Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method:

The problem lies in Firefox specifically and it's autocomplete functionality. To fix it all you need to do is update your input field with the following code:

<input type="text" autocomplete="off">

The autocomplete bit of code stops Firefox from attempting to complete the content in the box (thus throwing off the DOM or something). It's not XHTML 1.0 transitional complient but it does stop Firefox from throwing errors.

 

Enjoy this article? Why not subscribe to the full RSS feed?

Add Your Comments








Comments

Showing most recent 4 of 4 comments

whoo ! thx man
Thank you so much!!!
Hoang - what is wrong? LOL.
Help me

Subscribe to the RSS Feed

Stay up to date with Seopher.com by subscribing to the RSS feed, either in your browser or subscribe via email using the form below

Updates by Email

By subscribing by email you’re also subscribing to the Seopher.com newsletter; a periodical email outlining new reviews, competitions and other subscriber-only content

  • 125x125 banner only $50 pcm
  • Dreamhost Hosting $5.95 per month
Want to give your product/website exposure?

Paying for a featured review is a great way to give your product, service or website exposure. For as little as $50 you can have a full review on the site forever.

Advertising Bundle! Review + Banner = $70

To kick start the new improved Seopher.com, buy a review and get a 125x125 advert half price. Your banner gets displayed on over 450 pages for a full month.