MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: changing frames



* Steve (steve@lwww.com) [22.06.99 21:39]:
> Thomas 'Balu' Walter wrote:
> >
> > I am about to set up a frame based shop.
> >
> > If a user ordered something and entered his data on the checkout-page I
> > use mv_change_frame to get rid of the frames and display his receipt on
> > the "_top"-page.
> >
> > But if he has to fill out more fields the user is directed to the
> > needfield-special page and this is my problem - this page is also
> > displayed with target=_top.
> >
> > How do I switch to frame _top if everything is allright and stay in the
> > same frame if there is a problem (or if MV needs more input)?
> 
> utilize the [if] tagging. you already should have some of what you need in
> place just change a few settings and you should be ok. I have looked
> directly at the coding but it seems to me logical that it is a conditional
> statement and by altering that statement for output you should be able to
> acheive what you desire.

Hm - this sounds logical, but I am not sure where to put the [if]s.

The RequiredFields are set in the catalog.cfg and they are checked if a user
clicks on order on the checkout-page. This order-button includes the setting
of a hidden field named mv_change_frame to change the frame to _top if the
button is clicked.
The problem is that the frame is also changed if some data is missing. This
causes the Needfield-page to be displayed in the _top frame...

     Balu

PS: 
Perhaps it is possible to use a new frameset-file as Needfield-page - I
think I'll have to try this :-).

PPS: Is there a way to change two frames at the same time? - Especially if
someone [order]s something?
I would like to change the mainframe to the basket-page and the index-frame
at the same time, because the index-frame contains a short-form of the
basket.
 


Search for: Match: Format: Sort by: