This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Ruby and the fly likes Render recaptcha via js.erb Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Languages » Ruby
Reply Bookmark "Render recaptcha via js.erb" Watch "Render recaptcha via js.erb" New topic
Author

Render recaptcha via js.erb

santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 93
I need to display content in a lightbox along with recaptcha.This was very easy except that recaptcha can be used only one per page.So, that threw the hidden div option away. Now, iam trying to render the content via js.erb using jquery's html() method. Rest of the content is rendered correctly.But, i'm having trouble rendering recaptcha.Is there a way to render recaptcha via jQuery html() method? I am using Ambethia reCaptcha.
santoshkumar savadatti
Ranch Hand

Joined: Apr 27, 2010
Posts: 93
Found a solution. I used a single Div(main lightbox container).Within that div, i added another div which wrapped <%=recaptcha_tags%>.This inner div was placed using absolute positioning.For the rest of the content, i used jquery's append() function instead of html() function.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Render recaptcha via js.erb
 
Similar Threads
Help with rack-Recaptcha
portlet communication
Ajax Captcha
make Dynamic ID available to js.erb
Rendering HTML content of the xml file