Here are the files: Calling page: function getProduct() { var xmlHttp, myurl; myurl = "edit/vs_sprite.php"; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById("product_box").innerHTML=xmlHttp.responseText; } else { document.getElementById("product_box").innerHTML="please wait..."; } } xmlHttp.open("GET",myurl,false); xmlHttp.send(null); } var c=0; var t; var tm=1; function timedCount() { getProduct(); c=c+1; t=setTimeout("timedCount()",tm); tm=12000; } timedCount();
Virtual Showroom
[CLICK HERE ] to see all of our vehicles.
Code for vs_sprite.php:
Virtual Showroom
[](index.php?p=22&vehicleid=<?php echo $row_rs['id']; ?>)
Price: $
[more info](index.php?p=22&vehicleid=<?php echo $row_rs['id']; ?>)
[CLICK HERE ] to see all of our vehicles.
In IE7, the refresh keeps pulling the same record from the database, but with Firefox, it pulls a random record, as it is supposed to. Any ideas? Bart A. Edgerton www.ewebdev.net