G
Gordowey
Hi all,...I have an special situation, that I can not solve.... I need
some help
This is my scenario:
1.- I have n-combos (showing available rooms from an hotel) in my
web-page. The number of combos is not fixed.
2.- Some of the combos are dependent. I mean:
imagine the following situation:
I have 5 combos, combos 1,2,3 have values (free rooms) from 0 to 3, and
combos 4, 5 have values from 0 to 2
combo1 (room type 1)
combo2 (room type 1)
combo3 (room type 1)
combo4 (room type 2)
combo5 (room type 2)
The problem is that combos 1,2 and 3 are DEPENDENT, so the sum of the 3
combos CAN NOT be greater that the total number of free rooms(of that
type)
Again,
combo1.value + combo2.value + combo3.value <= 3
and also combos 4 and 5 are DEPENDENT, so combo4.value + combo5.value
<= 2
How can I writte a js function to validate this values?..
any help would be apreciated..
Thanks all
Alberto
some help
This is my scenario:
1.- I have n-combos (showing available rooms from an hotel) in my
web-page. The number of combos is not fixed.
2.- Some of the combos are dependent. I mean:
imagine the following situation:
I have 5 combos, combos 1,2,3 have values (free rooms) from 0 to 3, and
combos 4, 5 have values from 0 to 2
combo1 (room type 1)
combo2 (room type 1)
combo3 (room type 1)
combo4 (room type 2)
combo5 (room type 2)
The problem is that combos 1,2 and 3 are DEPENDENT, so the sum of the 3
combos CAN NOT be greater that the total number of free rooms(of that
type)
Again,
combo1.value + combo2.value + combo3.value <= 3
and also combos 4 and 5 are DEPENDENT, so combo4.value + combo5.value
<= 2
How can I writte a js function to validate this values?..
any help would be apreciated..
Thanks all
Alberto