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?

blog comments powered by Disqus
Who is Seopher?

This is me. I'm a 26 year old web developer, blogger and entrepreneur from near London.

I've done work for people like Samsung, Vauxhall, Cadburys, Chevrolet, Center Parcs and TKMaxx.

I've been running this blog since 2006 and have reached more than 1.3 million readers, so feel free to say hi.

Seopher
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

  • Top Earning Team
  • dreamhost
  • buy 125x125 advert for $50 pcm
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 $75 you can have a full review on the site forever.

Advertising Bundle! Review + Banner = $100

Buy a review and get a 125x125 advert half price. Your banner gets displayed on over 526 pages for a full month.