[thelist] Quotes in a quoted event handler

Steve Abaffy sabaffy at mswebdevelopment.com
Mon Dec 29 16:10:36 CST 2003


Try,
<select size="1" name="s1" onChange="SetText('12', 'he said,
&quot;hi.&quot;');">


> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Tab Alleman
> Sent: Monday, December 29, 2003 3:57 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Quotes in a quoted event handler
>
>
> I'm about out of ideas here.
>
> I've got a form element with an event handler like this:
>
> <select size="1" name="s1" onChange="SetText('12', 'he said, "hi."');">
>
> And because of the quotes inside the onChange, I'm getting an
> unterminated string constant error.
>
> I tried:
> <select size="1" name="s1" onChange="SetText('12', 'he said,
> \"hi.\"');">
> ...still get the error
>
> <select size="1" name="s1" onChange="SetText('12', 'he said,
> ""hi.""');">
> ...still get the error
>
> Is there a way to make this work?  Preferably while keeping the onChange
> handler delimited?
>
> TIA,
> Tab
>
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
>




More information about the thelist mailing list