Results 1 to 3 of 3

Thread: Getting JS Error in FB Linux but not in FB Windows

  1. #1

    Default Getting JS Error in FB Linux but not in FB Windows

    Hello:

    I struggled for a while trying to find out how to insert database row ids into a grid to identify which row to update in the database until I discovered that I could load and retrieve that info from the data store.

    So, I create my grid like so:
    Code:
    	var grid = new Ext.grid.EditorGrid('managers', {
    	    ds: dsManagers, 
    	    cm: colModel,
    	    autoHeight:true,
    	    autoSizeColumns:true,
    	    selModel: new Ext.grid.RowSelectionModel({singleSelect:true}) 
    	});
    	grid.render();
    and I update the database like so:
    Code:
    	grid.on('afteredit', updateDB); 
    	
    	function updateDB(oGrid_event) {
    	    var mgrID = dsManagers.getAt(oGrid_event.row).get("managerID");
    	    var item = oGrid_event.field;
    	    var value = oGrid_event.value;
    	    var conn = new Ext.data.Connection();
            conn.request({
              url: "ajaxAdminRequest.php",
              scripts:true,
              params: {
                 typeID:'updateManagers',
                 managerID:mgrID,
                 item:item,
                 itemValue:value
                }
            });
         };
    This actually works well except that it generates a FB error in Linux but not in Windows. If I edit the grid and mouse click away from the cell, all goes well. But if I edit the grid and hit Enter, I get the following error (p.s. the database still gets updated):
    Code:
    [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMEvent.type]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://it-resourceshq.com/ext/scripts/ext-all.js :: anonymous :: line 17" data: no]
    Does anyone know what could be causing this?

    Thanks for your help.

    Ken

  2. #2

    Default

    in my experience these errors have been non-fatal and are only experienced if firebug is active.
    does it stop the code from executing, and does it still ocur if firbug is deactivated?

  3. #3

    Default

    Quote Originally Posted by devnull View Post
    does it stop the code from executing, and does it still ocur if firbug is deactivated?
    Nope, code executes fine and there are no errors with Firebug deactivated. So, I guess it's no worry.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •