When I convert the #linkStyle# to _javascript_ - "target(){return #linkStyle#}" - and place the _javascript_ in the onClick event as
"(target()", there is no way for the value to change from what was originally returned in the script.
If the value of #linkstyle# returned in the script was "FellSvc", (probably the last value returned from the query), each instance of
I'm thinking I need to loop over the variable from within the script or loop over the function from within the output of the query - loop over something, somehow, to get all the values for #linkSvc# separated out and into different onClick event instances.
I tried placing all the values for #linkSvc# in a list, in an array (which the _javascript_ function didn't like because it was a complex datatype), but it's not getting me closer to placing different values in each onClick event generated by outputting the query results.
I'm going to sleep on it. G'night, all and thanks for your input!
>On Apr 13, 2004, at 1:07 PM, Joy Holman wrote:
>
>
>but #linkStyle# is just the name of a CF variable, a container, if you
>will (this one just cones from the db).
>
>that container can contain anything you want it to, for example:
>
><cfset #linkStyle# =
>'
><html>
><head>
><cfscript language="_javascript_"
>
>myFunction( ) {
>
> alert("Hi");
>}
>'
>/>
>
>
>
>
>so in your example, the columns in the current row of the query contain:
>
>columnName Content
>---------- -------
>linkName Apple
>
>linkURL www.apple.com
>
>linkStyle MinorRts
>
>
>
>if column named linkStyle in the current row of the database contains
>MinorRts
>
>then outputting:
>
><br><a href=""
>#linkName# </a>
>
>will yield:
>
><br><a href=""
>Apple </a>
>
>
>As I understand it, that is exactly what you want.
>
>The next row will have different values so the next link will reflect
>this
>
>HTH
>
>Dick
>
>
>
>>
<script language="_javascript_">
<!--
window.open = SymRealWinOpen;
//-->
</script>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

