Hi
Please could you look at my site:
[
www.bestbnb.co.nz]
You see on the left hand side under Search Directory is are 4 select menus. Forget the first one, underneath this are three linked select boxes in this order:
North & South Island
All Regions
All Towns / Cities
First time, look in the 'All Regions' or 'All Towns / Cities' menus - but DONT select one, and you will see a huge list of all islands, regions and cities.
This is wrong, because you can choose a Town from the regions list, or a region from the towns list.
Can anyone see what i may have done wrong?
Here is my code:
<script type="text/javascript" src="scripts/prototype.js"></script>
<?php
include("top_script.php");
include("sc_classes.php");
$sc_ajax_select_boxes = new sc_ajax_select_boxes();
$sc_ajax_select_boxes->add_select_box('areas','rec_id','descr','rec_id',0,'island','island','', 'parent_id=0','North & South Island');
$sc_ajax_select_boxes->add_select_box('areas','rec_id','descr','rec_id',0,'region','region','','','All Regions');
$sc_ajax_select_boxes->add_select_box('areas','rec_id','descr','rec_id',0,'town','town','','','All Towns / Cities');
$sc_ajax_select_boxes->link_select_boxes('island','region', 'parent_id',0);
$sc_ajax_select_boxes->link_select_boxes('region','town', 'parent_id',0);
$sc_ajax_select_boxes->place_jscripts();
$sc_ajax_select_boxes->show_select_box('island');
$sc_ajax_select_boxes->show_select_box('region');
$sc_ajax_select_boxes->show_select_box('town');?>
</div>
<div><label for="keyword" class="regLabel">Keyword search:</label><input type="text" name="keyword" id="keyword" /></div>
<div><input type="submit" class="introsearch_button" value="" name="submit"/></div>
</form>
Many thanks