Announcement

Collapse
No announcement yet.

Simple Search Results Not Working

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

    Simple Search Results Not Working

    Hi

    I had this working fine and have just gone in too view my site and have found that the searching isn't working. When type a product in the search box and click the submit page the page list the search results but doesn't apply my style sheet and also has a javascript error on it.

    Can somebody give me some advice as to why this is happening.

    My site address is www.djwade.com

    Cheers

    Darren
    Darren Tickle
    http://www.funky-cards.co.uk

    Greetings cards, and gift wrap for every occasion.

    #2
    When you call an actinic script from outside the acatalog directory you need to add a hidden input into the code:

    Using the code from your page:

    <form name="simplesearch" action="http://www.djwade.com/cgi-bin/ss000001.pl" method="GET"><div class="RightNavContent"><input type="text" tabindex="3" name="SS" size="10" maxsize="125" value="Quick search" /><input type="image" tabindex="4" name="action" src="acatalog/search_button.gif" alt="Go!" title="Go!" /><input type="hidden" name="PR" value="-1" /><input type="hidden" name="TB" value="A" /><input type="hidden" name="SHOP" value="" /></div></form>

    Just before the "</div></form>" on the last line add:

    <input type="hidden" name="ACTINIC_REFERRER" value="http://www.djwade.com/acatalog/index.html" />

    Then close your browser and clear all your cookies from your site. This is because in the session file the LASTPAGE is recorded and so it will ask for all the scripts and stylesheets from the cgi-bin.

    Then upload and try again.

    One other suggestion would be to add some code to clear the Quick Search when it receives the focus. This is in line with standard accessibility principles for people who cannot use a mouse.
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    Comment


      #3
      Hi Dave

      Thanks for idea, which I tried but it didn't fix my problem. I know this use to work so I can't understand what had gone wrong.

      Any body got any other ideas.

      Cheers

      Darren
      Darren Tickle
      http://www.funky-cards.co.uk

      Greetings cards, and gift wrap for every occasion.

      Comment


        #4
        Hi

        Can somebody help me with this.

        Cheers

        Darren
        Darren Tickle
        http://www.funky-cards.co.uk

        Greetings cards, and gift wrap for every occasion.

        Comment


          #5
          Hi Darren

          Im actually getting 'Error: There is no valid input parameters for the script! Check the referencing HTML code!' when I try and do any search on your site - do you get that?

          One thing i would check to sort this problem would be to edit your Act_SimpleSearch.html and make sure just before the </table> tag, you have a </form> tag.

          I didnt see the problem you mentioned with the results page not applying your style sheet...

          Let me know if my suggestion above makes any diffreence.
          ________

          Comment


            #6
            Hi James

            When I do a search on ay photo's the results page gives me a javascript error but displays the pages but without the style sheet.

            I have attached a image of the page that I am seeing.

            The code that I have for Act_SimpleSearch.html is as follows:

            <!-- SIMPLESEARCH HTML BEGIN -->

            <form name="simplesearch" action="NETQUOTEVAR:SEARCHCGIURL" method="NETQUOTEVAR:CGIMETHOD">
            <div class="RightNavContent">
            <input type="text" tabindex="3" name="SS" size="10" maxsize="125" value="NETQUOTEVAR:QUICKSEARCHLABEL" />
            <!-- <input type=SUBMIT name=ACTION value="NETQUOTEVAR:QUICKSEARCHBUTTONTEXT"> -->
            <input type="image" tabindex="4" name="action" src="search_button.gif" alt="NETQUOTEVAR:QUICKSEARCHBUTTONTEXT" title="NETQUOTEVAR:QUICKSEARCHBUTTONTEXT" />
            <input type="hidden" name="PR" value="-1" />
            <input type="hidden" name="TB" value="A" />
            <input type="hidden" name="SHOP" value="NETQUOTEVAR:SHOPID" />
            <input type="hidden" name="ACTINIC_REFERRER" value="http://www.djwade.com/acatalog/index.html" />
            </div>
            </form>

            <!-- SIMPLESEARCH HTML END -->

            From my point of view I can't see what is wrong?

            Cheers

            Darren
            Attached Files
            Darren Tickle
            http://www.funky-cards.co.uk

            Greetings cards, and gift wrap for every occasion.

            Comment


              #7
              I can see the problem now...

              Can you have a look at your act_primary template, and let me know what the bhref is set to (approx 6 lines down), it should be something like <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>.

              Also, you could try copying your original search results template back into your site1 folder.

              If you go to Formats | Themes, within your Actinic v7 folder in Program Files, then the BuisnessCSS folder, and copy Act_ResultsTemplate.html, and paste it into your site1 folder - its a good idea to take a back up of the existing one before overwritting it.

              Hope that helps

              Comment


                #8
                Hi James

                This is what I have got in my Act_primary.html files:
                <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" FORCED=NETQUOTEVAR:BASEHREFFORCED/>

                Do you think the last bit is causing the problem, I have also got compact HTML/CGI ticked. I have done this as it was generating extra code that was making it hard to vaildate the code.

                The code from the businesscss folder is the same as what I have, except with having the table tags added.

                Cheers

                Darren
                Darren Tickle
                http://www.funky-cards.co.uk

                Greetings cards, and gift wrap for every occasion.

                Comment


                  #9
                  Originally posted by darrentickle
                  This is what I have got in my Act_primary.html files:
                  <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" FORCED=NETQUOTEVAR:BASEHREFFORCED/>
                  Hi Darren

                  Try changing that line to read <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/> in your act_primary template found in the site1 folder (remember to take a backup first!)

                  The upload your site, and try the serach again...

                  If that has no affect, I think the next step would be for you to send me across your snapshot, you can email it to the contact us link at the bottom of the page, and put it to my attention (James)

                  Hope that first suggestion sorts it out anyway...

                  Comment


                    #10
                    Hi James

                    That worked fine. I'm not sure why I added that extra bit at the end but it all seems to ok. So thanks a lot for your help with this.

                    Cheers

                    Darren
                    Darren Tickle
                    http://www.funky-cards.co.uk

                    Greetings cards, and gift wrap for every occasion.

                    Comment

                    Working...
                    X