For those who are curious: I worked with Gel a bit on this, and the problem was this.
Gel was using code like so: <.... onClick="FOO"> Now, Foo is where crap gets fun. Like CF, JavaScript wants you to use either double quotes or single quotes. If you use double quotes, and need quotes on the inside, you should try to use single quotes, or escapes quotes (in CF, this is "", in JS, \"). Ok, so, let's look at what he had for FOO: SelectThis(#somenum#,'#somestr#') So, when he first had errors, I told him to wrap somestr with JSStringFormat. This did what you would expect. It changed ' to \' and " to \" Ok, here is where it's odd. Because we had double quotes on the outside (onClick=""), the browser itself got confused by the escaped double quote. So, it was legal syntax, but still threw an error. Um, I'm not sure if that made sense, but, for a good read on it, see: http://groups.google.com/groups?hl=en&rnum=10&selm=831ito%24f37%241%40bg tnsc03.worldnet.att.net And, let me say again, I _love_ Google. ======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Angel Stewart [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 30, 2001 4:29 PM > To: CF-Community > Subject: RE: Javascript problem.. > > > Man..this is an example of the text contained in that > description field: > > RGT:S:AM-47, INST 2322' OF 8":B > > So it's not just the quotes..its the colons and stuff as well. > > And just using JSStringFormat(#SAP_IO_DESC#) didn't work :-\ > > -Gel > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
