Hmmmm I think it doesnt like the dash in setting the form object name..
document.infosecf.sp-q.value = q;
 
I would bet if you change the object names sp-a and sp-q to be spa and spq, the search will load... of course that doesnt help you execute the search on the site...   I am not sure how to escape a dash in the form element so it will be passed along...  (prepend it with a "\" maybe??  but I dont think that will work..)
 
Ideas anyone??
 
Monty
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John W. Bairen, Jr.
Sent: Wednesday, July 31, 2002 8:29 AM
To: DQSD, Developers SF
Subject: [DQSD-Devel] (no subject)

can someone please help and telll me what is wrong with this search... i will attach the file as well.
 
thanks,
JB
 
 

<search function="infosec">

<name>Information Security</name>

<description>The authority in security news, insight and analysis.<br/>

<div class="helpboxDescLabels">Example:</div>

<table class="helpboxDescTable">

<tr><td>infosec XP vulnerabilities</td></tr>

</table>

</description>

<contributor>John W. Bairen, Jr.</contributor>

<email>john_at_bairen_dot_net</email>

<category>Computers</category>

<link>http://www.infosecuritymag.com/</link>

<form name="infosecf" method="get" action="http://search.atomz.com/search/">

<input type="hidden" name="sp-q"/>

<input type="hidden" name="sp-a" value="sp1000c0bf"/>

</form>

<script><![CDATA[

function infosec(q)

{

if( nullArgs("infosec",q) )

return false;

else

{

document.infosecf.sp-q.value = q;

submitForm(infosecf);

}

}

]]></script>

</search>

Reply via email to