jquery - How to fix "Error: Object doesn't support this property or method" javascript error in Internet Explorer? -


on page captcha demo:

http://www.tutorialcadet.com/demo/ajaxform/

the captcha image not refreshing (when clicking on image) in internet explorer. in firefox. chrome, opera works fine.

it throws in explorer popu error:

line: 155 error: object doesn't support property or method 

then when check source code in explorer see on line 155:

<td><div id="captchaimage"><a href="site_base/register/" id="refreshimg" onclick="refreshimg(); return false;" title="click refresh image"><img src="captcha/image.php?1311183335" alt="captcha image" width="132" height="46" align="left" /></a></div></td> 

then when click on image again, error popup shows up:

line: 1 error: object doesn't support property or method 

when view source code see ?blank row? on first row. here screen mean blank first row:

http://i54.tinypic.com/23ves1j.jpg

any suggestion how solve this? happens in internet explorer. using 9. kind of internet explorer bug or?

none of js files define method refreshimg(), hence error.

also captcha.js has code handle captcha.

remove refreshimage(); part onclick of #refreshimg anchor.

the anchor element should like:

<a href="site_base/register/" id="refreshimg" onclick="return false;" title="click refresh image">  <img src="captcha/image.php?1311183335" alt="captcha image" width="132" height="46" align="left" /> </a> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -