flood control and mobile browsers

Discussion in 'TFW2005 Tech Support' started by chugway, Feb 20, 2010.

  1. chugway

    chugway ming mong ping pong

    Oct 22, 2009
    Trophy Points:
    Whenever i'm browsing on my phone, i double post like crazy. presumably it's because my signal drops for a second and then tries to re-POST the post data.

    Just mentioning it because the flood control on here seems a little weak - lots of double posts turning up when it'd be easy enough to prevent a lot of them with some minor code-changes.

    On a form-submission i normally capture the click, prevent the default action and disable the button (nice loading graphic or updated button style optional) before i do the submission in ajax. Doing it that way i think you'd avoid the issue of mobile browsers trying to reload the last POST as if it was a page. Plus you'd have much tighter control over the ability of the user to submit with a bit of simple class-switching.

Share This Page