Re: Session variables and arrays
- From: "Hal Rosser" <hmrosser@xxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 23:39:25 -0400
"sjsean" <SJSean95126@xxxxxxxxx> wrote in message
news:1182991830.804241.313250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
All thanks in advance for reading my post. I am new to using js and
more accustomed to vbscript.
I had written code which created a shopping cart into an array using
vbscript and then transferred the information into a session
variable. However what I didn't know was that deleting/manipulating
information in an array using vbscript was not that easy.
In doing some reading and research it seemed that js was more flexible
in this area. My questions:
1) if I want to store cart items/details in an array and session
variable do I need to use only js (and can not switch back and forth
from vbscript and js)
2) if I have an array 6x12 and want to delete all the items
associated with say arrayItem[1, 0...12] what is the proper coding to
delete...is it splice?
3) any good articles about js, arrays, and multidimensional arrays
for a beginner?
sean
You're alluding to ASP programming, which is server-side. I believe the main
focus of this group is Client-Side Javascript.
Although you can use Javascript ( JScript) in lieu of VBScript for your ASP,
there's no need to switch from VBScript soley for handling a rectangular
array. If you're accustomed to the first element having an index of 1, and
accustomed to being able to ReDim your array, you may find the learning
curve switching to JScript a bit steeper than you may have anticipated. You
may ask yourself, for example, why do I want to delete elements of an array
in the first place.
.
- References:
- Session variables and arrays
- From: sjsean
- Session variables and arrays
- Prev by Date: Re: Rails Clones and Rhino vs SpiderMonkey
- Next by Date: Ajax 12152 error
- Previous by thread: Re: Session variables and arrays
- Next by thread: panning and zooming a la google maps
- Index(es):
Relevant Pages
|