immunity Posted June 27, 2007 Share Posted June 27, 2007 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 More sharing options...
justsomeguy Posted June 27, 2007 Share Posted June 27, 2007 Is there an element on the page with an ID of Youtube? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.