 | |  |
 |

nk
Novice
Nov 1, 2003, 1:30 PM
Post #1 of 6
(3923 views)
Shortcut
|
|
Search finds everything
|
Can't Post
|
|
Hello, I just took over administration of a site using Auto Manager. I am trying to implement the dynamic search template. It is loading the correct search results template, but it always finds all the listings in the results, no matter what lfield number I use and no matter what the search parameter is. Here is my search form: <form name="form_name" method="get" action="cgi-bin/am/exec/search.cgi"> <img src="findwhatdrivestext.gif" width="230" height="15"> <select size="1" name="template_choice" onchange="assignTemplate(); document.form_name.submit();"> <option value="_search_results.html," selected="selected">- All -</option> <option value="corvette_results.htm,corvette">Corvette</option> <option value="_name_of_custom_template2.html,value 2">Option 2</option> <option value="_name_of_custom_template3.html,value 3">Option 3</option> <option value="_name_of_custom_template4.html,value 4">Option 4</option> </select> <script language="Javascript1.2"> // this function dynamically assigns a unique template (defined in the value // attribute of the Type dropdown, above). function assignTemplate() { // first, we pick apart the option value to extract // (a) the template name, // (b) the search value var str = form_name.template_choice.options[form_name.template_choice.selectedIndex].value; var parts = str.split(","); var p = parts[1].replace(/^\s+/, ""); // remove any beginning whitespace // assign template document.form_name.template.value = parts[0]; // assign search value document.form_name.lfield38.value = p; /// CHANGE THIS LINE to search the particular listing field number! (change 'X') return true; } </script> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="template" value=""> <input type="hidden" name="lfield38" value=""> </form> Any help? Thanks.
|
|
|  |
 |

Cliff
Staff

Nov 6, 2003, 2:10 PM
Post #2 of 6
(3871 views)
Shortcut
|
|
Re: [nk] Search finds everything
[In reply to]
|
Can't Post
|
|
Hi nk, Thanks for posting. I can't exactly determine the cause of the search results problem based on the example code that you have here. Would it be possible for you to post a link to the page? I have a feeling that it may have something to do with the <form action>, but I'd like to take a look at how the search is behaving if possible. Thanks! Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 | |  |
 |

Donna
Staff
/ Moderator

Nov 6, 2003, 4:07 PM
Post #4 of 6
(3861 views)
Shortcut
|
|
Re: [nk] Search finds everything
[In reply to]
|
Can't Post
|
|
Hi there, Thanks for your post. :) I tried out a few searches on your page, and it seems that the only search query that returns everything is the "Quick Search Category" section. Everything else seems to work. However, looking at the code for the quick search category, it looks like all of your values are set to the url to the search.cgi -- is that what it's supposed to be? Because you've got all sorts of JavaScript in there, it makes it difficult to troubleshoot -- what happens if you try stripping some of the JavaScript out temporarily? Doing that a little bit at a time might allow you to track down where exactly the problem is. I hope this helps! Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

nk
Novice
Nov 6, 2003, 10:58 PM
Post #5 of 6
(3854 views)
Shortcut
|
|
Re: [Donna] Search finds everything
[In reply to]
|
Can't Post
|
|
Hello Donna, The only thing I am concerned with right now is getting the quick jump menu to work on the page I posted above. The search all the other pages is old code that will be changed when I get this working. Thanks!
|
|
|  |
 |

Cliff
Staff

Nov 7, 2003, 3:38 PM
Post #6 of 6
(3836 views)
Shortcut
|
|
Re: [nk] Search finds everything
[In reply to]
|
Can't Post
|
|
Hi nk, Just a quick note to let you know that Luke has your email and he is going to respond to you shortly. If you have any questions in the meanwhile, please don't hesitate to post again. Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
|