View Full Version : Putting saved searches in a drop-down
Balok
07-31-2008, 08:20 PM
I've been trying to devise a way to put the list of saved searches into a dropdown. I've figured out how to use <dax:search> to iterate over them and <dax:searchname/> to get their names, but what I can't figure out is how to get the links. When I try to pass </dax:searchlink> or <dax:searchlink><dax:searchlink/> to a bit of Javascript, I get errors. (I was figuring on building an options list for the dropdown.)
Can this be done? If so, how? Thanks.
andrei_c
08-07-2008, 04:36 AM
Probably not the most straightforward way, but it works. Place this code snippet where you want a dropdown:
[code]<!-- hidden div with generated search links -->
<div id="hidden_links" style="display: none">
<dax:search>
Balok
08-08-2008, 11:14 PM
Thanks! This worked great! Now I don't have to worry that a large number of searches will crowd the template.
BLOWERS
08-14-2008, 02:40 PM
Hi Andei,
[quote=Firetongue]Probably not the most straightforward way, but it works. Place this code snippet where you want a dropdown:
[code]<!-- hidden div with generated search links -->
<div id="hidden_links" style="display: none">
<dax:search>
Balok
08-26-2008, 08:37 PM
[quote=BLOWERS]My only problem is that I don
BLOWERS
08-27-2008, 07:25 AM
Fantastic, Balok - works a treat! Thanks very much for your help.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.