Assuming that you're using XHTML, you need to use the proper HTML
entity for which is: #38; I don't know that this will help your js
problems, but it will mean that your page will be valid XML.
More info at: http://www.w3.org/TR/REC-html40/sgml/entities.html
Jonothan
On Tue, 19 Oct 2004 09:55:20 -0500, Brian Duchek [EMAIL PROTECTED] wrote:
Why not just escape(selected.value) the improperly encoded value to
convert the to amp;?
On Thu, 23 Sep 2004 16:07:25 -0400, Scott Reston [EMAIL PROTECTED] wrote:
I've got a select form element that contains values that include escaped
ampersands. eg,
select
option value=This amp; ThatThis amp; That/option
/select
I'm finding that when I use javascript to get the value of the (selected index of
the) field, the value that javascript gets has the , not amp;
My character set for the form is ISO-8859-1.
I'm using the form input on another page and want to stay XHTML... Does anyone
have any insight into why I wouldn't get the whole value and what I can do to
remedy the situation?
Scott Reston
Director, Web Development
Capstrat
919/882.1966 v
919/834.7959 f
1201 Edwards Mill Road, Suite 102
Raleigh, NC 27607
www.capstrat.com
**
The discussion list for http://webstandardsgroup.org/
Proud presenters of Web Essentials 04 http://we04.com/
Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list getting help
**
--
Brian Duchek
=-=-=-=-=-=-=-=
e: [EMAIL PROTECTED]
c: 847.809.2140
w: www.inquiline.com
=-=-=-=-=-=-=-=
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list getting help
**
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list getting help
**