RishiPatel900
04-19-2005, 12:54 PM
Hiya, i better say first of all, that i am a total beginner with javascript, and programming,
i have made a page, with a bit of script to say, if 4 checkboxes are ticked, enbale the 'Continue' Button, else disabled. ::
<SCRIPT LANGUAGE="javascript">
document.frm.cbox.checked = false
function Disab() {
frm=document.forms['Form1']
if(frm.cbox.checked && frm.cbox2.checked && frm.cbox3.checked && frm.cbox4.checked)
{frm.Submit1.disabled=false}
else {frm.Submit1.disabled=true}
}
this works!! YIPPEE!
BUT......... Drumroll :rolleyes:
the problem is that Javascript is passing variables through the URL, and as this is a ColdFusion Page, there are coldfusion variables being passed through the URL as well, with information required to proceed to the next page.
is there anyway of hiding the javascript variables in the URL?
here is the code i have for the checkboxes.
<cfoutput> <input type="checkbox" name="cbox" id="cbox" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox2" id="cbox2" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox3" id="cbox3" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox4" id="cbox4" onClick="Disab();"></cfoutput>
thanks for any help
Rishi Patel :cool:
i have made a page, with a bit of script to say, if 4 checkboxes are ticked, enbale the 'Continue' Button, else disabled. ::
<SCRIPT LANGUAGE="javascript">
document.frm.cbox.checked = false
function Disab() {
frm=document.forms['Form1']
if(frm.cbox.checked && frm.cbox2.checked && frm.cbox3.checked && frm.cbox4.checked)
{frm.Submit1.disabled=false}
else {frm.Submit1.disabled=true}
}
this works!! YIPPEE!
BUT......... Drumroll :rolleyes:
the problem is that Javascript is passing variables through the URL, and as this is a ColdFusion Page, there are coldfusion variables being passed through the URL as well, with information required to proceed to the next page.
is there anyway of hiding the javascript variables in the URL?
here is the code i have for the checkboxes.
<cfoutput> <input type="checkbox" name="cbox" id="cbox" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox2" id="cbox2" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox3" id="cbox3" onClick="Disab();"></cfoutput>
<cfoutput> <input type="checkbox" name="cbox4" id="cbox4" onClick="Disab();"></cfoutput>
thanks for any help
Rishi Patel :cool: