[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: refresh the page at the completion of a form
****** message to minivend-users from "Hans-Joachim Leidinger" <hans-joachim.leidinger@home.gelsen-net.de> ******
Hello Mike,
this is my way (see below) and i hope, it help you!
I have add a scratch-variable in all page like
[perl arg=scratch]
$Safe{'scratch'}{'pagenow'} = 'catalog';
$Safe{'scratch'}->{'pagelast'} = 'catalog';
return '';
[/perl]
(pagenow ist the current page, if you will stay on the same page after
any action. pagelast is the page, if you will return to the last page!
But after search or scan action, you must use the [data session
last_search] )
After any action, use the scratch variable anywhere you wish
i.e.
[page href="process/locale/en_US/page/[scratch pagenow]"]English[/page]
or
mv_nextpage=[scratch pagenow]
Joachim
>****** message to minivend-users from "kenshin"
<kenshin@planetanime.com> ******
>
>I'd like to have a user login form on all the pages of my site and I'd
like
>to be able to refresh the page when someone either logs in or out. I'm
>currently using mv_nextpage to direct the user to the same page:
>eg. a form on the catalog.html page will have mv_nextpage=catalog but
it
>doesn't work well when the page is a results page of a search. I've
tried
>using [data session last_page] but it doesn't carry all the session
>information.
>
>Is there a session variable that carries the info from the current page
that
>will let me do this? I was also thinking about using javascript
>document.reload() but i couldn't figure out how to incorporate it into
>minivend and have it run after all the userdb stuff.
>
>I'm running MV 3.12beta13 on linux 2.0.35 and apache 1.3.3
>
>thanks,
>mike k.
>
-
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