Announcement

Collapse
No announcement yet.

keyword search field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    keyword search field

    Hi

    i have modified my template to include the search on all pages. I have made it so that it searches keyword, price and category. see -

    http://www.estorebroker-processingce...port/acatalog/

    now because in the keyword field i have put type your word here, if someone searches for by price or category instead, it doesnt bring anything up. Is there a way in the search script to ignore this phrase?

    Thanks in advance

    MArtin

    #2
    View > Search Settings... > Search Options [tab] > Not Indexed:

    Is that what you're after?
    David
    Mandrake Press Ltd

    <a href="http://www.mandrake-press.co.uk" target="_blank">www.mandrake-press.co.uk</a>

    Comment


      #3
      Try putting this at the end of the <form> tag:

      Code:
      onsubmit="document.forms[0].SS.value=((document.forms[0].SS.value=='Type what you are looking for') ? '' : document.forms[0].SS.value);"
      If it doesn't work, replace 'onsubmit' with 'onclick' and put the code inside the <input type="ACTION"....> tag.
      www.gbradley.co.uk
      Web Development, Actinic Patches, Scripts & more

      Comment


        #4
        hmmmm

        neither appeared to work?

        does anyone have any other suggestions?



        thanks for the help btw

        Comment


          #5
          I copied your page source into my site1 folder and added the following to your <form> tag, and it worked for me. If the text in the input box hasn't changed, then it will be removed before the form is submitted.

          Code:
           onsubmit="document.forms[0].SS.value=((document.forms[0].SS.value=='Type what are you looking for') ? '' : document.forms[0].SS.value);"
          www.gbradley.co.uk
          Web Development, Actinic Patches, Scripts & more

          Comment


            #6
            ahhhh, it works now, dont know what happened last time

            thanks for you help!

            Comment

            Working...
            X