Jason,

It's important to remember that Javascript is commonly rendered AFTER
Coldfusion has compiled the page. This allows you to use Coldfusion to help
render such content.

Here is a basic request cycle to help show this:
Client makes request -> Server proccess request (Coldfusion) -> Server sends
back coldfusion rendered content -> Client side scripting renders (example:
Javascript)

So as shown by the other posts you can output such things as recordsets to
the page to help dynamically generate the page.

-Pat
http://patweb99.avatu.com

On Tue, Feb 3, 2009 at 2:47 AM, Jason Congerton
<[email protected]>wrote:

>
> Hi
>
> I need to access a recordcount from within a javascript function, is this
> possible?
>
> <script>
> function checkBoxValidate(cb) {
> for (j = 0; j < RECORD COUNT OF QUERY TO GO HERE; j++) {
> if (eval("document.addCust.ckbox[" + j + "].checked") == true) {
> document.addCust.ckbox[j].checked = false;
> if (j == cb) {
> document.addCust.ckbox[j].checked = true;
>         }
>      }
>   }
> }
> //  End -->
> </script>
>
> Jason
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318754
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to