On Jul 15, 10:51 am, 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





try this example
-----------------------

<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.x");

        function logMeIn() {
          var token = google.accounts.user.login('http://
www.google.com/m8/feeds');
          alert("Value is:"+token);
        }
        </script>
        <body onload="onLoadNotify();">
        <img width="1px" height="1px" src="pix.jpg" alt="google"/>
        <input type="button" value ="Login" onclick="logMeIn();"/>
        </body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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