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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists