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!!! Link to comment https://forums.phpfreaks.com/topic/39233-producing-image-on-submit/ 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 Link to comment https://forums.phpfreaks.com/topic/39233-producing-image-on-submit/#findComment-189102 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. Link to comment https://forums.phpfreaks.com/topic/39233-producing-image-on-submit/#findComment-189422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.