>- see footer for list info -<
Just tested my script, and it works fine. Where did it go wrong for you
? Also, I tried a simple form with just a few checkboxes (like yours),
and it submits just fine even if all boxes are unticked. Took a little
time to work this one out, but will post answer here in case anyone else
is curious. Seems you cannot post a completely empty form where you have
specified ...
 
enctype="multipart/form-data"
 
... used your code below on a quick test here, and using ...
 
<cfform name="AddForm" action="formsubmit.cfm?ID=1"  
enctype="multipart/form-data" onsubmit="submitForm();">
 
... and submitting an empty form (no checkboxes ticked) causes a HTTP
500 server error, but using ...
 
<cfform name="AddForm" action="formsubmit.cfm?ID=1"  
onsubmit="submitForm();">
 
... works just fine even if nothing is ticked.
 
BUT, your form was only completely empty because your onSubmit JS was
disabling the Submit button. If you leave your original <CFFORM>, like
so ...
 
<cfform name="AddForm" action="formsubmit.cfm?ID=1"  
enctype="multipart/form-data" onsubmit="submitForm();">
 
... but you alter your submitForm() JS so that it doesn't disable the
submit button, then it again works fine. Putting in the hidden form
field that did nothing also fixed the problem by making the form not
completely empty. So, to fix your problem, either leave the submitForm()
JS like it is, and take out the enctype="multipart/form-data" from your
<CFFORM>, or leave your <CFFORM>, and alter your submitForm() JS so that
it doesn't disable the Submit button.
 


________________________________

        From: Paul Swingewood [mailto:[EMAIL PROTECTED] 
        Sent: 14 February 2006 10:49
        To: [email protected]
        Subject: RE: [CF-Dev] This one is so weird ....
        
        

        >- see footer for list info -< 
        I Didn't read it. It just happend on this application .... Ooops
sorry 
        blanket statement about IE6 might upset someone ..... ;-) 

        Try it and see what you get. Of course remove the hidden field
first 

        <script language="JavaScript"><!--- Please wait when submit
button clicked 
        ---> 
        <!-- 
        function submitForm() 
                { 
                        document.AddForm.clickme.value = "Please
Wait..."; 
                        document.AddForm.clickme.disabled = "disabled"; 
                        return true; 
                } 
        //--> 
        </script> 


        <!--- Get the Who For (Phase) ---> 
        <CFQUERY NAME= "WhoFor"
DATASOURCE="#Application.StudySupportDSN#"> 
        SELECT PhaseIDPK, Phase 
        FROM tblPhase 
        ORDER BY Phase 
        </CFQUERY> 
        <!--- Get the When ---> 
        <CFQUERY NAME= "TakesPlace"
DATASOURCE="#Application.StudySupportDSN#"> 
        SELECT TakesPlaceIDPK, TakesPlace 
        FROM tblTakesPlace 
        ORDER BY TakesPlace 
        </CFQUERY> 
        <!--- Get the Skills ---> 
        <CFQUERY NAME= "Skills"
DATASOURCE="#Application.StudySupportDSN#"> 
        SELECT SkillsIDPK, Skills 
        FROM tblSkills 
        ORDER BY Skills 
        </CFQUERY> 

        <p> 
        <cfform name="AddForm" action="formsubmit.cfm?ID=1"  
        enctype="multipart/form-data" onsubmit="submitForm();"> 
                <input type="hidden" name="SendSomething" value="x" /> 
                <table border="0" class="itemTable" width=100%> 
                        <tr> 
                                <td>Directory of providers.</td> 
                        </tr> 
                        <tr> 
                                <td>Select from the choice boxes and /
or enter free text in the box 
        below and press 
                                'Start search' to find matching current
activities.</td> 
                        </tr> 
                        <tr> 
                                <td> 
                                        <table border='0'
cellpadding='10' cellspacing='4' class="itemTable" 
        width=100%> 
                                                <tr> 
                                                        <td valign="top"
align="center">WHO FOR (Phase)</td> 
                                                        <td>WHEN</td> 
                                                        <td>SKILLS / KEY
LEARNING AREAS</td> 
                                                </tr> 
                                                <tr> 
                                                        <td valign="top"
align="left" class="TableStripe"> 
        
<cfoutput query="WhoFor"> 
        
<cfinput type="checkbox" name="select_Phase" value="#PhaseIDPK#">

        
#Phase#<br /> 
        
</cfoutput> 
                                                        </td> 
                                                        <td valign="top"
align="left" class="TableStripe"> 
        
<cfoutput query="TakesPlace"> 
        
<cfinput type="checkbox" name="select_Place" 
        value="#TakesPlaceIDPK#"> 
        
#TakesPlace#<br /> 
        
</cfoutput> 
                                                        </td> 
                                                        <td valign="top"
align="left" class="TableStripe"> 
        
<cfoutput query="Skills"> 
        
<cfinput type="checkbox" name="select_Skill" value="#SkillsIDPK#">

        
#Skills#<br /> 
        
</cfoutput> 
                                                        </td> 
                                                </tr> 
                                        </table> 
                                </td> 
                        </tr> 
                        <tr> 
                                <td align="right"> 
                                        <input name="clickme"
type="submit" value="Search"> 
                                </td> 
                        </tr> 
                </table> 
        </cfform> 


        Regards - Paul 


        _______________________________________________ 

        For details on ALL mailing lists and for joining or leaving
lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo 

        -- 
        CFDeveloper Sponsors:- 
        >- Hosting provided by www.cfmxhosting.co.uk -< 
        >- Forum provided by www.fusetalk.com -< 
        >- DHTML Menus provided by www.APYCOM.com -< 
        >- Lists hosted by www.Gradwell.com -< 
        >- CFdeveloper is run by Russ Michaels, feel free to volunteer
your help -< 


        
************************************************************************
**** Notice: This e-mail and any attachments are confidential and may
contain legally privileged information and/or copyright material of
Hansen Technologies Limited or third parties.  Copying, distributing,
disclosing, commercialising or otherwise acting in reliance on this
e-mail and any attachments is strictly prohibited unless you are the
addressee of this e-mail and have written permission to do so.  If you
have received this e-mail in error please delete this e-mail (including
any copies and attachments) and contact Hansen Technologies Limited by
return e-mail or by telephone on + 61 39840 3000.  Any views expressed
in this e-mail are those of the individual sender and may not
necessarily reflect the views of or be a commitment by the organisation,
except where the individual sender has the authority and expressly
states them to be so.
************************************************************************
****

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to