SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Addict Robert_2006's Avatar
    Join Date
    Jun 2006
    Tarpon Springs Fl.
    0 Post(s)
    0 Thread(s)

    Image Refresh in FF Yes in IE No

    I'm aware of how the cache can prevent images from updating, this is over come by appending random characters to the image. That's what I've done below. Yet it doesn't seem to function in IE. I need the value in id to be passed to verify-image.php. I have tried swapping the placement of ID and rnum but that had no effect. Do you guys have any ideas?

    function reloadImage()
       var id = document.form1.id_check.value;
       var rnum = parseInt(Math.random()*10);
       img = document.getElementById('Captcha');
       img.src = "./includes/verify-image.php?"+rnum+"&id="+id;

    The Call
    <a href="javascript:void(0)" onclick="reloadImage();">[REFRESH IMAGE]</a>
    Last edited by Robert_2006; Apr 28, 2007 at 10:53.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts