Changing image src with jQuery. (Doesn't work on Firefox)
问题 I'm writing an Ajax contact form. I have written my own captcha too. But I have a problem about refreshing the image. I have written this like that: Reloading the captcha: <code>$("#captchaSection").load("captcha_p.php");</code> And the captcha_p.php file: <code>< img src="captcha.php" name="imgCaptcha" /></code> And I have added this lines to the capcha.php: header("Cache-Control: no-cache, no-store, must-revalidate"); header('Content-type: image/png'); imagepng($im); imagedestroy($im); It