Click to See Complete Forum and Search --> : Populate list on form


bellcom
08-24-2003, 06:39 PM
I am trying to get a form to populate the "room request" select box from the month selected on a calender select list at beginning of form. The prices in the select box change depending on month.

I created the array and function here:
http://www.gcgr.com/form.htm


But I need to put it into this form so my month box fills the room request box:
http://www.gcgr.com/request3.htm


Could someone Please Help?

Fang
08-25-2003, 01:12 AM
You have the function makebox(), so just use it

bellcom
08-25-2003, 03:00 AM
Sorry but no experience at this, tried but can't get it to work.

How do I add the make box function to the selectbox?
It has to be added here right?

<select name="tbSelMonth" onchange='fUpdateCal(frmCalendarSample.tbSelYear.value, frmCalendarSample.tbSelMonth.value),changeDisplay(frmCalendarSample.tbSelYear.value, frmCalendarSample.tbSelMonth.value)'>

Fang
08-25-2003, 07:06 AM
It is a bit more than that,
do a search of the attached file for "Fang" to find the changes I made.

bellcom
08-25-2003, 12:29 PM
Perfect! Thank you so much for the comments in the code.

Just out of curiousity...would there be a wey to make certain blocks of days unavailable from the list? To show unavailable in the select box for certain days like 12-15-03 thru 12-31-03 or just certain single dates?

If it is a lot of work is there somewhere I could buy something like this or hire someone to write the code?

Fang
08-26-2003, 05:41 PM
It is possible, but not without a complete rewrite of the page.
You would be attempting to add a functionality that the page was never designed to do.