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 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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
