BounceFish 

Website Solutions
Search
      home solutions clients resources faqs contact us  
  See our portfolio under the solutions section.

Resources - For Developers

Back to Resources For Developers Homepage

================STEP 1 - COPY CODE BELOW INTO HEADER========================
<SCRIPT = language="JavaScript">
function confSorter()
{
var confbox = window.document.mcaform.conf;
var hotlbox = window.document.mcaform.hotl;
var gestbox = window.document.mcaform.gest;
if (gestbox.checked == false && hotlbox.checked == false && confbox.checked == false) {
alert('Please select an option');
return false;
}
if (gestbox.checked == true && hotlbox.checked == true && confbox.checked == true) {
document.mcaform.action='../jsp/wizard_all.jsp';
return true;
}
if (gestbox.checked == true && hotlbox.checked == true) {
document.mcaform.action='wizard_hotelandguest.jsp';
return true;
}
if (gestbox.checked == true && confbox.checked == true) {
document.mcaform.action='wizard_conferenceandguest.jsp';
return true;
}
if (hotlbox.checked == true && confbox.checked == true) {
document.mcaform.action='wizard_conferenceandhotel.jsp';
return true;
}
if (hotlbox.checked == true) {
document.mcaform.action='wizard_hotelonly.jsp';
return true;
}
if (confbox.checked == true) {
document.mcaform.action='wizard_conferenceonly.jsp';
return true;
}
if (gestbox.checked == true) {
document.mcaform.action='wizard_guestsorpouseonly.jsp';
return true;
}

}
</SCRIPT>

================STEP 1 - COPY CODE ABOVE INTO HEADER========================

================STEP 2 - COPY CODE BELOW INTO BODY========================
<form name="mcaform" method="post" action="" onSubmit="confSorter();document.mcaform.submit()">
Please select all that apply for the conference:<P></P>
<input type="checkbox" name="conf">Conference Registration<BR>
<input type="checkbox" name="hotl">Hotel Reservations<BR>
<input type="checkbox" name="gest">Guest/Spouse Reservations
<P></P>
<A href="#" onClick="confSorter();document.mcaform.submit()"><IMG src="images/submit_button.gif" width="40" height="16" border="0"></A>
</form>

================STEP 2 - COPY CODE ABOVE INTO BODY========================

    INSTRUCTIONS
  • Step 1 - Paste code inside header <HEAD></HEAD> of HTML page
  • Step 2 - Paste code inside body <BODY></BODY> of HTML page

    DESCRIPTION
  • This will force the user to choose an option, before moving on to the next page. Their option will determine which page they will go to next.

 

Copyright © 2003-2012. BounceFish Web Design. All rights reserved.