# Ajax and captcha Permission Denied

**URL:** <https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544>\
**Category:** Captchator\
**Created:** [June 26, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544 "2008-06-26T22:53:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [June 26, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544/1 "2008-06-26T22:53:27Z")

</div>

I keep getting a permission Denied and I’m not sure why. Any able to  
help with this?

| | |
| |

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [June 27, 2008, 5:19am UTC](https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544/2 "2008-06-27T05:19:19Z")

</div>

Mark Babcock wrote:

> I keep getting a permission Denied and I’m not sure why. Any able to  
> help with this?

I just copied your code, created a new Rails project and set this code  
to be the index.html.erb file.

It “worked” fine for me, in so far as the captcha image loads, the  
button to reload the image is there and functions, and the text field  
accepts user input.

So while I don’t see how your code was going to return a valid/not-valid  
response code (like I say I just pasted it in and haven’t scrutinized  
it! :-), I don’t get a Permission Denied problem.

Can you be more specific on when/where/how the error comes up?

---

<div class="post-metadata">

**Author:** ![markbates](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@markbates](https://www.ruby-forum.com/u/markbates)\
**Post date:** [September 30, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544/3 "2009-09-30T16:38:27Z")

</div>

Jim T. wrote:

> Mark Babcock wrote:
> 
> > I keep getting a permission Denied and I’m not sure why. Any able to  
> > help with this?
> 
> I just copied your code, created a new Rails project and set this code  
> to be the index.html.erb file.
> 
> It “worked” fine for me, in so far as the captcha image loads, the  
> button to reload the image is there and functions, and the text field  
> accepts user input.
> 
> So while I don’t see how your code was going to return a valid/not-valid  
> response code (like I say I just pasted it in and haven’t scrutinized  
> it! :-), I don’t get a Permission Denied problem.
> 
> Can you be more specific on when/where/how the error comes up?

I implemented the captchator service with jQuery and PHP, making it  
capable to handle AJAX. You can use the source code.

You can check it at [http://luispulido.com/cc/captchator-jquery/](http://luispulido.com/cc/captchator-jquery/)

Hope you find it useful.

-Luis

---

<div class="post-metadata">

**Author:** ![aymgoa](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/aymgoa/32/2772_2.png) [@aymgoa](https://www.ruby-forum.com/u/aymgoa)\
**Post date:** [June 25, 2021, 8:27am UTC](https://www.ruby-forum.com/t/ajax-and-captcha-permission-denied/141544/4 "2021-06-25T08:27:20Z")

</div>

Thank you very much.

[AYM](https://yogateachertraininggoa.com/300-hour-yoga-teacher-training-in-goa-india/)
