Open Source & Stuff  
  |     Main Site     |      Forum     |     Contact     |
Ajax Linked Select boxes :  forum.Salix.gr forum.Salix.gr
Comments, questions, usage, bugs. 
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
messageHaving a little trouble getting started.
Posted by: timprotech (IP Logged)
Date: January 21, 2008 09:11PM

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!

messageRe: Having a little trouble getting started.
Posted by: panos (IP Logged)
Date: January 24, 2008 09:08AM

Hi Tim,

from the first look i cant hit sc_select_ajax_handler.php in the location you gave me.

Pls read this thread [forum.salix.gr] that convo has lots of debugging
tips.

if that want helps hit me again.

Best Regards
Panos



Sorry, only registered users may post in this forum.

All Rights Reserved 2006 Salix.gr  |  Design by Ades Design |  Hosting by e-emporio |  forum.Salix.gr powered by Phorum