3 ms·
Completely unrelated to your write up but theres a bug. In FF if I back up and resubmit it doesn't update to the new text. I still see my first submission.
by torme 16y ago
Completely unrelated to your write up but theres a bug. In FF if I back up and resubmit it doesn't update to the new text. I still see my first submission.
- sahillavingia 16y agoAh yes, I randomly generate a permalink on load of the page, so it uses the old permalink, hence why it loads the first submission. Any ideas on how to change this?
- torme 16y agoI guess just generate the permalink in the action and redirect to that instead of having it in the form itself. Something like: Form: /reworder/generate Action: Generates text, creates permalink and then redirects user to that permalink. In the web world this pattern is common, called redirect-after-post. I'm not sure if thats much help, I've only used python in the context of the Pylons framework (and have only a few days experience with it at that). If you need more guidance let me know and I'll try and clarify. edit: Link to redirect after post: http://en.wikipedia.org/wiki/Post/Redirect/Get http://en.wikipedia.org/wiki/Post/Redirect/Get edit2: I should also say this is a pretty sweet project, sorry if I just listed criticisms.
- sahillavingia 16y agoOf course not, I love criticisms. How else do I improve? I'll implement that ASAP.