Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Found the fix to the problem.Fixed by modifying ajax4jsf-1.1.0.jar </p> <p>Root cause: In case of IE-8 the response is being fetched from Ajax object though the response is not read yet. So we added fix for IE by checking the status==200 and readystate=4.</p> <p>Here is what we did Open AJAX.js which is under \org\ajax4jsf\framework\ajax\scripts\AJAX.js inside the jar </p> <p>STEP 1. Change from:</p> <pre class="lang-js prettyprint-override"><code> getResponseText : function(){ return this._request.responseText; } </code></pre> <p>TO:</p> <pre class="lang-js prettyprint-override"><code> getResponseText : function(){ if (this._request.readyState == 4){ if (this._request.status == 200) { return this._request.responseText; } } } </code></pre> <p>STEP 2. Looks for this method and change FROM:</p> <pre class="lang-js prettyprint-override"><code> window.setTimeout(function() { var isDocOpen=false; //This functions has few more lines , I have not pasted all code here... </code></pre> <p>Change TO:</p> <pre class="lang-js prettyprint-override"><code> //This is the Fix for IE....The isIE variable is pre defined inside the script. if (isIE){ if (req.readyState == 4){ if (req.status == 200) { window.document.open(req.getContentType(),true); isDocOpen=true; window.document.write(req.getResponseText()); window.document.close(); } } } else { //This is the Original code... //Keep this for all other browsers... window.document.open(req.getContentType(),true); isDocOpen=true; window.document.write(req.getResponseText()); window.document.close(); } </code></pre> <p>....... Rest of the code should follow as on Original script.</p> <p>STEP 3:</p> <pre class="lang-js prettyprint-override"><code> //COMMENT OUT THIS ORIGINAL CODE. Not sure why this reloading is done for IE //this was causing IE to send requests...more than once.. //if(isIE){ / For Ie , scripts on page not activated. // window.location.reload(false); //} </code></pre> <p>Once we made the above change , we used win rar and dropped the Ajax.js file back to ajax4jsf-1.1.0.jar and now IE 8 pains got resolved.</p> <p>Hope it helps someone out there. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload