[ic] Modifying posted form with mv_click

Jamie Neil interchange-users@icdevgroup.org
Mon Apr 28 09:06:01 2003


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Mike Heins
> Sent: 28 April 2003 13:13
> To: interchange-users@icdevgroup.org
> Subject: Re: [ic] Modifying posted form with mv_click
>
>
> Quoting Jamie Neil (jamie@versado.net):
> > Sorry - got it now (amazing what 2 hours sleep can do for you)
> >
> > Just for the record, I did it like this:
> >
> >                                 [button
> >                                         text="Remove Item
> [item-increment]"
> >                                         src="remove.gif"
> >                                         hidetext=1
> >                                         form=basket
> >                                 ]
> >                                 mv_todo=refresh
> >                                 mv_nextpage=ord/basket
> >                                 [quantity-name]=0
> >                                 [/button]
> >
> > The key is to use [item-increment] in the button text so each
> button has a
> > unique name.
>
> This won't work except for the first item -- you need mv_quantity_update.

I can't seem to make it _not_work. Doesn't matter how many items I add to
the basket, how many I delete, what order I delete them and whether I go to
and from the basket, it seems to work fine! What am I missing, I can't find
any documentation on mv_quantity_update, any pointers?

>
> It will be easier to do it with a link:
>
> 	[page href="ord/basket"
> 	      form="
> 		  mv_quantity_update=1
> 		  [quantity-name]=0
> 		  mv_action=refresh
> 		"]<img src="remove.gif" border=0></A>
>

What are the pros and cons to using page/area links with embedded form
fields over using buttons/forms? Are there any situations where you can't
use links?

Jamie Neil

> --
> Mike Heins
> Perusion -- Expert Interchange Consulting    http://www.perusion.com/
> phone +1.513.523.7621      <mike@perusion.com>
>
> Light travels faster than sound. This is why some people appear bright
> until you hear them speak. -- unknown
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>