We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1535
    • 84 Posts
    Thanks for pointing me in the right direction, however, this fix only made the label visible and still would’nt validate.

    I ended up enclosing the insides of the form definition with a <div> and now it validates.

    Thanks for the help.

    Cheers,

    Andreas
      • 16879
      • 87 Posts
      Try using fieldset and legend instead of the div - use display:none in your CSS for the legend and the labels if you don’t want them to show. I had the same problem after upgrading the site at http://www.sem.uk.com .
        • 33992 ☆ A M B ☆
        • 455 Posts
        HI,
        I used AjaxSearch 1.0 with 0.9.5 and i had an error while searching and i decided to upgrade it for removing the error. i have new problems with site search after installing AjaxSearch 1.6.
        i missed live search, it means i see the search results page right after pressing the search button .it would be a problem but it is not my main problem; i see NOTHING in search-result page even the "no result..." message after searching the words which must show as results. how can i solve it? huh
        i test some diffrents codes to solve it,this code is one of them:
        [!AjaxSearch? &ajaxSearch=`1` &AS_landing=`8`&extract=`1` &showMoreResults=`1`&AS_showResults=`1`!]

        Thanks
        AHHP
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 25663 MODX Staff
          • 12,272 Posts
          Is the landing page cached? Also try uncaching the calling page (in addition to calling uncached).
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 33992 ☆ A M B ☆
            • 455 Posts
            landing page is uncached and effects of [[AjaxSearch?]] and [!AjaxSearch?!] are same.

            problem hasn’t solved yet!
              God loves me. 【ツ】


              MODX.ir (Persian Support)

              Boplo.ir/modx/ (Persian)
              • 33992 ☆ A M B ☆
              • 455 Posts
              Any idea ?? undecided
                God loves me. 【ツ】


                MODX.ir (Persian Support)

                Boplo.ir/modx/ (Persian)
                • 29076
                • 615 Posts
                I have a problem: It is that the ajaxSearch_output-box won’t dissapere in MSIE 7 before search. (See pictures below.)

                My css:
                #ajaxSearch_output {
                            border: 1px solid #444;
                            padding: 10px;
                            background: #fff;
                            display: block;
                            height: auto;
                            width:345px;
                            vertical-align: top;
                        }


                The output-code:
                <form id="ajaxSearch_form" action="index.php?id=182" method="post">
                			<label for="ajaxSearch_input">
                				<input id="ajaxSearch_input" type="text" name="search" value="Search here..." onfocus="this.value=(this.value=='Search here...')? '' : this.value ;" />
                			</label>
                			<label for="ajaxSearch_submit">
                				<input id="ajaxSearch_submit" type="submit" name="sub" value="Search" />
                			</label>
                		</form>
                		
                		<div id="ajaxSearch_output" style="opacity:0;"> </div>


                I use MODxcms 0.96 and AjaxSearch 1.6.

                Can someone please help me with this?
                  I think, thererfor I am! But what I am, and why...?
                  • 20682
                  • 31 Posts
                  UPDATE: I should read my own previous posts!! I solved the problem with another site and completely forgot about it. http://modxcms.com/forums/index.php/topic,5357.msg55280.html#msg55280

                  Hopefully using [[ ]] rather than [! !] will help someone else out.

                  strange and fantastical!

                  I am getting multiple inclusions of the script within my head section. This is preventing the script from working properly.

                  <script type="text/javascript" src="assets/snippets/AjaxSearch/AjaxSearch.js"></script>
                  	<script type="text/javascript">
                  		<!--
                  		stripHtml = 1;
                  		stripSnip = 1;
                  		stripSnippets = 1;
                  		useAllWords = 0;
                  		searchStyle = 'partial';
                  		minChars = 4;
                  		maxResults = 6;
                  		showMoreResults = 1;
                  		moreResultsPage = 8;
                  		as_language = 'english'
                  		extract = 0;
                  		liveSearch = 0;
                  		docgrp = '';
                  		highlightResult = 1;
                  		-->
                  	</script>
                  	<script type="text/javascript" src="assets/snippets/AjaxSearch/AjaxSearch.js"></script>
                  	<script type="text/javascript">
                  		<!--
                  		stripHtml = 1;
                  		stripSnip = 1;
                  		stripSnippets = 1;
                  		useAllWords = 0;
                  		searchStyle = 'partial';
                  		minChars = 4;
                  		maxResults = 6;
                  		showMoreResults = 1;
                  		moreResultsPage = 8;
                  		as_language = 'english'
                  		extract = 0;
                  		liveSearch = 0;
                  		docgrp = '';
                  		highlightResult = 1;
                  		-->
                  	</script>


                  Only one call to the search box in my template and I have placed nothing in the head which would create this problem.

                  Modx V .9.6
                  Ajax Search 1.6

                  Any ideas would be appreciated.

                  Sheri
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: muskokee at Jun 19, 2007, 09:23 PM

                    I am getting multiple inclusions of the script within my head section. This is preventing the script from working properly.

                    From the commit message for revision 2781, just after 0.9.6 release:
                    * Fix to original solution for FS#865 which causes registered scripts to be duplicated in cacheable pages by non-cacheable snippets.
                    This fix is available in trunk, and will be released as part of an 0.9.6.1 patch release in the next week or two.
                      • 16534
                      • 47 Posts
                      Quote from: muskokee at Jun 19, 2007, 09:23 PM

                      UPDATE: I should read my own previous posts!! I solved the problem with another site and completely forgot about it. http://modxcms.com/forums/index.php/topic,5357.msg55280.html#msg55280

                      Hopefully using [[ ]] rather than [! !] will help someone else out.

                      Awesome, worked great thanks. Shame it only took weeks to get some sort of solution.

                      This discussion is closed to further replies. Keep calm and carry on.