Note that there are some explanatory texts on larger screens.

plurals
  1. POAjax and IE8 Issue
    text
    copied!<p>I have been having a look to some post here related to the post Im writing now but I can not solve it. The issue is that I have need some data from a php located in my server and make a call in the next manner:</p> <pre><code>function login(tipo) { var xml = null; try{ // Firefox, Opera 8.0+, Safari xml=new XMLHttpRequest(); }catch (e){ // Internet Explorer try{ xml=new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try{ xml=new ActiveXObject("Microsoft.XMLHTTP"); }catch (e){ alert("Your browser does not support AJAX!"); return false; } } } xml.open("POST", "https://www.domoindal.com/mainSite/es/checklogin.php", false); xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xml.send("user="+document.loginForm.user.value+"&amp;pass="+document.loginForm.pass.value); if(xml.status == 404) alert("Url no valida"); var respuesta = xml.responseText.split("#", 3); </code></pre> <p>..... and this code works fine in Safari, Chrome and Firefox, the only exception is IE8. It arises an error in the responseText line (the last one).</p> <p>Another similar question related to IE8 is that I want to change the image in a div and I use the next code:</p> <pre><code>function boton_1() { $("#contenedor_tarjetas").html( '&lt;img src="../images/VISA.png" width="250" height="40" /&gt;' ); $("#cardID").value = 1; return true; </code></pre> <p>}</p> <p>.... it gives me an error in the second line. What happens with this browser?? It seems like if it needs a separated program. I checked all kind of stuff and advices from other post with no success.</p> <p>Is there anything missing? Whats wrong?</p> <p>If someone could help me I would appreciate it a lot.</p> <p>Thanks in advance.</p>
 

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