Some sample code would really help here as JS is picky about syntax.

That said...

I'll assume you're popping open a window ;-)

here's some psuedo-code

<cfoutput>
  > </cfoutput>

Then have a _javascript_ function in the HEAD block that takes 2 arguments.  So all you're doing is setting the values of the arguments passed to the function with CF vars.

Hope that helps

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Joy Holman
  To: CF-Talk
  Sent: Tuesday, April 13, 2004 8:44 AM
  Subject: Re: passing multiple CF vaules to a _javascript_ variable

  I'm placing the query results of several fields into an HTML list. The href of each generated link includes an onClick event. Because of that, I need to create a _javascript_ variable that holds the values of the style name field from the query. I don't know how to populate the style name variable for each list item.

  Thanks for your interest and your assistance.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to