Display a Wait/ Busy cursor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • john garvey
    New Member
    • Jan 2011
    • 50

    Display a Wait/ Busy cursor

    Hi Guys

    I have a form using PHP/ CSS/ HTML for updating customer details and then eMailing them the revisions. The form is posted with an 'Input: Type Image' which updates the database prepares a bespoke HTML email and sends it. My problem is this, the above process takes a couple of seconds before the user is sent to a confirmation page which gives the feeling that nothing has happened and the probability is the user may try to click the button again.

    What I need is to display a Wait cursor when the button is clicked and then return to default just prior to the redirect.

    I have looked at dozens of sites and none of the stuff that people swear on their grannies grave and is the best thing since sliced bread actually works, it is mainly links or active form areas.

    So as a recap what I need is :-

    'Click'-> 'Wait cursor' -> Do the hidden stuff -> 'Default cursor' -> 'Redirect'

    Thanks in anticipation
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Use javascript to change the cursor style of the body to wait.

    Comment

    • john garvey
      New Member
      • Jan 2011
      • 50

      #3
      Thanks for that, however, could you expand the answer so as to show me some code that actualy works and where to place it in relation to the button click and the php controller.

      Kind regards

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Sorry, I don't give out code unless the poster has shown an attempt at a solution.

        Comment

        Working...