Hello, i am trying to make a windows 7 gadget and i am trying to login to a site. How can i do this with javascript? i have this to get the content of a page where login is not required. http = new XMLHttpRequest(); http.onreadystatechange = showNews; http.open("GET", 'http://www.website.com/file.php'); http.send(null); Code (markup): how can i edit it to work on pages where i need to login? thanks.
I would say to keep compatibility over browsers use Jquery's $.ajax function to retrieve the sites content and do what you need with it. very flexible
sigh, he's sandboxed behind the widgets api, what jquery? cross site requests should not be an issue here. as for auth, just append user/pass as get parameters, unless it's htaccess, in which case userass@url