jsstringformat()
-Justin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
----- Original Message -----
From: "Angel Stewart" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 7:45 PM
Subject: Setting field on form using Javascript
> Ok...I have a CF Form..and I'm opening a window which contains another
> CF Form.
>
> And I want to set a field on the first form to a value depending on what
> I select on the pop up.
>
> Now I can do this with ONE value, but I run into a problem.
>
> There is a descriptionf ield in the database which I also want to pass
> back to the main form. But this field has..well..descriptions. That
> include /, ",: and all sorts of other odd characters. So of course it is
> causing the Javascript to blow when I pass the values over.
>
> What can I do to get around this issue?
>
> <TD><INPUT TYPE = "button" VALUE = "Select" onClick =
> "SelectThis(#SAP_IO_NBR#,'#SAP_IO_DESC#')"></TD>
>
> And the Javascript to set the field on the form is:
>
> <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>
>
> Any ideas? :)
>
> -Gel
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists