I am using the Overlib js file for some custom tooltips on my pages. In order to pass the text from my coldfusion variable into the ToolTip function I call it like this:
onmouseover="return overlib('#problem#');" onmouseout="return nd();"
The error occurs when the #problem# variable conatins apostrophes, for obvious reasons. I am wondering if anyone has some code that will escape all of the apostrophes in the #problem# variable and return with all of the ' turned into /' (if that's right, I think) Keep in mind I need to be able to pass #problem# as a parameter of the function.
Once again, I deeply appreciate everyone's support.