exclamation point in field name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • philhege

    #1

    exclamation point in field name

    I'm using a third-party chat application. They require that form field
    names be formatted "SESSIONVAR!FIE LDNAME". 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.

  • Michael Winter

    #2
    Re: exclamation point in field name

    On 07/06/2005 13:10, philhege wrote:
    [color=blue]
    > I'm using a third-party chat application. They require that form field
    > names be formatted "SESSIONVAR!FIE LDNAME". The bang is creating
    > headaches when I try to write validation script. How can I handle this
    > format properly? [...][/color]

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

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

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Mick White

      #3
      Re: exclamation point in field name

      philhege wrote:
      [color=blue]
      > I'm using a third-party chat application. They require that form field
      > names be formatted "SESSIONVAR!FIE LDNAME". 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.
      >[/color]
      Hint:
      if(isNaN(docume nt.forms["formName"].elements["element name!"].value))
      {
      alert("Get with the programme!");
      }

      Mick

      Comment

      Working...