Re: How to show a work-in-progress icon while waiting for a web service

2010-05-13 Thread John Pullam
Good feedback. I am using the ColdFusion error checking of cfinput and cfselect to validate the input in the form before processing. If I simply JavaScript the button to either pop an image or inhibit the button, would it trigger that even though the validation failed? I'd not want to have

Re: How to show a work-in-progress icon while waiting for a web service

2010-05-13 Thread John Pullam
Good feedback. I am using the ColdFusion error checking of cfinput and cfselect to validate the input in the form before processing. If I simply JavaScript the button to either pop an image or inhibit the button, would it trigger that even though the validation failed? I'd not want to have

Re: How to show a work-in-progress icon while waiting for a web service

2010-05-13 Thread John Pullam
Good feedback. I am using the ColdFusion error checking of cfinput and cfselect to validate the input in the form before processing. If I simply JavaScript the button to either pop an image or inhibit the button, would it trigger that even though the validation failed? I'd not want to have

Re: How to show a work-in-progress icon while waiting for a web service

2010-05-13 Thread Aaron Neff
Hi John, The following will run the JavaScript (which disables submit button, and displays the image) only if CF form validation passes: style #myImageID {display:none;}/*hide image*/ /style script type=text/javascript /* ![CDATA[ */ var submitted = false; var imageID; function myFunction(frm,

RE: How to show a work-in-progress icon while waiting for a web service

2010-05-12 Thread andy matthews
One simple way to do it is just to disable the submit button and change it's text to something like Loading data That way you give instant feedback to the user and it's someplace they're already looking. andy -Original Message- From: John Pullam [mailto:jpul...@mcleansystems.com]

Re: How to show a work-in-progress icon while waiting for a web service

2010-05-12 Thread Aaron Neff
Hi John, This code may not be exactly what you need, but hopefully it helps: style #myImageID {display:none;}/*hide image*/ /style cfform cfinput type=button name=myButtonID value=click me / /cfform img id=myImageID src=PleaseWait.gif alt=Please Wait / script type=text/javascript /* ![CDATA[