Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

saveToken in a PRG pattern? will it work with Meta refresh for a long action?  RSS feed

Rex Norm
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies if this has been covered, but I couldn't find it in my searches.

I have implemented a PRG pattern for a sales funnel... my last action takes a while, so I've implemented a PleaseWait page with a meta refresh that hangs on the final action's completion. However, I can't get the saveToken to work for the double submit. Using a debugger, I see that the request for Submit Order has no token, but the session does.

I've added an <html:form></html:form> to my meta refresh page, but I think my problem is that the PleaseWait page doesn't POST to the submitOrder action.

Any thoughts on how I could make the Meta refresh work for the action that takes a while AND get the token working?? I'm open to an alternate design too... thanks in advance for the brainpower.


The relevant portions of the Actions:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!