1 Reply Latest reply on Jul 16, 2007 4:47 PM by roy kachouh

    Javascript error causing problems.

    roy kachouh Newbie

      Hey guys/gals,

      All of a sudden my application keeps showing the following javascript error in Firefox:


      Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost:8080/CAM/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jef :: anonymous :: line 726" data: no]
      Source File: http://localhost:8080/CAM/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jef
      Line: 726
      


      In firefox, my application seems to ignore this problem. My ajax request for a give button is processed correctly. However, in IE I keep getting the infamous "view state can not be restored, click to reload" message.

      Here is the code that is lauching an ajax request and causing this problem:

      <a4j:commandButton id="sendOpenRequestCommand" action="#{SEND_OPEN_REQUEST_AJAX.processAjaxRequest}"
       onclick="viewActionDetail('rawMessagePara','#{action.correspondingSwiftMessage.prettyMessageText}','#{action.correspondingSwiftMessage.id}');
       Richfaces.showModalPanel('rawMessage',{left: 'auto'})"
       style="cursor:pointer; border: none"
       reRender="top10Panel,resultTable,actionList,resultCount"
       image="images/icons/print_preview.gif" alt="view detail">
       <a4j:actionparam
       id="corporateActionID"
       name="corporateActionID"
       value="#{action.correspondingSwiftMessage.id}"
       assignTo="#{SEND_OPEN_REQUEST_AJAX.corporateActionID}"/>
       <f:param name="#{applicationScope.PARAM_CONSTANTS.MESSAGE_TYPE}" value="#{action.correspondingSwiftMessage.block2.messageType}" />
       <f:param name="#{applicationScope.PARAM_CONSTANTS.PARAM_STATUS}" value="#{action.camStatus.id}" />
       </a4j:commandButton>
      
      Line: 726
      


      Anybody, have any ideas? it's driving me crazy.

      Also, firefox is pointing me to the following line in the ajax4jsf javascript code that is the culprit:



      if(_this._request.status == 200){