Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

challenge question

0 views
Skip to first unread message

GMina

unread,
Aug 26, 2002, 8:22:35 PM8/26/02
to
You can accomplish this with a little css and a little javascript.

Check this out. Enjoy.

<!--Style Sheet To Control Visibility-->
<style type="text/css">
.hidden {display:none}
.visible {display:block}
</style>

<!--Javascript to change the class of the data object-->
<script language="javascript">
function visibility(){
if(data.className == 'visible'){
data.className = 'hidden';
}else{
data.className = 'visible';
}
}
</script>

<!--Code to trigger javascript function, you can put this around an image-->
<a href="javascript:visibility()">Click here to show data</a>

<br><br>

<!--Sample Div tag, note the id of the tag matches the refernece in the function-->
<div id="data" class="hidden">
This is where you would output all of the data
</div>


GMina

unread,
Aug 26, 2002, 11:35:01 PM8/26/02
to
Try that...


<CFQUERY DATASOURCE="myDataSource" NAME="myQuery">
select name from emp
</CFQUERY>



<!--Style Sheet To Control Visibility-->
<style type="text/css">
.hidden {display:none}
.visible {display:block}
</style>

<!--Javascript to change the class of the data object-->
<script language="javascript">
function visibility(){
if(data.className == 'visible'){
data.className = 'hidden';
}else{
data.className = 'visible';
}
}
</script>

<!--Code to trigger javascript function, you can put this around an image-->
<a href="javascript:visibility()">Click here to show data</a>

<br>

<!--Sample Div tag, note the id of the tag matches the refernece in the function-->


<div id="data" class="hidden">

<CFOUTPUT QUERY="myQuery">
#Name#<br>
</CFOUTPUT>
</div>

----------------------------------
Software Engineer | DBA
Prosodie Interactive
www.prosodieinteractive.com
www.ivrinc.com

0 new messages