Not sure if this is what you mean, but try this.
eval("document." + secNum + ".style.display = ''";
don't forget to alternate your single and double quotes.
----- Original Message -----
From: "paul ." <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 10:12 AM
Subject: populating the query result to IFRAME
> HI Guys am trying to populate the query result to the IRAME , so
> that i can give the user to view result in the same page
> please check my code and suggest me. the seeror i get is "style is not an
object"
> thanks
> -paul . Below is my code
> -------------------------------
> <p align="center"><font face="Arial, Helvetica, sans-serif"
size="4"><b><i> Training</i></b></font></p>
> <cfif qry_get_events.recordcount gt 0>
> <script language ="javascript">
> function doSection(secNum)
> {
> /*
> if(secNum.style.display == "none") {secNum.style.display = ""; }
> else {secNum.style.display = "none"; }
> */
> secNum.style.display = "";
> }
>
> function noSection (secNum)
> {
> if(secNum.style.display == "") {secNum.style.display = "none";}
> }
>
> </script>
>
>
>
> <table border="1" cellspacing="0" cellpadding="6" bordercolor="#000000"
align="center" width="750">
> <tr valign="top">
> <td bgcolor="#666666"><font color="#FFFFFF" size="2"><b><font
> face="Arial, Helvetica, sans-serif">Course
> Name </font></b></font></td>
> <td bgcolor="#666666" align="center"><font color="#FFFFFF"
size="2"><b><font
> face="Arial, Helvetica, sans-serif">Scheduled
> Date </font></b></font></td>
> <td bgcolor="#666666" align="center"><font color="#FFFFFF"
size="2"><b><font
> face="Arial, Helvetica, sans-serif">Occurance
> Date </font></b></font></td>
> <td bgcolor="#666666" align="center"><font color="#FFFFFF"
size="2"><b><font
> face="Arial, Helvetica,
sans-serif">Non-Participants</font></b></font></td>
> <td bgcolor="#666666" align="center"> </td>
> </tr>
> <cfoutput query=qry_get_events>
> <cfif year(completion_date) eq "1001">
> <cfset current_completion_date="Not completed yet">
> <cfelse>
> <cfset current_completion_date="#dateformat(completion_date, "mmmm dd
yyyy")#">
> </cfif>
> <cfif year(training_date) eq "1001">
> <cfset current_training_date="Not scheduled yet">
> <cfelse>
> <cfset current_training_date="#dateformat(training_date, "mmmm dd
yyyy")#">
> </cfif>
> <tr valign="top" bgcolor="##FFFFFF">
> <td><font size="1" face="Arial, Helvetica, sans-serif">
> <cfif qry_get_training_courses.recordcount gt 1>
> <cfloop index=loopcount from=1
to=#qry_get_training_courses.recordcount#>
> <cfif training_crse_idx eq
qry_get_training_courses.rec_id[loopcount]>
> #qry_get_training_courses.session_name[loopcount]#
> </cfif>
> </cfloop>
> </cfif>
> </font></td>
> <td align="center"><font face="Arial, Helvetica, sans-serif"
> size="1">#current_training_date#</font></td>
> <td align="center"><font face="Arial, Helvetica, sans-serif"
> size="1">#current_completion_date#</font></td>
> <td align="center"><font face="Arial, Helvetica, sans-serif"
> size="1"><a
href="index.cfm?fuseaction=event_nonparticipants_v&event_idx=#rec_id#&am
p;traini
> ng_course_idx=#training_crse_idx#">Non-participants</a></font></td>
> <td align="center"><font face="Arial, Helvetica, sans-serif"
> size="1"><a class="anchorclass"
href="javascript:doSection(thesection)">participants</a></font></td>
> </tr>
> <a name = "test">
> <input name=quarter_idx type="hidden" value="#attributes.quarter_idx#">
> <div id ="thesection" onClick = "noSection(thesection)"
STYLE="display:none">
>
> <iframe
SRC="http://10.158.20.123/careadv/test/index.cfm?fuseaction=event_participan
ts_v&event_idx=3&training_course_idx=645
> " WIDTH=800 HEIGHT=200>
> </iframe><br/><br/>
> <center>
> <a href="javascript:noSection(thesection)"> Close</a>
> </center>
> </div>
>
> </a>
>
> </cfoutput>
> </table>
>
> </cfif>
> <cfoutput><input name=quarter_idx type="hidden"
value="#attributes.quarter_idx#"></cfoutput>
>
>
> ----------------------------------------------
>
>
>
>
>
> Get 250 color business cards for FREE!
> http://businesscards.lycos.com/vp/fastpath/
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists