Re: populating the query result to IFRAME

2001-04-23 Thread Bryan LaPlante

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
> ---
>  Training
> 
> 
> 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";}
>   }
>
> 
>
>
>
> 
>   
>  face="Arial, Helvetica, sans-serif">Course
>   Name 
>  face="Arial, Helvetica, sans-serif">Scheduled
>   Date 
>  face="Arial, Helvetica, sans-serif">Occurance
>   Date 
>  face="Arial, Helvetica,
sans-serif">Non-Participants
>  
>   
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
>   
>   #qry_get_training_courses.session_name[loopcount]#
>   
> 
> 
> 
>size="1">#current_training_date#
>size="1">#current_completion_date#
>size="1">Non-participants
>size="1">participants
> 
>   
> 
> 
>
> 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>
> 
> 
>  Close
> 
> 
>
> 
>
>   
> 
>
> 
> 
>
>
> --
>
>
>
>
>
> 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



Re: populating the query result to IFRAME

2001-04-23 Thread paul .

 well by doing that am getting this error"Object expectd"
please help me out cos am not javascript savvy
-paul
--

On Mon, 23 Apr 2001 10:30:47  
 Bryan LaPlante wrote:
>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
>> ---
>> size="4"> Training
>> 
>> 
>> 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";}
>>   }
>>
>> 
>>
>>
>>
>> align="center" width="750">
>>   
>> > face="Arial, Helvetica, sans-serif">Course
>>   Name 
>> size="2">> face="Arial, Helvetica, sans-serif">Scheduled
>>   Date 
>> size="2">> face="Arial, Helvetica, sans-serif">Occurance
>>   Date 
>> size="2">> face="Arial, Helvetica,
>sans-serif">Non-Participants
>>  
>>   
>>   
>> 
>> 
>> 
>> ")#">
>> 
>> 
>> 
>> 
>> ")#">
>> 
>> 
>>   
>> 
>> to=#qry_get_training_courses.recordcount#>
>>   qry_get_training_courses.rec_id[loopcount]>
>>   #qry_get_training_courses.session_name[loopcount]#
>>   
>> 
>> 
>> 
>>   > size="1">#current_training_date#
>>   > size="1">#current_completion_date#
>>   > size="1">href="index.cfm?fuseaction=event_nonparticipants_v&event_idx=#rec_id#&am
>p;traini
>> ng_course_idx=#training_crse_idx#">Non-participants
>>   > size="1">href="javascript:doSection(thesection)">participants
>> 
>>   
>> 
>> STYLE="display:none">
>>
>> 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>
>> 
>> 
>>  Close
>> 
>> 
>>
>> 
>>
>>   
>> 
>>
>> 
>> value="#attributes.quarter_idx#">
>>
>>
>> --
>>
>>
>>
>>
>>
>> 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



RE: populating the query result to IFRAME

2001-04-23 Thread Darren Adams

One really obvious point but there is a ")"  missing.

-Original Message-
From: paul . [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2001 17:11
To: CF-Talk
Subject: Re: populating the query result to IFRAME


 well by doing that am getting this error"Object expectd"
please help me out cos am not javascript savvy
-paul
--

On Mon, 23 Apr 2001 10:30:47  
 Bryan LaPlante wrote:
>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
>> ---
>> size="4"> Training
>> 
>> 
>> 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";}
>>   }
>>
>> 
>>
>>
>>
>> align="center" width="750">
>>   
>> > face="Arial, Helvetica, sans-serif">Course
>>   Name 
>> size="2">> face="Arial, Helvetica, sans-serif">Scheduled
>>   Date 
>> size="2">> face="Arial, Helvetica, sans-serif">Occurance
>>   Date 
>> size="2">> face="Arial, Helvetica,
>sans-serif">Non-Participants
>>  
>>   
>>   
>> 
>> 
>> 
>> ")#">
>> 
>> 
>> 
>> 
>> ")#">
>> 
>> 
>>   
>> 
>> to=#qry_get_training_courses.recordcount#>
>>   qry_get_training_courses.rec_id[loopcount]>
>>   #qry_get_training_courses.session_name[loopcount]#
>>   
>> 
>> 
>> 
>>   > size="1">#current_training_date#
>>   > size="1">#current_completion_date#
>>   > size="1">href="index.cfm?fuseaction=event_nonparticipants_v&event_idx=#rec_id#&am
>p;traini
>> ng_course_idx=#training_crse_idx#">Non-participants
>>   > size="1">href="javascript:doSection(thesection)">participants
>> 
>>   
>> 
>> STYLE="display:none">
>>
>> SRC="http://10.158.20.123/careadv/test/index.cfm?fuseaction=event_participa
n
>ts_v&event_idx=3&training_course_idx=645
>> " WIDTH=800 HEIGHT=200>
>> 
>> 
>>  Close
>> 
>> 
>>
>> 
>>
>>   
>> 
>>
>> 
>> value="#attributes.quarter_idx#">
>>
>>
>> --
>>
>>
>>
>>
>>
>> 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



RE: populating the query result to IFRAME

2001-04-23 Thread paul .

 well I do get an error saying " style is not an object"
guys please help
-paul
--

On Mon, 23 Apr 2001 17:29:59  
 Darren Adams wrote:
>One really obvious point but there is a ")"  missing.
>
>-Original Message-
>From: paul . [mailto:[EMAIL PROTECTED]]
>Sent: 23 April 2001 17:11
>To: CF-Talk
>Subject: Re: populating the query result to IFRAME
>
>
> well by doing that am getting this error"Object expectd"
>please help me out cos am not javascript savvy
>-paul
>--
>
>On Mon, 23 Apr 2001 10:30:47  
> Bryan LaPlante wrote:
>>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
>>> ---
>>> >size="4"> Training
>>> 
>>> 
>>> 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";}
>>>   }
>>>
>>> 
>>>
>>>
>>>
>>> >align="center" width="750">
>>>   
>>> >> face="Arial, Helvetica, sans-serif">Course
>>>   Name 
>>> >size="2">>> face="Arial, Helvetica, sans-serif">Scheduled
>>>   Date 
>>> >size="2">>> face="Arial, Helvetica, sans-serif">Occurance
>>>   Date 
>>> >size="2">>> face="Arial, Helvetica,
>>sans-serif">Non-Participants
>>>  
>>>   
>>>   
>>> 
>>> 
>>> 
>>> >")#">
>>> 
>>> 
>>> 
>>> 
>>> >")#">
>>> 
>>> 
>>>   
>>> 
>>> >to=#qry_get_training_courses.recordcount#>
>>>   >qry_get_training_courses.rec_id[loopcount]>
>>>   #qry_get_training_courses.session_name[loopcount]#
>>>   
>>> 
>>> 
>>> 
>>>   >> size="1">#current_training_date#
>>>   >> size="1">#current_completion_date#
>>>   >> size="1">>href="index.cfm?fuseaction=event_nonparticipants_v&event_idx=#rec_id#&am
>>p;traini
>>> ng_course_idx=#training_crse_idx#">Non-participants
>>>   >> size="1">>href="javascript:doSection(thesection)">participants
>>> 
>>>   
>>> 
>>> >STYLE="display:none">
>>>
>>> >SRC="http://10.158.20.123/careadv/test/index.cfm?fuseaction=event_participa
>n
>>ts_v&event_idx=3&training_course_idx=645
>>> " WIDTH=800 HEIGHT=200>
>>> 
>>> 
>>>  Close
>>> 
>>> 
>>>
>>> 
>>>
>>>   
>>> 
>>>
>>> 
>>> >value="#attributes.quarter_idx#">
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>>
>>> 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



RE: populating the query result to IFRAME

2001-04-24 Thread DeVoil, Nick

Paul

Not sure exactly why you get that message but try replacing

 
with
 

and
  Close
with
  Close

and the 2 JS functions with

 function doSection()
   {
 sec = getElementById("thesection");
 sec.style.visibility = "visible";
   }

 function noSection (secNum)
   {
 sec = getElementById("thesection");
 sec.style.visibility = "hidden";
   }

or something like that

Nick

-Original Message-
From: paul . [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 8:48 PM
To: CF-Talk
Subject: RE: populating the query result to IFRAME


 well I do get an error saying " style is not an object"
guys please help
-paul
--


**
Information in this email is confidential and may be privileged. 
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**

~~
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