exclamation point in field name

P

philhege

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.
 
M

Michael Winter

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
 
M

Mick White

philhege said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top