Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows 7 gadget and Windows authentication?


08 Apr 2011   #1

windows 7
 
 
Windows 7 gadget and Windows authentication?

Hi everybody,

I'm new at gadget development, so I already have a problem

I want to make a gadget that will, for a start, be returning user name through windows authentication. I'm not sure is this even possible to do?

I've already done an asp web service, which returns user name. Then I've done a html file, from which I'm calling that web service with ajax. And it is all working perfectly fine in web browser.

But when I convert it to a gadget, I get An error occured.

Here is the part of code that is returning an error. As we can see, GetUser function is called, but for some reason i get error.

.ajax({

type: "POST",

contentType: "application/json; charset=utf-8",

url: "http://localhost:888/Service.asmx/GetUser",

dataType: "json",

success: function (data) { $('.result').html("User: " + data.d); },

error: function (e) { $('.result').html("An Error Occured"); }
});




If you have any ideas, how to do it in a easier way, I will be happy to hear it

My System SpecsSystem Spec
.

Reply

 Windows 7 gadget and Windows authentication?




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:06 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33