Ok, I posted this over at CF-TALK but no luck...


I keep getting an object expected error... but I thought I was passing the
object in!


<cfloop from="1" to="5" index="x">


<a href="" #x#</a>


<table id="tbl#x#">...</table>


</cfloop>


Here is my JS function...


toggleDrillDown(tblObj)
{
if(document.getElementById(tblObj).style.display == 'block')
    document.getElementById(tblObj).style.display = 'inline';  else
    document.getElementById(tblObj).style.display = 'block'; }


Can someone explain how I passin the "object". tbl#x# does not work. Nor
does document.getElementById(tbl#x#).


Thanks!


Mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to