bujjulu Posted October 30, 2011 Report Posted October 30, 2011 I have used AJAX example in this html site [url="http://iforerunner.com/news/#"]Please Click HERE[/url]
andhrabalayya Posted October 30, 2011 Report Posted October 30, 2011 Ok ? makenduku cheptunnavu [quote name='bujjulu' timestamp='1320015321' post='3049119'] I have used AJAX example in this html site [url="http://iforerunner.com/news/#"]Please Click HERE[/url] [/quote]
Vikkas Posted October 30, 2011 Report Posted October 30, 2011 LOL. new way of marketing ur website. urock
chipanjichiru Posted October 31, 2011 Report Posted October 31, 2011 Testing failed... code rasina aa jaffa yevadu... its not working... function showTV(str) { showCurrentAd(); var str1="<iframe src="; document.getElementById("tvdisplay").innerHTML = str1+str+".html width=\"600\" height=\"480\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" border=\"0\" style=\"border-width:1px; ; border-color:green\"> </iframe>"; } function postRequest(strURL) { var xmlHttp; if (window.XMLHttpRequest) { // Mozilla, Safari, ... var xmlHttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlHttp.open('POST', strURL, true); xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { updatepage(xmlHttp.responseText); } } xmlHttp.send(strURL); } function updatepage(str){ if(str.indexOf("503 Service Temporarily Unavailable")>-1 ) { str="<iframe src=\"http://rcm.amazon.com/e/cm?t=dealsiforerun-20&o=1&p=20&l=ur1&category=electronics&banner=1VDPFXG4JXWABYY6R8R2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\" style=\"border:none;\"></iframe>"; } if(str.indexOf("HTTP Status 500")>-1 ) { str="<iframe src=\"http://rcm.amazon.com/e/cm?t=dealsiforerun-20&o=1&p=20&l=ur1&category=electronics&banner=1VDPFXG4JXWABYY6R8R2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\" style=\"border:none;\"></iframe>"; } document.getElementById("deals").innerHTML = str ; } function showCurrentAd(){ var url="http://iforerunner.com/ads/deals.jsp?math=" +Math.random(); postRequest(url); t=setTimeout("showCurrentAd()",30000); }
Recommended Posts