Re: cut from string using JScript
From: Steve Fulton (cerberus40_at_hotmail.com)
Date: 06/05/04
- Next message: Randy Webb: "Re: cut from string using JScript"
- Previous message: Miki Peric: "Re: save binary data using FileSystemObject"
- In reply to: Randy Webb: "Re: cut from string using JScript"
- Next in thread: Randy Webb: "Re: cut from string using JScript"
- Reply: Randy Webb: "Re: cut from string using JScript"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 08:37:22 -0400
Randy Webb wrote:
> Dave Anderson wrote:
>> Randy Webb wrote:
>>
>>>> How's about: myString.split("\/")[myString.length+1]
>>>
>>> myString.length+1 isn't the element you would be looking for.
>> That aside, if JScript is going to give you a great tool like
>> Array.pop(),
>> why not use it?
>
> Support, or lack of, is the major problem with .pop() JScript 5.5 or
> better, which is IE5.5 unless they have updated the JS Engine in IE4/5.
Or unless you add your own support for it to the Array prototype. Simply
put your code in a library that's included in each page and you stop
worrying about how up-to-date the client is.
Array Power, Part I
bringing the IE Array object up to par
http://www.webreference.com/dhtml/column31/index.html
Array Power, Part II
bringing the IE (and sometimes the Navigator) Array object up to par
http://www.webreference.com/dhtml/column32/index.html
-- Steve There may be times when we are powerless to prevent injustice, but there must never be a time when we fail to protest. -Elie Wiesel
- Next message: Randy Webb: "Re: cut from string using JScript"
- Previous message: Miki Peric: "Re: save binary data using FileSystemObject"
- In reply to: Randy Webb: "Re: cut from string using JScript"
- Next in thread: Randy Webb: "Re: cut from string using JScript"
- Reply: Randy Webb: "Re: cut from string using JScript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|