Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Ajax Random pull dosn't work in IE, ok in Firefox

Ajax Random pull dosn't work in IE, ok in Firefox

Scheduled Pinned Locked Moved Web Development
databasecsharpphpvisual-studioquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bartedgerton
    wrote on last edited by
    #1

    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

    [![](edit/<?php echo $row_rsp['link']; ?>)](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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups