We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27421
    • 67 Posts
    I got the jump menu to work, but it broke my pagination. Has anyone had anything similar happen? Any idea why this would happen?
      • 26931
      • 2,314 Posts
      Something like this should work :
      Code:

      <script type="text/javascript" language="JavaScript">
      function nav()
      {
      var w = document.qsearch.xfer.selectedIndex;
      var url_add = document.qsearch.xfer.options[w].value;
      window.location.href = url_add;
      }
      </script>
      <form id="qsearch" name="qsearch">
      <fieldset id="qsearch">
      <select name="xfer" size="1" onChange="nav()">
      <option selected value="Select speaker...">Select speaker...</option>
      <option value="[~99~]?tags=A.Brown">A.Brown</option>
      <option value="[~99~]?tags=B.Smith">B.Smith</option>
      <option value="[~99~]?tags=C.Jones">C.Jones</option>
      </select>
      </fieldset>
      </form>

      Where 99 is the id of the document with the Ditto call.
      i need to create several option lists ... does anyone know if it’s possible to use the above code for this? i tried several options but it doesn’t work. e.g.
      	<script type="text/javascript" language="JavaScript">
      	function nav()
      		{
      		var w = document.qsearch.xfer.selectedIndex;
      		var url_add = document.qsearch.xfer.options[w].value;
      		window.location.href = url_add;
      		}
      		{
      		var w = document.qsearch2.xfer2.selectedIndex;
      		var url_add = document.qsearch2.xfer2.options[w].value;
      		window.location.href = url_add;
      		}
      	</script>
      
      	<form  name="qsearch">
      	<select id="qsearch" name="xfer" size="1" onChange="nav()">
      	<option selected value="jump to">jump to</option>
      	[!Ditto? &parents=`2` &tpl=`DittoQuicklinks`!]
      	</select>
      	</form>
      
      	<form  name="qsearch2">
      	<select id="qsearch2" name="xfer2" size="1" onChange="nav()">
      	<option selected value="jump to">jump to</option>
      	[!Ditto? &parents=`10` &tpl=`DittoQuicklinks`!]
      	</select>
      	</form>

      thanks, j

      *edit: there are other js ways to do the same, but this would work best with another script i use
        • 4310
        • 2,310 Posts
        Untested and it’s a bit of a guess, but try :
        <script type="text/javascript" language="JavaScript">
        function nav()
           {
           var w = document.qsearch.xfer.selectedIndex;
           var url_add = document.qsearch.xfer.options[w].value;
           window.location.href = url_add;
           }
        function nav_b()
           {
           var w = document.qsearch_b.xfer_b.selectedIndex;
           var url_add = document.qsearch_b.xfer_b.options[w].value;
           window.location.href = url_add;
           }
        </script>
        <form name="qsearch">
        	<select id="qsearch" name="xfer" size="1" onChange="nav()">
        	<option selected value="jump to">jump to</option>
        	[!Ditto? &parents=`2` &tpl=`DittoQuicklinks`!]
        	</select>
        	</form>
        
        	<form  name="qsearch_b">
        	<select id="qsearch_b" name="xfer_b" size="1" onChange="nav_b()">
        	<option selected value="jump to">jump to</option>
        	[!Ditto? &parents=`10` &tpl=`DittoQuicklinks`!]
        	</select>
        	</form>
          • 26931
          • 2,314 Posts
          Untested and it’s a bit of a guess, but try :
          thanks David, it’s working smiley