Jump to content

How I break object(youtube) with ajax? (results have correct value)but the youtube isnt displaying


immunity

Recommended Posts

How I bring*

function getYoutube(){ var url = "getyoutube.php"; http.open("GET",url,true); http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { var results= http.responseText; if( results.match("error") ) { alert("Σας πληροφορούμε πως ο Server τα χει παίξει"); } else { document.getElementById('Youtube').innerHTML= results; alert(results); } } } http.send(null);}function getHTTPObject() { var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject){ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); if (!xmlhttp){ xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); } } return xmlhttp; } var http = getHTTPObject(); // We create the HTTP Object </script>
Alert(results) pop up =
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=jFxFau-45wE"></param><param'>http://www.youtube.com/watch?v=jFxFau-45wE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v=jFxFau-45wE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...