leedaekyu / kaptcha

Automatically exported from code.google.com/p/kaptcha
Other
0 stars 0 forks source link

Problem with Can't read the image? Click it to get a new one #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. execute url ...testKaptcha.jsp
2.
3.

What is the expected output? New image when clicked

What do you see instead? No Image

What version of the product are you using? 2.3.2

On what operating system? Windows XP professional

Please provide any additional information below.
Here is my jsp...

<html>
    <head>
        <%@ page language="java" contentType="text/html; charset=UTF-8" %>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>

    <body>
        <h1></h1>
            <form action="createKaptcha" method="post">
                <!--<img src="kaptcha.jpg" /> <input type="text" name="kaptcha" value="" />-->
                <img src="/kaptcha" width="200" id="kaptchaImage" /> <input type="text" name="kaptcha" value="" />
                <input type="submit" name="submit">
            </form>
    </body>
</html>

<script type="text/javascript">
$(function(){
    $('#kaptchaImage').click(function () { $(this).attr('src', '/kaptcha.jpg?' + Math.floor(Math.random()*100) ); })
});

 $('#kaptchaImage').click(function () {
     $(this).hide()
     .attr('src', '/kaptcha.jpg?' + Math.floor(Math.random()*100) )
     .fadeIn();
 })
</script>

Original issue reported on code.google.com by Man...@gmail.com on 31 Aug 2011 at 12:50

GoogleCodeExporter commented 8 years ago
You have two click handlers in your JavaScript. Why?

Please note, this isn't a support forum. If you have questions, please ask on 
the mailing list.

Original comment by latch...@gmail.com on 31 Aug 2011 at 6:13

GoogleCodeExporter commented 8 years ago
How do I go to your mailing list, I can't find one. Thank you.

Original comment by Man...@gmail.com on 6 Sep 2011 at 7:53

GoogleCodeExporter commented 8 years ago
Bottom left hand of this page:

http://code.google.com/p/kaptcha/

Original comment by latch...@gmail.com on 6 Sep 2011 at 9:50