logo

New Response

« Return to the main article

You are replying to:

  1. Okee dokee. Here is a compromise that should cater for ALL circumstances:

    ************* var p = location.pathname; path = p.slice( 1, p.toLowerCase().lastIndexOf('.nsf')+4) + '/'; ************* This way it doesn't matter what variation of Nn, Ss and Ff we have as it converts it all to lowercase before finding its postion. Note that toLowerCase has no effect on the original string so it will come out of the calculation unaffected.

    Jake -CodeStore

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: