Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-28-2002, 01:17 PM   #1
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
can you pop/push arrays in javascript?

Can you pop and push values to and from arrays in javascript?
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2002, 01:24 PM   #2
bawdy
Confirmed User
 
Join Date: Feb 2002
Posts: 1,424
Version 5.5 of Micosoft JScript adds these methods to the array object... not sure if they are available on current Client Side Javascript implementations

arrayObj.pop( )

arrayObj.push([item1 [item2 [. . . [itemN ]]]])

since its an implementation of the ECMA 262 language you might expect it to appear on the most recent browsers
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2002, 02:37 PM   #3
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Thanks. So I guess I can't do it in JS 1.0 to 1.2.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2002, 02:48 PM   #4
bawdy
Confirmed User
 
Join Date: Feb 2002
Posts: 1,424
CSJS reference for array object

http://developer.netscape.com/docs/m...sref/array.htm


certainly has pop and push methods for CSJS v1.2
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2002, 03:34 PM   #5
HQ
Confirmed User
 
Join Date: Jan 2001
Posts: 3,539
Excellent, I'll check it out. Thanks.
HQ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.