Ok, so this is the url
http://air.deroba.org/do.php?vid=SR6iYWJxHqs -> Works and sends the info fine.
Now here is the code running main server:
Code:
<script type="text/javascript">
function DownloadAndConvert(f)
{
//document.getElementById("process").style.display = "block";
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4) {
if(xmlhttp.status==200) {
document.getElementById("received-content").innerHTML="CORRECT";
* } else {
document.getElementById("received-content").innerHTML="FAILED";
}
}
}
xmlhttp.open("GET", "air.deroba.org/do.php?vid=" + f.vid.value, true);
xmlhttp.send();
}
</script>
Code:
<div id="content"><div id="content-body">
<center>
<form name="input" method="get" onsubmit="return DownloadAndConvert(this);">
YouTube Video ID <input type="text" name="vid" id="vid" /><br />
<input type="submit" value="Comenzar!" />
</form><br /><br />
<div id="process" style="display:none;"><img src="http://deroba.org/img/loading.gif" /></div>
<div id="received-content">
Content should change
</div>
</center>
</div>
Any ideas why it will always show FAILED and then reload website?
Thanks