Thanks Brian, but no luck.

The revised code works fine for OFarrell, but still falls over on O'Farrell,
even though the string itself is delimited by "".
Using IE6.

Phil.


----- Original Message ----- 
From: "KNOTT, Brian" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 29, 2004 3:21 PM
Subject: [cfaussie] RE: Javascript Problem


> Try using " instead of '
>
> i.e window.parent.document.forms[1].client_name.value = "#this.name#"
>
> > -----Original Message-----
> > From: Phil Evans [SMTP:[EMAIL PROTECTED]
> > Sent: Tuesday, 29 June 2004 15:19
> > To: CFAussie Mailing List
> > Subject: [cfaussie] Javascript Problem
> >
> > Hi All,
> >
> > I have a search page that returns a client name (and other info) back to
> > the
> > calling page via Javascript.
> >
> > Code is
> >
> > <cfoutput>
> >     window.parent.document.forms[1].client_name.value = '#this_name#';
> > </cfoutput>
> >
> > It all works fine, until I came across a surname of O'Farrell. The
> > Javascript then fails because the string contains a delimiter.
> >
> > I can strip the ' out of the surname, but ideally I'd like the full
string
> > returned.
> > I tried O&quot;Farrell, but the &quot; did not substitute for '
> >
> > Any ideas?
> >
> > Thanks,
> > Phil.
> >
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to
> > [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
>
>
> --------------------------------------------------------------------------
---------
> This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of
its related entities ("Suncorp").
>
> Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on
1800 689 762 or at suncorp.com.au.
>
> The content of this e-mail is the view of the sender or stated author and
does not necessarily reflect the view of Suncorp. The content, including
attachments, is a confidential communication between Suncorp and the
intended recipient. If you are not the intended recipient, any use,
interference with, disclosure or copying of this e-mail, including
attachments, is unauthorised and expressly prohibited. If you have received
this e-mail in error please contact the sender immediately and delete the
e-mail and any attachments from your system.
>
> If this e-mail constitutes a commercial message of a type that you no
longer wish to receive please reply to this e-mail by typing Unsubscribe in
the subject line.
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to