Thanks Mike,

I would probably prefer to keep the structure as is, but I am game for
anything. I know this is probably something small but I just cannot find it.
I think I just need a new set of eyes looking at it.


Doug
----- Original Message -----
From: "Michael T. Tangorre" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, November 03, 2001 9:13 PM
Subject: Re: Structure ?


> Doug,
>
> I am not sure how helpful this will be off the bat, but something I ran
into
> similarly was back when I was trying to keep track of students here on
> campus who had two majors. What I did was to create a structure and for
each
> major assign them an array of grades..
>
> <cfscript>
> session.major = StructNew();
> session.major.first = ArrayNew(1);
> session.major.first[1] = "A,B,A,C,B,A";
>
> // Now, if they had another major and input their grades I woudl run
>
> session.major.second = ArrayNew(1);
> session.major.second[1] = "B,B,A,C,A,D";
>
> Now, I made this simpler when I ran into a bazillion errors by making the
> array 2 dimensional, the first dimension holding the Major Name, and the
> next dimension holding the grades for that major in a comma delimited
list.
>
> I am just going out on whim here and this prolly means nothing  LOL.. I
did
> find better success using complex data types in the session scope, and
using
> WDDX to send em around the different pages.
>
> I'll keep looking through your code.
>
> Mike
>
>
> ----- Original Message -----
> From: "Douglas L. Brown" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, November 03, 2001 10:22 PM
> Subject: Structure ?
>
>
> > I have a shopping cart, and this is the problem. I will walk through
> > step by step.
> >
> > 1. Customer configures computer and and hits "Add to cart" which takes
> > them to the view cart page and updates a structure. Customer can update
> > quantity no problem.
> >
> > 2.  Customer decides to shop more and adds another custom computer to
> > their basket without a problem
> >
> > 3. Customer modifies the quantity of systems and the error pops up.
> >
> > On the view cart page I am using hidden fields to keep track of all the
> > computer components, but this is where the problem comes in. When they
> > hit update with two items in ther basket, it creates a new array with
> > the values of both systems like it was a single computer. Is their a way
> > to keep scope on all the components without the use of hidden fields?
> > The view cart page simply post back to itself upon update. I will email
> > someone the pages in question if they can help with this, I have been
> > pounding my head for 3 days.
> >
> >
> >
> > Doug
> >
> >
> >
> >
> > <CF_SIGNATURE
> >     NAME="Douglas L. Brown"
> >     EMAIL="[EMAIL PROTECTED]"
> >     PHONE="714.538.6611"
> >     WEB="http://www.carnivorepc.com";>
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to