Whenever you have something like this:
Code:
arrayName[0]='<a href="some.htm" onclick="alert('You clicked me!')">Click Me</a>'
It will throw an error because single quotes (') are used to delimit the array element and the text for the alert within said element. it should look like this:
Code:
arrayName[0]='<a href="some.htm" onclick="alert(\'You clicked me!\')">Click Me</a>'
with the contained delimiters escaped using a downslash (\).
Getting back to your example, if everything else is correct and a downslash will present no problem to the PHP or whatever other code it is you are using in there besides javascript, simply applying the same technique there will solve the problem:
Code:
<script>
/*<cfoutput query="ShowPrices">*/
content[#ShowPrices.currentrow#]='* <a href="#" onClick="MM_openBrWindow(\'window.cfm?file=#SESSION.Cat#\',\'1\',\'width=760,height=520\')"> Details</a>'
/*</cfoutput>*/
</script>
Bookmarks