Hi, Paul...

I'm not a Javascript person either, but jQuery, of
www.jQuery.com makes Javascript functionality accessible
to those of us who are "JS Challenged".

There's a plug-in for just what you're trying to do..."blockUI".
Check it out here:  http://jquery.com/plugins/project/blockUI
There's documentation, demos, etc.

There's a great support list, too, [EMAIL PROTECTED],
that will help you every step of the way.

Check it out... I don't work for jQuery...actually no one does...
it's all volunteers and the jQuery is free to all.

Rick



> -----Original Message-----
> From: Paul Smith [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 18, 2007 8:39 PM
> To: CF-Talk
> Subject: Re: Problems with submit
> 
> Thanks for that Nick,
> 
> Its just a pity I don't have a clue about Javascript, I guessed that was the 
> answer and now JS
> has just become a priority to learn... Why is it when you leave education 
> (many years ago for
> me) learning begins!.
> 
> > You could do this with JavaScript. Create a function between your head
> > tags that looks something like this:
> >
> > <script language="javascript">
> >     function submitForm(form){
> >             form.submit();
> >             form.theButton.value="submitting...";
> >             var elements = form.elements;
> >                 for (var i=0;i<elements.length;i++) {
> >                     elements[i].disabled=true;
> >                 }
> >
> >     }
> > </script>
> >
> > Then change your form tag to include an onSubmit attribute like this:
> >
> > <form id="myForm" name="myForm" action="/path/to/formHandler.cfm"
> 
> > onSubmit="submitForm(this);return false;">
> >             <input type="text" />
> >             <input type="submit" name="theButton" value="submit results" />
> > </form>
> >
> >
> > When the form's submitted the script will run, disable all the form
> > inputs and change the button text to "submitting...".
> >
> > Hope that helps
> >
> > Nick
> >
> >
> > > Hi Folks,
> > >
> > > Using CF8:
> > >
> > > I have a results entry form and if the user hits submit more than
> > once
> > > the result is submitted more than once, how would I stop the user
> > > being able to submit more than once..
> > >
> > > Yes I know a real newbie question :)
> > >
> > > Thanks for any feedback you can give.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293568
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to