Hm. It wouldn't run using the default params (yyid) when no value was
passed, so I removed the call to nullArgs. I've replaced it with code
similar to the code for banyg with another mod, too, and it looks like
this is working the way I want - and you expect. ;) I also expanded the
help a bit.
-Shawn
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Brent Beardsley
> Sent: Thursday, June 28, 2007 4:17 PM
> To: DQSD users mailing list
> Subject: Re: [DQSD-Users] yy login issues
>
> Hi Shawn,
>
> Any reason why you disabled the help? I typed in yy?
> and it blew up looking for yyid which I don't have set
> yet because I haven't read the help :)
>
> Brent
>
> --- "Shawn K. Hall" <[EMAIL PROTECTED]> wrote:
>
> > Hi Tom,
> >
> > > However the default one does not work.I have this
> > problem on
> > > 2 machines and home & work and my wife has it on
> > hers. Any
> > > ideas what the issue might be? This worked fin for
> > ages.
> >
> > They've changed the form structure a bit, the
> > attached version (I'll
> > commit it shortly) corrects the issues.
> >
> > Regards,
> >
> > Shawn K. Hall
> > http://12PointDesign.com/
> > > <search function="yy">
> > <name>My Yahoo!</name>
> > <category>News</category>
> > <contributor>Shawn K. Hall</contributor>
> > <email>[EMAIL PROTECTED]</email>
> > <description>Login to My Yahoo
> > <div class="helpboxDescLabels">Example:</div>
> > <table class="helpboxDescTable">
> > <tr><td>yy</td></tr>
> > <tr><td>yy myid</td></tr>
> > <tr><td>yy myotherid</td></tr>
> > </table>
> > <div class="helpboxDescLabels">Variables:</div>
> > <table class="helpboxDescTable">
> > <tr><td>yyid('user','pwd');</td><td>An array
> > storing a user and password profile for Yahoo!
> > You SHOULD provide the <em>yyid()</em> variable,
> > however, you may also provide as many other
> > profiles as necessary to account for your Yahoo
> > ID's. If you were to create a 'second' profile
> > you would need only to pass the variable name on
> > the command line: <br />
> > <strong>yy otherVariable</strong><br />
> > These variables are, however, case sensitive. If
> > the variable passed does not exist (misspelled,
> > incorrect case...), this search will 'default' to
> > using the <em>yyid</em> variable.</td></tr>
> > </table>
> > </description>
> > <link>http://my.yahoo.com/</link>
> > <comment>
> > This is pretty spiffy, eh?
> > </comment>
> > <form name="yyf" method="post"
> > action="https://login.yahoo.com/config/login?">
> > <input type="hidden" name=".tries" value="1" />
> > <input type="hidden" name=".src" value="" />
> > <input type="hidden" name=".md5" value="" />
> > <input type="hidden" name=".hash" value="" />
> > <input type="hidden" name=".js" value="" />
> > <input type="hidden" name=".last" value="" />
> > <input type="hidden" name="promo" value="" />
> > <input type="hidden" name=".intl" value="us" />
> > <input type="hidden" name=".bypass" value="" />
> > <input type="hidden" name=".partner" value="" />
> > <input type="hidden" name=".u"
> > value="7rufp9p38618g" />
> > <input type="hidden" name=".v" value="0" />
> > <input type="hidden" name=".challenge"
> > value="dKwv00O1mQBbNX3j0QafTwDAcCD4" />
> > <input type="hidden" name=".yplus" value="" />
> > <input type="hidden" name=".emailCode" value="" />
> > <input type="hidden" name="pkg" value="" />
> > <input type="hidden" name="stepid" value="i" />
> > <input type="hidden" name=".ev" value="" />
> > <input type="hidden" name="hasMsgr" value="0" />
> > <input type="hidden" name=".chkP" value="Y" />
> > <input type="hidden" name=".done"
> > value="http://my.yahoo.com" />
> > <input type="hidden" name=".pd"
> > value="_ver%3d0%26c=" />
> > <input type="hidden" name="login" value="" />
> > <input type="hidden" name="passwd" value="" />
> > <input type="hidden" name=".persistent" value="y"
> > />
> > <input type="hidden" name=".save" value="Sign In"
> > />
> > </form>
> > <script><![CDATA[
> > function yy(q){
> > //if (nullArgs("yy",q)){return false;}
> > var yyids = yyid;
> > try{
> > eval("var yyids = " + q + ";");
> > }catch(e){
> > var yyids = yyid;
> > }
> > try{
> > document.yyf.login.value = yyids[0];
> > document.yyf.passwd.value = yyids[1];
> > if (yyids.length>1){
> > document.yyf['.done'].value = yyids[2];
> > }
> > }catch(e){}
> > submitForm(yyf);
> > }
> > ]]></script>
> > <copyright>
> > Copyright (c) 2003-2007 Shawn K. Hall
> > Distributed under the terms of the GNU Public
> > License, Version 2
> > (http://www.gnu.org/copyleft/gpl.txt)
> > </copyright>
> > </search>>
> --------------------------------------------------------------
> -----------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2
> > express and take
> > control of your XML. No limits. Just data. Click to
> > get it now.
> > http://sourceforge.net/powerbar/db2/>
> _______________________________________________
> > To unsubscribe visit:
> >
> https://lists.sourceforge.net/lists/listinfo/dqsd-users
> > DQSD-Users@lists.sourceforge.net
> >
> http://sourceforge.net/mailarchive/forum.php?forum_id=8601
> >
>
>
>
>
> ______________________________________________________________
> ______________________
> Park yourself in front of a world of choices in alternative
> vehicles. Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> To unsubscribe visit:
> https://lists.sourceforge.net/lists/listinfo/dqsd-users
> DQSD-Users@lists.sourceforge.net
> http://sourceforge.net/mailarchive/forum.php?forum_id=8601
>
<search function="yy">
<name>My Yahoo!</name>
<category>News</category>
<contributor>Shawn K. Hall</contributor>
<email>[EMAIL PROTECTED]</email>
<description>Login to My Yahoo
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>yy</td></tr>
<tr><td>yy myid</td></tr>
<tr><td>yy myotherid</td></tr>
</table>
<div class="helpboxDescLabels">Profiles:</div>
<table class="helpboxDescTable">
<tr><td>yyid = Array('user', 'pwd', 'http://groups.yahoo.com/');</td></tr>
<tr><td>yy2 = Array('user2', 'pwd2', 'http://my.yahoo.com/');</td></tr>
<tr><td>yy3 = Array('user3', 'pwd3', 'http://games.yahoo.com/');</td></tr>
<tr><td>yy4 = Array('user3', 'pwd3');</td></tr>
</table>
<div class="helpboxDescLabels">Variables:</div>
<table class="helpboxDescTable">
<tr><td>yyid</td><td>An array storing a user and password
profile for Yahoo! The third parameter to the array is the address to visit once you're logged
in.<br />
You SHOULD provide the <em>yyid()</em> variable, however, you may also provide as many other
profiles as necessary to account for your Yahoo ID's. If you were to create a 'second' profile
you would need only to pass the variable name on the command line: <br />
<strong>yy yy2</strong><br />
or<br />
<strong>yy yy3</strong><br />
These variables are, however, case sensitive. If the variable passed does not exist (misspelled,
incorrect case...), this search will 'default' to using the <em>yyid</em> variable.</td></tr>
</table>
</description>
<link>http://my.yahoo.com/</link>
<comment>
This is pretty spiffy, eh?
</comment>
<form name="yyf" method="post"
action="https://login.yahoo.com/config/login?">
<input type="hidden" name=".tries" value="1" />
<input type="hidden" name=".src" value="" />
<input type="hidden" name=".md5" value="" />
<input type="hidden" name=".hash" value="" />
<input type="hidden" name=".js" value="" />
<input type="hidden" name=".last" value="" />
<input type="hidden" name="promo" value="" />
<input type="hidden" name=".intl" value="us" />
<input type="hidden" name=".bypass" value="" />
<input type="hidden" name=".partner" value="" />
<input type="hidden" name=".u" value="7rufp9p38618g" />
<input type="hidden" name=".v" value="0" />
<input type="hidden" name=".challenge" value="dKwv00O1mQBbNX3j0QafTwDAcCD4" />
<input type="hidden" name=".yplus" value="" />
<input type="hidden" name=".emailCode" value="" />
<input type="hidden" name="pkg" value="" />
<input type="hidden" name="stepid" value="i" />
<input type="hidden" name=".ev" value="" />
<input type="hidden" name="hasMsgr" value="0" />
<input type="hidden" name=".chkP" value="Y" />
<input type="hidden" name=".done" value="http://my.yahoo.com" />
<input type="hidden" name=".pd" value="_ver%3d0%26c=" />
<input type="hidden" name="login" value="" />
<input type="hidden" name="passwd" value="" />
<input type="hidden" name=".persistent" value="y" />
<input type="hidden" name=".save" value="Sign In" />
</form>
<script><![CDATA[
function yy(q){
if (q == "?"){qsfind("yy /function"); return false;}
var yyids = Array("",""); if (typeof yyid != "undefined") yyids = yyid;
try{
if (q != "") eval("var yyids = " + q + ";");
}catch(e){
var yyids = Array("",""); if (typeof yyid != "undefined") yyids = yyid;
}
try{
document.yyf.login.value = yyids[0];
document.yyf.passwd.value = yyids[1];
if (yyids.length>1){
document.yyf['.done'].value = yyids[2];
}
}catch(e){}
submitForm(yyf);
}
]]></script>
<copyright>
Copyright (c) 2003-2007 Shawn K. Hall
Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
DQSD-Users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?forum_id=8601