BUG in Embedding Moderator preventing Sign In

10 views
Skip to first unread message

Richard

unread,
May 11, 2011, 2:22:39 PM5/11/11
to Google Moderator API
Hi, there is a bug when embedding Google Moderator on a website - this
effects everyone that currently has Google moderator embedded on their
site. The issue effects Firefox and IE but webkit browsers are fine
(Chrome and Safari).

The Issue: When a user arrives on a page with the embedded Moderator
and is not currently signed in to Google, If they click the "Submit a
question" button at the bottom of a topic, the links displayed in the
dialog that prompts a user to "Sign In with your Google Account" or
"Create an Account" do not work. They throw a Javascript error - in
firebug in Firefox it's "uncaught exception: ReferenceError:
WindowedLogin is not defined".

The error is caused because the links (that call the javascript
function "WindowedLogin") have the target="_top" attribute set, so
it's looking for the function in the wrong place. The "Sign In" link
on the top right of the embedded moderator works just fine as it does
not have the target="_top" attribute.

Actual code for the "create an account" :
<a class="gwt-Anchor" href="javascript:WindowedLogin('https://
www.google.com/accounts/NewAccount?service=moderator&amp;followup=http://www.google.com/moderator/static/iflogin.html&amp;continue=http://www.google.com/moderator/static/iflogin.html&amp;passive=1209600&amp;hl=en');"
target="_top">Create an account</a>

So PLEASE Google, remove the target="_top" in these links - it's
breaking all sites that embed moderator.

Thanks, Richard.
Reply all
Reply to author
Forward
0 new messages