I'd like to write a search that will allow you to login to password protected sites (email, banking). Problem is, I can't seem to figure out how to make a password-type input and pull that information into the form. I posted a first attempt below, would anyone care to give me ideas?
I'm not currently subscribed to this list, but I'll check the archives in a few days or you can email me directly. Thanks!
<search function="l">
<COMMENT>
Even though this XML search will probably load and is a good start
toward a completed search, please be aware that this search will probably
not work as is and will probably require some changes.
</COMMENT>
<name>Secure Login</name>
<category>Computers</category>
<link></link>
<contributor>Ryan Carpenter</contributor>
<email>ryan_carpenter at comcast dot net</email>
<description>
Login to various web-based email clients, banking services and personalized websites.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>l [EMAIL PROTECTED]</td></tr>
<tr><td>l/pp my_paypal_login</td></tr>
</table>
</description>
<form name="lf">
</form>
<script><![CDATA[
function l(email)
{
if( nullArgs("l",email) )
return false;
else
{
emailArr = email.split("@");
alert("Login:"+emailArr[0]+" Domain:"+emailArr[1]);
docBody = document.getElementsByTagName("body").item(0)
lf = document.createElement('form');
lf.setAttribute('target','_blank');
switch(emailArr[1]) {
case "yahoo.com":
lf.setAttribute('action','https://login.yahoo.com/config/login?5cvirbqubok5q');
lf.setAttribute('method','post');
login = document.createElement('input');
login.setAttribute('name','login');
eval("login.setAttribute('value','"+emailArr[0]+"')");
login.setAttribute('type','hidden');
lf.appendChild(login);
passInpName = "passwd";
break;
default:
return false;
break;
}
displayPopupMessage("enter password","<form name='poppass' style='margin-bottom:0;'><input name='p' type='password'></form><script>poppass.p.focus();</script>")
docBody.appendChild(lf)
// lf.submit();
}
}
]]></script>
<copyright>
The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
<created_by>
Ryan Carpenter 9/10/04
</created_by>
</search>