Captcha JS error & refresh link is hidden

Jun 26, 2013 at 2:37 PM
Edited Jun 26, 2013 at 2:40 PM
Hello,

First, i'd like to thank you for this project. :)

I am experiencing two issues :

=> I have this error message when i use IE 10 (OS : W7)
0x800a1391 - JavaScript: « $ » is undefined
No error shows up with Firefox.


=> The refresh link for the captcha is hidden

In my view, i have this code :
 @Html.MathCaptcha("Try another", "Enter the result you see above:", "Is required field", True)
In browser, the link is hidden. The HTML source is :
<a id="1470d63a44954bdfab4716bf502d1d56" style="display: none;" onclick="______e3cd8cc27f8248b8bc4bc5c2367ef605________()" href="#CaptchaImage">
The attribute display: none; is doing the trick.

Edit : Despite these problems, the captcha is working.

Any helps will be appreciated

Regards,
bqsylou
Coordinator
Jul 6, 2013 at 7:26 AM
Hi there,
Sorry for my late reply.
Did you tried to go on the page with an example? Did errors occurs?
I think that if $ is undefined then it's a problem with jQuery not being found.

Regards,
Vyacheslav Volkov
Jul 10, 2013 at 10:09 AM
Hello,

Thank you for answer.

Yes, I saw this example.

I did a few tests. In my _Layout view i did
 @Scripts.Render("~/bundles/jquery")
 @RenderSection("scripts", required:=False)
        
<div id="main">
    @RenderBody()
</div>
Instead of
<div id="main">
    @RenderBody()
</div>

@Scripts.Render("~/bundles/jquery")
@RenderSection("scripts", required:=False)
And it works as intended.