Results 1 to 3 of 3

Thread: indexOf() problem

  1. #1

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    indexOf() problem

    Code:
    strSecondHeaderValue  = "a_b_c";
    alert(strSecondHeaderValue + '\n\n' + strSecondHeaderValue.indexOf['_']);
    Why is the indexOf() property coming out as undefined ?

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    indexOf('_')
    not
    indexOf['_']

    I think that will fix it
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    duh jamie. duh.

    Thank-you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width