
Having a little trouble getting started.
Hi Panos,
This looks like great Ajax work. I'd like to use it, but I'm having difficulty.
I want to do a simple County list that filters Cities by parent county. This is a single table:
COUNTY CITY DATA
County1 City11 data
County1 City12 data
County1 City13 data
County2 City21 data
County2 City22 data
County3 City31 data
I can query all counties and all cities fine. However, when I try to link them to filter the cities by county I come up with nothing for cities. This seems pretty straight forward, I wonder if you can tell me what I'm doing wrong.
Here is a link [
karenvolksite.info] and the code I'm using.
$sc_ajax_select_boxes = new sc_ajax_select_boxes();
$sc_ajax_select_boxes->xml_encoding='ISO-8859-1'; // use this property if you need other encoding than latin
$sc_ajax_select_boxes->add_select_box('str_residential','COUNTY','COUNTY','COUNTY','','sel1','sel_id_1','','','Select County');
$sc_ajax_select_boxes->add_select_box('str_residential','CITY','CITY','CITY','','sel2','sel_id_2','','','Select City');
$sc_ajax_select_boxes->link_select_boxes('sel1','sel2', 'COUNTY');
$sc_ajax_select_boxes->place_jscripts();
$sc_ajax_select_boxes->show_select_box('sel1');
$sc_ajax_select_boxes->show_select_box('sel2');
Thanks!