Try following this example:
http://gdatatips.blogspot.com/2008/12/using-javascript-client-library-w-non.html

<http://gdatatips.blogspot.com/2008/12/using-javascript-client-library-w-non.html>There's
also documentation here:
http://code.google.com/apis/gdata/client-js.html

That said, I'm not 100% sure the gmail atom feed with work
with the JS client.

<http://code.google.com/apis/gdata/client-js.html>Eric

On Tue, Jul 14, 2009 at 10:51 PM, widget develop <widgetdeve...@gmail.com>wrote:

>
> Hi All,
> I tried to login gmail with userid and password ,but i am unable to
> login ,can you please solve this problem?
> My code is :
>
> <html>
>        <head>
>                <meta http-equiv="Content-Type" content="text/html;
> charset=utf-8">
>                <title>GmailUI</title>
>        </head>
>        <script type="text/javascript" src="http://www.google.com/
> jsapi"></
> script>
>        <script type="text/javascript">
>         google.load('gdata', '1');
>             google.setOnLoadCallback(logMeIn);
>        google.accounts.user();
>        function logMeIn() {
>          var token = google.accounts.user.login('http://
> userid:passw...@gmail.google.com/gmail/feed/atom','http://
> www.gmail.com');
>          alert("Value is:",token);
>        }
>        function onLoadNotify(){
>                alert("Page laoded");
>        }
>        </script>
>        <body onload="onLoadNotify();">
>        <input type="button" value ="Login" onclick="logMeIn();"/>
>        </body>
> </html>
>
> Thanx & Regards
> Ajay
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to