I'm new to Javascript, please bear with me. I've done some searching for this, haven't quite found what I was looking for. Looked in the FAQ's here too.
I have a filename, let's say, of 'MyFile.xls'.
I want to strip off the filename and preserve it, so I would have two variables:
string1 = 'MyFile'
string2 = '.xls'
I will append a timestamp to string1 (I've looked this up on the web and it seems pretty simple so I think I can manage it):
string1 = string1 + timestamp
Then I want to append string2 back onto string1:
string1 = string1 + string2
Could anyone help me with this or point me in the right direction please? I've found a few websites that touch JavaScript parsing, but mostly only splitting. Not more complex situations like finding the first decimal from the right. I wish JScript had VB's parsing functions.
Thanks for your time.
Kate
I have a filename, let's say, of 'MyFile.xls'.
I want to strip off the filename and preserve it, so I would have two variables:
string1 = 'MyFile'
string2 = '.xls'
I will append a timestamp to string1 (I've looked this up on the web and it seems pretty simple so I think I can manage it):
string1 = string1 + timestamp
Then I want to append string2 back onto string1:
string1 = string1 + string2
Could anyone help me with this or point me in the right direction please? I've found a few websites that touch JavaScript parsing, but mostly only splitting. Not more complex situations like finding the first decimal from the right. I wish JScript had VB's parsing functions.
Thanks for your time.
Kate