Re: cut from string using JScript
From: Randy Webb (hikksnotathome_at_aol.com)
Date: 06/05/04
- Next message: ali akbar: "Re: Limit for no. of script satatements executed in a single page"
- Previous message: Steve Fulton: "Re: cut from string using JScript"
- In reply to: Steve Fulton: "Re: cut from string using JScript"
- Next in thread: Steve Fulton: "Re: cut from string using JScript"
- Reply: Steve Fulton: "Re: cut from string using JScript"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 10:13:45 -0400
Steve Fulton wrote:
> 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
>
Yes, adding it to the prototype prevents it, but to me, it is like using
a chainsaw to cut your meat. Its overkill for the OP's question. And, I
dont care for libraries, others do.
-- Randy Chance Favors The Prepared Mind comp.lang.javascript FAQ - http://jibbering.com/faq/
- Next message: ali akbar: "Re: Limit for no. of script satatements executed in a single page"
- Previous message: Steve Fulton: "Re: cut from string using JScript"
- In reply to: Steve Fulton: "Re: cut from string using JScript"
- Next in thread: Steve Fulton: "Re: cut from string using JScript"
- Reply: Steve Fulton: "Re: cut from string using JScript"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|