[jQuery] Re: refresh image?

2009-05-06 Thread André Oliveira
you can, replace your querystring... $("#captcha").attr("src").replaceWith("inc/captcha/captcha.php?test=123"); in the next reload $("#captcha").attr("src").replaceWith("inc/captcha/captcha.php?test=231"); it isn't the best practice... 2009/5/6 Eric Garside > > For reference, this php should

[jQuery] Re: refresh image?

2009-05-06 Thread Eric Garside
For reference, this php should properly force no-cache: Just be sure to replace $mime with the correct type for the image (jpg, gif, whatever you're sending) header('Content-Type: ' . $mime); header('Cache-Control: no-cache'); header('Pragma: no-cache'); On May 6, 2:30 pm, Ricardo wrote: > On

[jQuery] Re: refresh image?

2009-05-06 Thread Ricardo
On May 6, 6:46 am, heohni wrote: > Hi, after sending a form, I would like to reload the form in order to > send a new message. > Therefore I was resetting the old form, but I need to call a new > captch image. > It's currently like this: > > style="float:left;" /> > > I thought I coud re-load it

[jQuery] Re: refresh image?

2009-05-06 Thread ryan.j
depending whether it tries to pull the existing image from the user's temp.internet files or not, you may also want to add a random number onto the request to prevent IE from caching the previous request. On May 6, 12:03 pm, "ryan.j" wrote: > could you .load() the image into a container? > > On

[jQuery] Re: refresh image?

2009-05-06 Thread ryan.j
could you .load() the image into a container? On May 6, 10:46 am, heohni wrote: > Hi, after sending a form, I would like to reload the form in order to > send a new message. > Therefore I was resetting the old form, but I need to call a new > captch image. > It's currently like this: > > style=