If you are simply wanting the second tab to display (i.e. results 1, 2 &
3 already exist for that page) when you click on it you should use
styles and Javascript.. I've not been able to test this in ANY browser
so might require a little debugging on your part..
e.g.
<script language="javascript">
function showTab(whichTab)
{
var tabObj = eval("document.all.resultsPane"+whichTab);
// switch off all tabs
document.all.resultsPane1.style.display='none';
document.all.resultsPane2.style.display='none';
document.all.resultsPane3.style.display='none';
// Switch on our tab
tabObj.style.display = 'block';
}
</script>
<a href="javascript:showTab(1)">Show tab 1</a> |
<a href="javascript:showTab(2)">Show tab 2</a> |
<a href="javascript:showTab(3)">Show tab 3</a> |
<div id="resultsPane1" style="display:block">
<cfoutput query="results1">
......
</cfoutput>
</div>
<div id="resultsPane2" style="display:none">
<cfoutput query="results2">
......
</cfoutput>
</div>
<div id="resultsPane3" style="display:none">
<cfoutput query="results3">
......
</cfoutput>
</div>
-----Original Message-----
From: Lawrence Ng [mailto:[EMAIL PROTECTED]
Sent: 02 December 2004 18:27
To: CF-Talk
Subject: Passing search results
hi everyone,
I need your feedback on what's a good approach...
Here's what I'm thinking ..... I have 3 collections I want to search on
and the results (if any) would be displayed on 3 separate pages which
can be viewed by clicking on a "tab folder".
How can I pass a collection to the page (in my case one of my tabs)
after is searched all 3.
example:
search 1, search 2, and search 3
results shown in tabs
| Results A | Results 2 | Results 3 |
clicking on Results 2 would show the search results from "search 2"
thanks,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186206
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54