Click here to Skip to main content
16,007,885 members
Home / Discussions / Web Development
   

Web Development

 
Questionpopup celander Pin
Haresh Boghani16-Jun-07 0:51
Haresh Boghani16-Jun-07 0:51 
AnswerRe: popup celander Pin
Duane in Japan17-Jun-07 0:38
Duane in Japan17-Jun-07 0:38 
Questioncryscal report in asp Pin
Haresh Boghani16-Jun-07 0:39
Haresh Boghani16-Jun-07 0:39 
Questioncrystal report in asp Pin
Haresh Boghani16-Jun-07 0:36
Haresh Boghani16-Jun-07 0:36 
QuestionTo make a pop window at PageLoad time Pin
codingrocks15-Jun-07 18:42
codingrocks15-Jun-07 18:42 
AnswerRe: To make a pop window at PageLoad time Pin
JimmyRopes16-Jun-07 3:54
professionalJimmyRopes16-Jun-07 3:54 
GeneralRe: To make a pop window at PageLoad time Pin
badgrs18-Jun-07 0:15
badgrs18-Jun-07 0:15 
QuestionAjax Random pull dosn't work in IE, ok in Firefox Pin
bartedgerton15-Jun-07 9:20
bartedgerton15-Jun-07 9:20 
Here are the files:

Calling page:

<script type="text/javascript">
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();
</script>
<div id="product_box" class="right_content">
<p class="titles">Virtual Showroom</p>
<p class="copy"><a href="index.php?p=4">[CLICK HERE ]</a> to see all of our vehicles.</p>
</div>

Code for vs_sprite.php:
<?php
require_once('../Connections/myconn.php');
mysql_select_db($database_MoElev, $MoElev);
$query_rs = "SELECT * FROM vehicle ORDER BY rand() LIMIT 1";
$rs = mysql_query($query_rs, $MoElev) or die(mysql_error());
$row_rs = mysql_fetch_assoc($rs);
?>
<br />
<p class=titles>Virtual Showroom</p>
<p class="copy">
<a href="index.php?p=22&vehicleid=<?php echo $row_rs['id']; ?>">
<?php
$id = $row_rs['id'];
$query_rsp = "SELECT link FROM tblImages WHERE vid = $id";
$rsp = mysql_query($query_rsp, $MoElev) or die(mysql_error());
$row_rsp = mysql_fetch_assoc($rsp);
?>
<img src="edit/<?php echo $row_rsp['link']; ?>" border=0 style="height:75px;width:100px;">
</a>
<br />
<span class="smallcopy"><?php echo $row_rs['title']; ?></span><br />
<span class="smallcopy">Price: $<?php echo $row_rs['price']; ?></span>
</p>
<p class="copy"><a class="more" href="index.php?p=22&vehicleid=<?php echo $row_rs['id']; ?>">more info</a></p>
<p class="copy"><a href="index.php?p=4">[CLICK HERE ]</a> to see all of our vehicles.</p>

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
QuestionHELP: ASP JScript &amp; VBScript interoperability [modified] Pin
andrewwan198015-Jun-07 6:24
andrewwan198015-Jun-07 6:24 
AnswerASP JScript &amp; VBScript interoperability Pin
andyharman15-Jun-07 7:56
professionalandyharman15-Jun-07 7:56 
Questionproblem with XMLHttpRequest Pin
tranglt14-Jun-07 23:55
tranglt14-Jun-07 23:55 
QuestionList problem. Please, help me out. Pin
shapper14-Jun-07 12:34
shapper14-Jun-07 12:34 
AnswerRe: List problem. Please, help me out. Pin
Johnny ²14-Jun-07 14:34
Johnny ²14-Jun-07 14:34 
GeneralRe: List problem. Please, help me out. Pin
bartedgerton15-Jun-07 9:13
bartedgerton15-Jun-07 9:13 
QuestionPopulating a control dependant on data bound in Gridview Pin
Chris McGlothen14-Jun-07 8:36
Chris McGlothen14-Jun-07 8:36 
AnswerRe: Populating a control dependant on data bound in Gridview Pin
kubben15-Jun-07 3:56
kubben15-Jun-07 3:56 
QuestionRe: Populating a control dependant on data bound in Gridview Pin
Chris McGlothen15-Jun-07 4:42
Chris McGlothen15-Jun-07 4:42 
AnswerRe: Populating a control dependant on data bound in Gridview Pin
kubben15-Jun-07 4:44
kubben15-Jun-07 4:44 
GeneralRe: Populating a control dependant on data bound in Gridview Pin
Chris McGlothen15-Jun-07 7:06
Chris McGlothen15-Jun-07 7:06 
QuestionSoap Errors (Soap Toolkit 3.0) Pin
horacyjr14-Jun-07 8:00
horacyjr14-Jun-07 8:00 
QuestionSetting Up a Form, help please Pin
theimmortalmoo14-Jun-07 6:18
theimmortalmoo14-Jun-07 6:18 
AnswerRe: Setting Up a Form, help please Pin
Johnny ²14-Jun-07 14:36
Johnny ²14-Jun-07 14:36 
QuestionEmbedding Myriad3D ActiveX [modified] Pin
notacreativeguy14-Jun-07 4:27
notacreativeguy14-Jun-07 4:27 
QuestionHow to end Cookie's Session? Pin
vijay_8314-Jun-07 1:42
vijay_8314-Jun-07 1:42 
AnswerRe: How to end Cookie's Session? Pin
sathesh pandian27-Jun-07 20:01
sathesh pandian27-Jun-07 20:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.