Hey guys,
I'm still having problems connecting to DQSD CVS:
$ cvs -z3 -d:ext:<snipped>:/cvsroot/dqsd checkout dqsd
> usw-pr-cvs.sourceforge.net:Connection refused
cvs.exe [checkout aborted]: end of file from server (consult above messages if
any)
Anyway, I whipped up a quick Fandango.com search very similar to the old
moviefone I suggested oh so long ago.
I'd like to modify this (and the moviefone search, as well), but I haven't
played with parseArgs() enough to know how. Basically, I think it should be
possible for someone to search for both a movie AND a location, not one or the
other. It's my goal to have all these searches work:
fandango harry potter /location san diego
fandango /title harry potter
fandango harry potter
fandango /location san diego
fandango /location san diego /title harry potter
Here is the current contents of fandango.xml (I don't like sending
attachments):
<search function="fandango">
<name>Fandango</name>
<description>
Find movie information, listings, and buy tickets online.<br/>
<div class="helpboxDescLabels">Usage:</div>
<table class="helpboxDescTable">
<tr><td>Movie Info</td><td> - </td><td>fandango
<<i>movie</i>></td></tr>
<tr><td>Local Listings</td><td> - </td><td>fandango /location
{<<i>zipcode</i>> | <<i>city</i>> }</td></tr>
</table>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>fandango harry potter</td></tr>
<tr><td>fandango /location San Diego</td></tr>
</table>
</description>
<category>Entertainment</category>
<link>http://www.fandango.com/</link>
<contributor>Nikolai Devereaux</contributor>
<idea>Nikolai Devereaux</idea>
<form name="fandangof"
action="http://www.fandango.com/my_box_office.asp"
method="get">
<input type="hidden" name="txtMovieTitle" />
<input type="hidden" name="txtCityZip" />
</form>
<script><![CDATA[
function fandango(q)
{
var args = parseArgs(q, "location");
if( nullArgs("fandango",q) )
return false;
if( args.switches.length == 1 && args.switches[0].name == "location" )
{
document.fandangof.txtCityZip.value = args.q;
submitForm(fandangof);
}
else if( args.switches.length > 1 )
{
nullArgs("fandango","?");
}
else
{
document.fandangof.txtMovieTitle.value = args.q;
submitForm(fandangof);
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
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: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel