468,101 Members | 1,487 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,101 developers. It's quick & easy.

exclamation point in field name

I'm using a third-party chat application. They require that form field
names be formatted "SESSIONVAR!FIELDNAME". The bang is creating
headaches when I try to write validation script. How can I handle this
format properly? I'm not sure how to escape the exclamation point
within my code.

TIA for your time and expertise.

Jul 23 '05 #1
2 1582
On 07/06/2005 13:10, philhege wrote:
I'm using a third-party chat application. They require that form field
names be formatted "SESSIONVAR!FIELDNAME". The bang is creating
headaches when I try to write validation script. How can I handle this
format properly? [...]


Had you read the FAQ for this group, you'd have the answer already.

<URL:http://www.jibbering.com/faq/#FAQ4_25>

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2
philhege wrote:
I'm using a third-party chat application. They require that form field
names be formatted "SESSIONVAR!FIELDNAME". The bang is creating
headaches when I try to write validation script. How can I handle this
format properly? I'm not sure how to escape the exclamation point
within my code.

TIA for your time and expertise.

Hint:
if(isNaN(document.forms["formName"].elements["element name!"].value))
{
alert("Get with the programme!");
}

Mick
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Neil Varshneya | last post: by
8 posts views Thread by Dennis C. Drumm | last post: by
2 posts views Thread by ArunDhaJ | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.