Re: How to generate char ",

Subject: Re: How to generate char ",
From: Dan Morrison <dman@xxxxxxxx>
Date: Wed, 21 Jun 2000 04:43:41 +1200
Jeni Tennison wrote:
> 
> Sivaji,
> 
> >I am lokking for the html
> > like
> >
> ><input type = "button" value = " delete "   onClick =
> "chgdelete("loc-del_1")" >
> 
> I think you mean:
> 
>   <input type = "button" value = " delete "
>     onClick = "chgdelete(&quot;loc_del_1&quot;)" >

I sincerely doubt this is what he's looking for - it might make the
decent HTML parsers stop objecting, but it would achieve less than zero
on the page.

When playing with nested scripts, you generally just have to swap your
single and double quotes a bit, and backslash the rest...

...
<input type = "button" value = "delete" onClick="chgdelete('loc_del_1')"
/>
<input type = 'button' value = 'delete' onClick='chgdelete("loc_del_1")'
/>
... I've done stranger things on my parser...

or if you're going to want to put parameters in there somewhere, perhaps
this would be more versatile in the long run:
...
<input type = "button" value = "delete"
 ><xsl:attribute name="onClick" 
 >chgdelete('loc_del_<xsl:value-of select="whatever"
 />')</xsl:attribute
 ></input>
...
Note no free whitespace in that above paragraph! I broke the lines
strangely on purpose so it would sort of survive the email.
Hopefully that will mean that most of todays parsers will be happy
compressing it to 
<input ,,, /> instead of <input ,,,></input> 


.dan.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread