PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Display Results in DIV tag

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

  • Display Results in DIV tag

    How can I define the search form to display the search results in a specific DIV tag on the same page. The layout is completely in CSS (no frames) and all DIVīs have unique IDīs (one of them would be for the results...).

    Suggestions would be highly appreciated!

  • #2
    Refer to chapter 6.7 in the Users Guide:
    http://www.wrensoft.com/zoom/usersguide.html

    You can specify where you want the search form to show in the template using the advanced template tags.

    Alternatively, you can specify your own search form in HTML as described in the FAQ here:
    http://www.wrensoft.com/zoom/support...tml#searchform
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment


    • #3
      Well, I have understood the part of creating my own search form (it works and opens the result page exactly as I defined it). I can follow the part where to produce the results in a different frame by modifiying the target (target="main") but this will only work with frames?

      As mentioned before I have a .php page with my own search form and the idea was to display the results on the same page or another one but specifically within one DIV tag.

      Thats where Iīm getting lost.

      I tried to use the <!--ZOOMSEARCH--> but again this opens the predefined search.php.

      It would be great to see a syntax (code) sample using the template tags as desrcibed in 6.7 to understand the use within HTML/PHP/CSS.

      Sorry for being dumb...

      Comment


      • #4
        Thanks for the help; I finally figured it out after discovering the article on "Headers & Footers, SSI & wrapping scripts"
        http://www.wrensoft.com/zoom/support/faq_ssi.html
        Now I can display with the PHP "include" the results wherever I would like to (any DIV or frame)...

        Comment


        • #5
          I have the same question

          I have many div on a page

          <div class="box" id="a1">
          xxxxxxxxxxxxxxxxxxxxx
          </div>
          <div class="box" id="a2">
          xxxxxxxxxxxxxxxxxxxxx
          </div>
          <div class="box" id="a3">
          xxxxxxxxxxxxxxxxxxxxx
          </div>
          <div class="box" id="a4">
          xxxxxxxxxxxxxxxxxxxxx
          </div>

          I already study
          --------------------------------------------
          Refer to chapter 6.7 in the Users Guide
          the FAQ here:
          http://www.wrensoft.com/zoom/support...tml#searchform
          ---------------------------------------------------------

          but I still don't understand
          How to search form to display the search results in a specific DIV tag on the same page.

          I can'ts use php or asp language
          ------------------------------------------

          I want Recommended link CAN link <div></div> on page

          How to let the Recommended link is http://xxx.xxx.com/xxxx/XXXX.htm#a2
          http://xxx.xxx.com/xxxx/XXXX.htm#a3
          http://xxx.xxx.com/xxxx/XXXX.htm#a4
          Last edited by grissomlin; Jun-12-2009, 04:20 AM.

          Comment


          • #6
            To show recommended links within a certain div tag (e.g. <div class="box" id="blah">...</div>), you would have the following in your "search_template.html" file:

            <div class="box" id="blah">
            <!--ZOOM_SHOW_RECOMMENDED-->
            </div>

            If you want to specify the other elements to be displayed, use the other tags listed in chapter 6.7 of the Users Guide.

            Remove <!--ZOOMSEARCH--> from the template to eliminate the displaying of the default layout of search results (with everything visible in one block). But remember that removing this means nothing is displayed until you specify each individual element as listed.
            --Ray
            Wrensoft Web Software
            Sydney, Australia
            Zoom Search Engine

            Comment


            • #7
              I already use ZoomInitSearch()
              <script language="JavaScript">ZoomInitSearch();</script>
              <script language="JavaScript">ZoomShowHeading();</script>
              <script language="JavaScript">ZoomShowCatSummary();</script>
              <script language="JavaScript">ZoomShowSuggestion();</script>
              <script language="JavaScript">ZoomShowPagesCount();</script>
              <script language="JavaScript">ZoomShowResults();</script>
              <script language="JavaScript">ZoomShowSort();</script>
              <script language="JavaScript">ZoomShowSearchTime();</script>
              <script language="JavaScript">ZoomShowRecommended();</script>
              <script language="JavaScript">ZoomShowSummary();</script>
              <script language="JavaScript">ZoomShowPageNumbers();</script>

              but I still can't resolve my quesion

              I want Display Recommended link in DIV tag

              ex
              http://www.wrensoft.com/zoom/support...tml#searchform

              Comment


              • #8
                Oh, you're using Javascript. You didn't mention this before. That's different to what I described above (which is for PHP, ASP, CGI and ASP.NET).

                For JS, you simply need to have this line:

                <script language="JavaScript">ZoomShowRecommended();</script>

                Within the DIV tag in the "search.html" file.

                But make sure you have the ZoomInitSearch() line before it.
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment


                • #9
                  <script language="JavaScript">ZoomShowRecommended();</script>
                  I already use the command ,

                  but the result link still don't show the http://xxx.xxx.com/ddd/ddd.html#XXX

                  I use the follow statement in search.htm
                  <script language="JavaScript">ZoomInitSearch();</script>
                  <script language="JavaScript">ZoomShowHeading();</script>
                  <script language="JavaScript">ZoomShowCatSummary();</script>
                  <script language="JavaScript">ZoomShowSuggestion();</script>
                  <script language="JavaScript">ZoomShowPagesCount();</script>
                  <script language="JavaScript">ZoomShowResults();</script>
                  <script language="JavaScript">ZoomShowSort();</script>
                  <script language="JavaScript">ZoomShowSearchTime();</script>
                  <script language="JavaScript">ZoomShowRecommended();</script>
                  <script language="JavaScript">ZoomShowSummary();</script>
                  <script language="JavaScript">ZoomShowPageNumbers();</script>

                  Comment


                  • #10
                    <div class="box" id="blah">
                    <!--ZOOM_SHOW_RECOMMENDED-->
                    </div>

                    the <!--ZOOM_SHOW_RECOMMENDED--> is use like folllow

                    <div class="box" id="a1">
                    <!--ZOOM_SHOW_RECOMMENDED-->
                    xxxxxxxxxxxxxxxxxxxxx
                    </div>
                    <div class="box" id="a2">
                    <!--ZOOM_SHOW_RECOMMENDED-->
                    xxxxxxxxxxxxxxxxxxxxx
                    </div>
                    <div class="box" id="a3">
                    <!--ZOOM_SHOW_RECOMMENDED-->
                    xxxxxxxxxxxxxxxxxxxxx
                    </div>
                    <div class="box" id="a4">
                    <!--ZOOM_SHOW_RECOMMENDED-->
                    xxxxxxxxxxxxxxxxxxxxx
                    </div>

                    And
                    I write it on search.html ???
                    OR I must write it on every page have <div class="XX" id="XX">

                    Comment


                    • #11
                      I have a page name product.html
                      I have a six Layer follow
                      <div class="box" id="a1">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>
                      <div class="box" id="a2">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>
                      <div class="box" id="a3">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>
                      <div class="box" id="a4">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>

                      <div class="box" id="a5">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>
                      <div class="box" id="a6">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>
                      <div class="box" id="a7">
                      <ZOOM_SHOW_RECOMMENDED>
                      </div>

                      I already write the <ZOOM_SHOW_RECOMMENDED>or<!--ZOOM_SHOW_RECOMMENDED--> on product.html

                      but the result link don't show the http://www.xxx.com/xxx.html#a1,#a2..etc
                      still show http://www.xxx.com/xxx.html

                      help me

                      Comment


                      • #12
                        I also write follow on search.htm

                        <div class="box" id="a1">
                        <!--ZOOM_SHOW_RECOMMENDED-->
                        </div>
                        <div class="box" id="a2">
                        <!--ZOOM_SHOW_RECOMMENDED-->
                        </div>
                        <div class="box" id="a3">
                        <!--ZOOM_SHOW_RECOMMENDED-->

                        but th result link still don't show the http://www.xxx.com/ddd.html#XXX

                        Comment


                        • #13
                          No, you are ignoring my last post.

                          The tag <!--ZOOM_SHOW_RECOMMENDED--> will not work for the Javascript platform. It will only work for PHP, ASP and CGI. This is explained in the Users Guide.

                          Instead, the tag you should use in place of it is:

                          <script language="JavaScript">ZoomShowRecommended();</script>

                          And again, you have to make sure to use the Init line before it. Again, this is also documented.

                          If you still have trouble, give us the URL to the page in question and we can tell you what's wrong.
                          --Ray
                          Wrensoft Web Software
                          Sydney, Australia
                          Zoom Search Engine

                          Comment


                          • #14
                            I send mail my web file

                            please help me

                            thanks

                            Comment


                            • #15
                              We received your email and have replied via email. But you are continuing to send us the same e-mail over 6 times. This counts as spamming and may lead to blacklisting. If you did not get our response, you should check your own spam filters as they may be filtering incorrectly.

                              Here is the content of my e-mailed response:
                              There are several things to note in the files you sent us:

                              1) You are still using <!--ZOOM_SHOW_RECOMMENDED--> tags in the “search-1.html” file. As already explained in the forum threads, this tag does not work in JavaScript, which is the script platform you are using. It is only available in PHP, ASP, and CGI. The correct line to use is:
                              <script language="JavaScript">ZoomShowRecommended();</script>.
                              You should have this in the DIV tags where you want the recommended links to appear.

                              2) You do not have any recommended links in your index. You set these up in the Indexer, under “Configure”->”Recommended”. After adding these links, you need to re-index for them to take effect. Please see the Users Guide for more information.
                              Please read my previous posts regarding the correct tag to use.
                              --Ray
                              Wrensoft Web Software
                              Sydney, Australia
                              Zoom Search Engine

                              Comment

                              Working...
                              X