[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Remove checkbox in shopping cart must be before quantity textbox
****** message to minivend-users from cfm@maine.com ******
> > ****** message to minivend-users from Ryan Hertz
> > <rhertz@gyb.baits.com> ******
My guess is that minivend just stops looking for quantity
attribute as soon as it finds first. You'd have to dig
through the code to know for sure.
If it were to stack the variables they would be in same
string and you could split it /\000/. Nor is it obvious
just how minivend **should** interpret multiple quantities
for the same instance of the same item.
Maybe you could use javascript to set a third HIDDEN
[quantity-name][item-quantity] physically earlier in the form.
We would do something like that in the **subsequent** page,
interating through the item array and blowing away the duplicate.
cfm
> >
> > Very interesting! It might have something to do with the two
> > inputs having
> > the same name. Which may be the customer's/your browser freaking out
> > (javascript is client-side).
>
> Is it possible to make the names different, perhaps with an ActionMap?
>
> > I use an older javascript code: onClick="document.forms[0].submit()" and
> > that's it, I'm not sure what your onclick is trying to do...
>
> I think "document.forms[0]" and "this.form" are equivilant. There are
> several forms on my basket.html: login, checkout(secure),
> delete/quantity/recalculate(not secure), so I'm not sure which form[?] is
> which.
>
> > That method, which I guess is a 'simple' relic, may be a bit of a hack.
> > Perhaps there is a better way, maybe using Minivend tags to
> > remove the item??
>
> Any ideas?
>
> > At 04:38 PM 3/24/99 , Thompson-Jordan wrote:
> > >****** message to minivend-users from "Thompson-Jordan"
> > <Thompson-Jordan@mindspring.com> ******
> > >
> > >Here is something that I discovered regarding the remove box on in
> > >basket.html. It seems the order that you place the remove
> > checkbox and the
> > >quantity textbox matters. The remove checkbox must appear first to work
> > >correctly.
> > >
> > >This doesn't work:
> > > <input type="text" name=[quantity-name]
> > value="[item-quantity]" size=3>
> > > <INPUT TYPE=checkbox NAME="[quantity-name]"
> > > onClick="this.form.action='[process-target]',
> > > this.form.submit()"
> > > VALUE="0">
> > >
> > >This works:
> > > <INPUT TYPE=checkbox NAME="[quantity-name]"
> > > onClick="this.form.action='[process-target]',
> > > this.form.submit()"
> > > VALUE="0">
> > > <input type="text" name=[quantity-name]
> > value="[item-quantity]" size=3>
> > >
> > >This is one of those annoying things that wastes ones time. Does anyone
> > >know how to make it work with the remove checkbox after the textbox? I
> > >would like to place it below the quantity textbox.
> > >
> > >Christopher Thompson
> > >
> > >-
> > >To unsubscribe from the list, DO NOT REPLY to this message.
> > Instead, send
> > >email with 'UNSUBSCRIBE minivend-users' in the body to
> > Majordomo@minivend.com.
> > >Archive of past messages:
> http://www.minivend.com/minivend/minivend-list
> >
>
> Ryan Hertz tel 520-645-3812
> Webmaster tel 800-645-BAIT
> Advertising Director fax 520-645-2588
> Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 (MTRF 3-5pm) http://www.maine.com/
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list