I'm trying to create a search for the Canadian Tire site. I went to the home page, clicked in the search box and used the DQSD Search Wizard. I've attached what it created. I see that a bunch of the form fields contain "<>" in the field name. Some were encoded (I assume) by the wizard, but not all. Of course when I try to reload the deskbar, it throws an error because these characters are not allowed in a field name. I tried changing them all to "<>", but that didn't help either. Any ideas on how I can get around this problem?
I've played with this for a couple of minutes.
I think you need to change *all* the <> pairs within the form to <>
Then make sure that you *haven't* changed the <> pairs with the script CDATA section at the bottom. (The CDATA automatically avoids them causing an XML problem)
Then it seems to load and launch a credible form (from looking at DQSDLaunch.html), although it doesn't actually search properly for me - I think you'll need to find a URL which isn't full of user- and session-IDs.
Cheers,
Will
It worked - thank you very much, Will! I've attached the working search for submission to CVS.
Sarah
-- Sarah Sweeney Web Developer & Programmer Portfolio :: http://sarah.designshift.com Blog, etc :: http://hardedge.ca
<search function="cantire"> <name>Canadian Tire</name> <category>Shopping</category> <contributor>Sarah Sweeney</contributor> <link>http://www.canadiantire.ca/intro/homepage.jsp</link> <description> Search the online Canadian Tire catalogue. <div class="helpboxDescLabels">Examples:</div> <table class="helpboxDescTable"> <tr><td>cantire tires</td></tr> </table> </description> <form name="cantiref" method="post" action="http://www.canadiantire.ca/intro/homepage.jsp"> <input type="hidden" name="bmForm" value="shop_by_search" /> <input type="hidden" name="bmFormID" value="1089899083208" /> <input type="hidden" name="bmUID" value="1089899083208" /> <input type="hidden" name="bmIsForm" value="true" /> <input type="hidden" name="bmPrevTemplate" value="intro/homepage.jsp" /> <input type="hidden" name="bmText" value="VALIDATE_SEARCH<>keyword" /> <COMMENT> The following field was active (i.e. had focus) when the search was generated. </COMMENT> <input type="hidden" name="VALIDATE_SEARCH<>keyword" value="" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Primary/PrimaryAssortment/AroundtheHouse" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Primary/PrimaryAssortment/Automotive" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Primary/PrimaryAssortment/GardenPatio" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Primary/PrimaryAssortment/SportsRecreation" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Primary/PrimaryAssortment/Workshop" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/As_Seen_On_TV/As_Seen_On_TV" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Gift/GiftIdeas" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Gift_Certificates/Gift_Certificates" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Winter/ShoppingforWinter" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>path" /> <input type="hidden" name="SEARCH_INPUT<>path" value="/Assortments/Online_Only/Online_Only" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>objectTypes" /> <input type="hidden" name="SEARCH_INPUT<>objectTypes" value="PRODUCT" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>maxRows_cd" /> <input type="hidden" name="SEARCH_INPUT<>maxRows_cd" value="10" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>searchTextOperator" /> <input type="hidden" name="SEARCH_INPUT<>searchTextOperator" value="and" /> <input type="hidden" name="bmHidden" value="SEARCH_INPUT<>currencyCode" /> <input type="hidden" name="SEARCH_INPUT<>currencyCode" value="CAD" /> <input type="hidden" name="bmImage" value="submit.x" /> <input type="hidden" name="bmImage" value="submit.y" /> <input type="hidden" name="bmImage" value="submit" /> <input type="hidden" name="bmHidden" value="PRODUCT<>prd_id" /> <input type="hidden" name="PRODUCT<>prd_id" value="845524442860831" /> <input type="hidden" name="bmHidden" value="FOLDER<>folder_id" /> <input type="hidden" name="FOLDER<>folder_id" value="2534374302376533" /> <input type="hidden" name="bmHidden" value="ASSORTMENT<>ast_id" /> <input type="hidden" name="ASSORTMENT<>ast_id" value="1408474395348027" /> <input type="hidden" name="bmFields" value="bmForm,bmFormID,bmUID,bmIsForm,bmPrevTemplate,bmText,bmHidden,bmImage" /> <input type="hidden" name="bmHash" value="8a95ed93f020e9b816993ed2794113598d0bc504" /> </form> <script><![CDATA[ function cantire(q) { if( nullArgs("cantire", q) ) return; document.cantiref["VALIDATE_SEARCH<>keyword"].value = q; submitForm(cantiref); } ]]></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> This search file was initially created on 07/15/04 at 10:52:29 by Dave's Quick Search Deskbar Search Wizard version 1.2, Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2 </created_by> </search>
