SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Load adsense ads using AJAX
Threaded View
-
Jun 10, 2007, 13:46 #1
- Join Date
- Nov 2005
- Location
- Jerusalem
- Posts
- 542
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Load adsense ads using AJAX
Hello,
When I try to get an adsense ad script using Ajax it doesn't show up... Why?
This is my code:
Code:function beginajax() { xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="ads.php"; xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4) { document.getElementById("Google-Ads").innerHTML=xmlHttp.responseText; } }
Bookmarks