smc Posted February 19, 2007 Share Posted February 19, 2007 Hey everyone, I am VERY new to Javascript. I just got finished reading a tutorial book but it didn't do a great job of explaining the more complicated visual effects. Basically I have a PHP script that submits information in a FORM to a database. When the person presses submit i want to disable the submit button and then next to it show an animated gif, like a little emblem going in circle to signal loading. How can I go about doing this? I understand the basics of javascript and am an experience PHP coder so I should be able to work with you on it. Thanks!!! Quote Link to comment Share on other sites More sharing options...
smc Posted February 20, 2007 Author Share Posted February 20, 2007 A good example of what I would like is when posting a quick reply on a vBulletin forum Quote Link to comment Share on other sites More sharing options...
fenway Posted February 20, 2007 Share Posted February 20, 2007 The best way to handle this is to set a timeout that disables the submit button with the onsubmit/onclick event handler, but "restores" it after a reasonable amount of time has elapsed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.