Coder Social home page Coder Social logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Argh! Typo in the title, and it's uneditable. Oh, the shame. :)

Original comment by [email protected] on 19 Nov 2007 at 4:03

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Update: I found that it's better to apply the ltr direction to recaptcha_table
instead of recaptcha_widget_div, that way, it doesn't affect the whole box's
alignment (left or right).

Attached is the updated PHP file. You can see it in action in my blog:
http://eesh.net/blog/?p=204 (Just a random post).

Original comment by [email protected] on 24 Nov 2007 at 12:27

Attachments:

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Still relevant to version 2.7.

Original comment by [email protected] on 2 Jan 2008 at 12:10

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Hi,

Could you please post a sample HTML page where applying the tag on the div vs.
applying it on the table makes a difference? I'm going to look into applying 
this fix
to the reCAPTCHA javascript, but I need to understand exactly what will work 
best.

Original comment by ben.maurer on 2 Jan 2008 at 4:23

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Here are two static pages I made from my blog. You will see that in the first 
one,
the div is set to LTR, and the whole box is moved to the left instead of being
right-aligned like the rest of the interface. In the second page, the table is 
set to
LTR, so the left/right alignment is inherited from the page and the box is 
aligned to
the right.

http://eesh.net/blog/rc_div.html
http://eesh.net/blog/rc_table.html

IMO, the alignment should be inherited from the page, because that's what the 
user
expects, so LTRing the table is better.

Of course, if you ever plan to add localizations for RTL languages (I would 
gladly
help with Hebrew), this needs to be a per-language parameter in your code, so 
an RTL
language interface won't get an LTR table.

Original comment by [email protected] on 2 Jan 2008 at 4:47

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Hi,

Thanks for the example. I'll look into making the change on the reCAPTCHA side. 
It is
probably going to take a bit because we're in the middle of deploying some major
upgrades.

re: localizing for RTL: I think it's going to be pretty hard to do that with our
current theme. What I'd suggest doing is to use the custom theme. That will 
allow you
to choose the localization and also make a more RTL friendly layout.

Original comment by ben.maurer on 2 Jan 2008 at 5:38

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Thank you!

When I have some free time, I'll look into making a Hebrew custom theme. Is 
there any
way to submit such a thing to you to be included among the standard options?

Original comment by [email protected] on 2 Jan 2008 at 6:23

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
In the meantime, the only fix we could apply to the WordPress plugin is the:

document.getElementById('recaptcha_widget_div').style.direction = 'ltr';

addition. Am I correct? In that case I will include that in the Work-In-Progress
version unless/until otherwise told to (In case it is incorporated into the 
reCAPTCHA
side).

Original comment by [email protected] on 23 Feb 2008 at 8:13

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
It is better to apply the direcrionality to the table, like so:
document.getElementById('recaptcha_widget_table').style.direction = 'ltr';

But except for that detail, yes, that is the only fix possible through the WP 
plugin.

Thank you!

Original comment by [email protected] on 23 Feb 2008 at 8:18

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Sorry for the late response but, I implemented the 'fix' in comment #9 but 
FireBug
claims there is no such element with id 'recaptcha_widget_table'. It doesn't,
however, complain when I use 'recaptcha_widget_div'.

Original comment by [email protected] on 3 May 2008 at 4:33

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
I copied the name wrong, it's supposed to be:
document.getElementById('recaptcha_table').style.direction = 'ltr';

You can see it in action on my blog on any random post (like
http://eesh.net/blog/?p=242) or on the demonstration pages I mentioned on 
comment 5:
http://eesh.net/blog/rc_div.html
http://eesh.net/blog/rc_table.html

You'll notice the rc_table page looks better, because the whole recaptcha frame 
is on
the right (With the textbox and the button, as expected).

Original comment by [email protected] on 6 May 2008 at 12:56

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Alright, thanks for the fix :)

Original comment by [email protected] on 6 May 2008 at 1:20

from recaptcha.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 1, 2024
Glad to have helped!

Original comment by [email protected] on 6 May 2008 at 1:26

from recaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.