MySQL Forums
Forum List  »  Connector/Node.js

JAVASCRIPT: Program Quit because => Error: NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN:
Posted by: rick pizzi
Date: September 20, 2013 11:12AM

Hi,

I have a lomg running program that has inexplicably quit running. I run Ubuntu 13.04 and jquery 1.7.js. I'll try a brief explanation first.

I generate a select list from a partial name submitted by form.

1. Enter partial name on form and submit.
2. Program produces select list of qualified names.
3. Pick option(name) from select list.
4. Program shows (used to) table of data for associated name (from mysql Db).

The trouble is in the showing of the generated data. The data no longer shows up. I have tried running firebug on this and it is acting weird also. It starts to run and just quits.

For instance; Firebug just stopped when running my file 'load.js' no error shown - does not have console option listed like it usually does.

Any help solving this would be appreciated.

R.

// ===================== This is my 'load.js' file ===============================

$(document).ready(function() {
$(function() {
$('#getPartName').one('submit',function() { showValues(); return false; }); //.one is one time only, could be .bind
});
function showValues() {
var searchName=$('#partnm').val();
//alert(typeof searchName);
if(typeof(searchName)=="string" & searchName=="") searchName="All Names";
var str = $("#getPartName").serialize();
//alert(typeof str, str);
$(".results-box").fadeIn();
$(".results").html("Result of Name Search for <span style='color:red;'>"
+ searchName + "</span> : Click on Your Choice for Data");
$(".results").append('<div id="addrsNames"></div>')
//.children("#addrsNames").hide()
.load("makeSelectList.php #addrsNames", str , function() { //
//$("#partname").remove();
$("#addrsNames").show(); //.slideDown("slow");
addSelectChange();
}); // function
} //show values
}); // doc ready

// ================ function addSelectChange() ==================================

function addSelectChange(){
$('select').one('change', function(){
var mySelection= $("option:selected", this).val();
//alert("my selection", typeof mySelection, mySelection);
if(mySelection) {
window.location.href="ContactInit.html?Display_Name="+ encodeURIComponent(mySelection);
}else {
alert(" Bad Search, Check names, first and last.");
}
});}

// ========================= End load.js ==============================================


// ===== Error Message From error console ===============

Timestamp: 09/20/2013 08:46:39 AM
Error: NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN: Cannot modify properties of a WrappedNative
Source File: chrome://global/content/bindings/autocomplete.xml
Line: 915
// ======================== end error message ================

// ============ partial document containing line 915 ======
<?xml version-"1.0"?>

<!DOCTYPE bindings [
<!ENTITY % actionsDTD SYSTEM "chrome://global/locale/actions.dtd">
%actionsDTD;
]>

<bindings id="autocompleteBindings"
          xmlns="http://www.mozilla.org/xbl";
          xmlns:html="http://www.w3.org/1999/xhtml";
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
          xmlns:xbl="http://www.mozilla.org/xbl">;..
..

<handler event="popuphiding"><![CDATA[
        var isListActive = true;
        if (this.selectedIndex == -1)
          isListActive = false;
        var controller = this.view.QueryInterface(Components.interfaces.nsIAutoCompleteController);
        controller.stopSearch();

        this.mPopupOpen = false;

        // Reset the maxRows property to the cached "normal" value, and reset
        // _normalMaxRows so that we can detect whether it was set by the input
        // when the popupshowing handler runs.
        this.mInput.maxRows = this._normalMaxRows;
        this._normalMaxRows = -1;
        // If the list was being navigated and then closed, make sure
        // we fire accessible focus event back to textbox
        if (isListActive) {
Line 915 =>     this.mInput.mIgnoreFocus = true;
          this.mInput._focus();
          this.mInput.mIgnoreFocus = false;
        }

Options: ReplyQuote


Subject
Written By
Posted
JAVASCRIPT: Program Quit because => Error: NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN:
September 20, 2013 11:12AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.