By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 2,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

push support level

P: n/a
I seem to recall that IE at one time did not support push. How far
back do we have to go before we lose push? Is it IE4?

Jeff
Jan 18 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Any version of IE less than 5, yes.

Maybe create your own push function?

Array.prorotype.push=function()
{
for(var i=0;i<arguments.length;i++)
this[this.length]=arguments[i];
return this.length;
}

On Jan 19, 10:50 am, Jeff <jeff@spam_me_not.comwrote:
I seem to recall that IE at one time did not support push. How far
back do we have to go before we lose push? Is it IE4?

Jeff
Jan 19 '08 #2

P: n/a
Sorry, that should be:

if(!Array.prototype.push)
{
Array.prototype.push=function()
{
for(var i=0;i<arguments.length;i++)
this[this.length]=arguments[i];
return this.length;
}
}

On Jan 19, 10:50 am, Jeff <jeff@spam_me_not.comwrote:
I seem to recall that IE at one time did not support push. How far
back do we have to go before we lose push? Is it IE4?

Jeff
Jan 19 '08 #3

P: n/a
On Jan 18, 11:51*pm, "liamge...@gmail.com" <liamge...@gmail.com>
wrote:
Any version of IE less than 5, yes.
IIRC, IE5.0 doesn't have push either (as well as several other Array
methods.)
Maybe create your own push function?

Array.prorotype.push=function()
{
* * for(var i=0;i<arguments.length;i++)
* * * * this[this.length]=arguments[i];
* * return this.length;

}
http://hexmen.com/blog/2006/12/push-and-pop/
Jan 19 '08 #4

P: n/a
VK
On Jan 19, 2:50 am, Jeff <jeff@spam_me_not.comwrote:
I seem to recall that IE at one time did not support push. How far
back do we have to go before we lose push?
Far enough to make this problem irrelevant for the current coding.
Array push method in IE exists since 5.5

Jan 19 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.