>- see footer for list info -<
Only had a quick look at this, as I am about to knock off for the day.
You have the form as ENCTYPE="multipart/form-data" for the form that the
checkboxes are in. You could also try ...
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
... at the top of your page. You already have onSubmit="return
_CF_checkAddForm(this)", which is just running submitForm(), then
returning true, and in submitForm(), you are just disabling the Search
button, so if you want to check that at least one checkbox has been
ticked, then this ...
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function CheckTheCheckBoxes(TheFormName) {
var Pass=false;
for(NextFormElement=0;NextFormElement<TheFormName.elements.length;NextFo
rmElement++) {
if(TheFormName.elements[NextFormElement].type=="checkbox") {
if(TheFormName.elements[NextFormElement].checked==true) {
Pass=true;
}
}
}
if(Pass) {
document.getElementById("clickme").value="Please Wait...";
document.getElementById("clickme").disabled=true;
return true;
}
else {
return false;
}
}
</SCRIPT>
... with ...
onSubmit="return CheckTheCheckBoxes(this)"
... in your <FORM> tag should do the trick. Shouldn't let you submit the
form without ticking at least 1 checkbox type entry. I just typed this
off the top of my head though, and haven't tested it, so it might fail.
________________________________
From: Paul Swingewood [mailto:[EMAIL PROTECTED]
Sent: 13 February 2006 15:57
To: [email protected]
Subject: [CF-Dev] This one is so weird ....
>- see footer for list info -<
I have a page with some check boxes on a form. If I submit the
form having
selected a check box then something is returned on the results
page (be it
sometimes nothing) as it should.
If I leave all of the check boxes clear and submit I get a page
can not be
displayed error. If I then refresh the page that shows page can
not be
displayed then the page shows ..... Aghhhh.
Sorry if this isn't making any sense. You can see what I mean
here ...
http://www.bgfl.org/cfpages/studysupport/
Try selecting under 5 Holidays Citizenship ... Then try
submitting a blank
form then refresh the page can not be displayed or even just go
to the URL
the page is there .....
Something is very weird here ..... Can anyone tell me whats
going on please
...
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 -<