Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am implementing Google API Login: I am being able to login to my web app and now I am trying to fetch user details like Name, Email etc.

To fetch a user name I've a following code (got it from Google Developer's site)

gapi.client.load('plus', 'v1', function () { var request = gapi.client.plus.people.get({ 'userId': 'me' }); request.execute(function (resp) { document.getElementById('<%= hdnFldFaname.ClientID %>').value = resp.display Name; }); });

I'm trying to assign a user's name to a hiddenfiled control.. it's working only in IE(Internet Explorar) but not in Firefox, Chrome

Why this is so.. can anybody help??
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900