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 -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 5:25 PM To: CF-Community Subject: RE: Javascript problem.. Are you saying that your getting issues w/ single quotes? If so, just wrap SAP_IO_DESC with JSStringFormat. It will auto escape crap for you. ======================================================================= 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:18 PM > To: CF-Community > Subject: Javascript problem.. > > > Hi dee ho.. > > > I am trying to use ..*gasp* Javascript! IN CF to set the value of a > field from a Pop Up Form to the main form. > > And it works fine, with one variable that is a nice integer. > When I try > to pass a Description field, it chokes. > > <INPUT TYPE = "button" VALUE = "Select" onClick = > "SelectThis(#SAP_IO_NBR#,'#SAP_IO_DESC#')"> > > <SCRIPT LANGUAGE = "JavaScript"> > > function SelectThis(item,item2) > { > > self.opener.document.Timeentry_billable.ordernum.value = item > self.opener.document.Timeentry_billable.proj_desc.value = item2 // > close the window window.close(); > > } > > </SCRIPT> > > So..the description has all sorts of characters, and its causing JS > errors when the user brings up the form. > > How do I, I don't know..get it to just treat that as a string and > nothing more...and pass that back to the form? > > -Gel > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
