Thanks for the reply. But we are trying to implement live id login to our windows store app (html and javascript using phone gap) done in visual studio 2012 as specified in http://msdn.microsoft.com/en-us/library/windows/apps/hh920269.aspx.
The link says, open visual studio, in Solution Explorer, right-click References > Add Reference.... Go to Windows > Extensions, and check the box next to Live SDK. If you don't see Live SDK in the list, reinstall the Live SDK and retry this procedure. Click OK to exit the dialog box. We tried to reinstall it ,but we didn't got anything as specified above.Instead we have, In Solution Explorer, right-click References > Add Reference.... Go to Assemblies > Extensions>Microsoft.live . And when running windows phone emulator, it generates an error like this ," WL is undefined in our js file". I am including the code ,i used for live id login, which i written in index.js on visual studio.
function onLogin() {
document.getElementById('load').innerHTML = "Loading............";
WL.init();
WL.login({
scope: "wl.emails"
}).then(
function (response) {
WL.api({
path: "me",
method: "GET"
}).then(
function (response) {
// alert(response.emails.preferred);
var req = new XMLHttpRequest();
var serviceUrl = 'service url';
req.onreadystatechange = function() {
alert(req.readyState);
if(req.readyState == 4) {
document.getElementById('token').value = req.responseText;
}
}
req.open("GET",serviceUrl+"?username=" + response.emails.preferred + "&action=1",true);
req.send();
},
function (responseFailed) {
alert('Failed to receive email');
document.getElementById("infoArea").innerText =
"Error calling API: " + responseFailed.error.message;
}
);
},
function (responseFailed)
{
alert('Failed');
document.getElementById("infoArea").innerText =
"Error signing in: " + responseFailed.error_description;
}
);
}
<------------------------------------>
included /// <reference path="///LiveSDKHTML/js/wl.js" /> in index.js
and <script src="///LiveSDKHTML/js/wl.js"></script> in index. html. Kindly suggest me how this can be done..and waiting for a response soon.