As I have understood it there are diffrent ways to pass the logon information to the server. And I think the way you describe does not work for my application since I'm using the XMLHttpRequest.
I have cut out the line of code from the webpage.Hope this will help you. <input type="text" name="email" id="email" class="loginBox" maxlength="255">Email <br><input type="password" name="pwd" id="pwd" class="loginBox" maxlength="20">Password Best Regards Jens On May 27, 1:59 pm, Stefan vd <[email protected]> wrote: > Hi, > > Here a example if you want to login (example to a mail server) in a > gadget. When you press on OK. It will open you website (example person > mail). > > // Example code, login to website > function login(){ > var urlstring = "http://examplesite.com/index.html?radio1=user&uname=" > + username.value + "&pword=" + pasword.value; > var winShell = new ActiveXObject("Shell.Application"); > // winShell.ShellStart(); > winShell.ShellExecute(urlstring); > > } > > On the design mode you just need a textbox for paswoord.value and > username.value > And a OK button to submit. > > Kind Regards, > Stefan Van Damme (aka Stefan vd) > Gadget Developer > > On 26 mei, 20:02, gadgets <[email protected]> wrote: > > > > > Hi, > > > Yes, I've read that articel but I still have problem to logon to the > > webpage. > > > The following lines are in the webpage code: > > <form name="login" id="login" method="post" > > and I now realise that there are no ID="login" and ID="pass" in the > > code. As I have understood are these tags necessary for this logon > > approach. How do I then pass the logon information to the webpage ? > > > BR > > Jens > > > On May 25, 7:25 pm, Stefan vd <[email protected]> wrote: > > > > Hi, > > > > Do you have check this > > > article?http://code.google.com/apis/desktop/articles/e9.html > > > > Kind Regards, > > > Stefan Van Damme (aka Stefan vd) > > > Gadget Developer > > > > On May 24, 1:15 pm, gadgets <[email protected]> wrote: > > > > > Hi, > > > > I'm not totaly new to this but I now want to try something new. > > > > > I've been looking for details about how to logon to a webpage and > > > > extract information e.g. status on account and present this in a > > > > gadget. > > > > > *I've been trying to send the login information with > > > > req.send("&login=username&pass=password"); but I don't get the > > > > response as I expect. > > > > > *How do I handel cookies ? In the response from the site do I get a > > > > "Set-cookie". How do I use this information in the coming requests to > > > > the site ? > > > > > Thanks- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
