[Lift] Re: Page transition using location.replace

2010-02-14 Thread aw
Because I don't like how my back button can return me back to a state
that is no longer true.

In my particular use-case, I am drilling into an item and either want
to do an action or cancel.
Completing an Action, or hitting Cancel, will put me back on the
viewItem page, after possibly executing an action.
I really don't like the Back button functioning in this case because
if the user hits the back button, then the user can resubmit the
action.  Sometimes, that could be dangerous or confusing.

On Feb 14, 4:14 am, Timothy Perrett timo...@getintheloop.eu wrote:
 Why? What would be a good reason for doing this...?

 On 14 Feb 2010, at 08:06, aw wrote:
  Is there a way to do a page transition using location.replace?
  In some cases, I am interested in not having the back button function.
  I think I am looking for an SHtml.link variation that leverages
  location.replace.
  Perhaps an S.redirectTo variation too.

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Re: [Lift] Re: Page transition using location.replace

2010-02-14 Thread Timothy Perrett
Im confused with how lift is stopping you providing this within your 
application? It seems like you could do what you wanted with client side 
javascript? 

Cheers, Tim

On 14 Feb 2010, at 17:16, aw wrote:

 Because I don't like how my back button can return me back to a state
 that is no longer true.
 
 In my particular use-case, I am drilling into an item and either want
 to do an action or cancel.
 Completing an Action, or hitting Cancel, will put me back on the
 viewItem page, after possibly executing an action.
 I really don't like the Back button functioning in this case because
 if the user hits the back button, then the user can resubmit the
 action.  Sometimes, that could be dangerous or confusing.
 
 On Feb 14, 4:14 am, Timothy Perrett timo...@getintheloop.eu wrote:
 Why? What would be a good reason for doing this...?
 
 On 14 Feb 2010, at 08:06, aw wrote:
 Is there a way to do a page transition using location.replace?
 In some cases, I am interested in not having the back button function.
 I think I am looking for an SHtml.link variation that leverages
 location.replace.
 Perhaps an S.redirectTo variation too.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Lift group.
 To post to this group, send email to lift...@googlegroups.com.
 To unsubscribe from this group, send email to 
 liftweb+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/liftweb?hl=en.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.