English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am getting this wierd error in Firefox and not in Internet Explorer.

Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://192.168.1.5/site4/includes/validate.js :: calculateViews :: line 259" data: no]
Source File: http://192.168.1.5/site4/includes/validate.js
Line: 259

I have two textboxes in form, when i type something in textbox1, it goes to javascript, get data from the DB using Ajax and does some calculations from the value passed to it and updates the textbox2.

2006-08-09 00:36:33 · 1 answers · asked by Manish 5 in Computers & Internet Programming & Design

1 answers

This is a known bug in Firefox at the moment, it appears to be related to Firefox's autocomplete feature of the browser which is nothing you can do about it yet. It can trigger if:

1) You call an alert in a function which was called from the input element

2) Set focus to specific HTML elements from JavaScript... even though it does set focus. (This was primarily around FF 0.8)

The only fix they recommend is using the attribute "autocomplete=off" on your input element (even though this invalidates the element if you are using XHTML.

According to bug track number 236791, it has been fixed as of 1.8.1 but targeted for Firefox 2 beta 1.

Hope this helps.

2006-08-09 10:30:06 · answer #1 · answered by Martyr2 7 · 1 0

fedest.com, questions and answers