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
messageValue of the first select box is always "0"
Posted by: gcan (IP Logged)
Date: May 29, 2008 07:49AM

Hello,

I just customized the script for my needs. Everything works fine, but there is a problmem with first select box. When submitting form, the value of the first box is always "0". The values of second and third box are correct.

Can anyone help?

Thank you.

=============================

$sc_ajax_select_boxes->add_select_box('table_islands','id','title','id','','island','island_id','','',$tekst1);
$sc_ajax_select_boxes->add_select_box('table_cities','id','title','title','','city','city_id','','',$tekst1);
$sc_ajax_select_boxes->add_select_box('table_streets','id','title','title','','street','street_id','','',$tekst1);


$sc_ajax_select_boxes->link_select_boxes('island','city', 'column_island','');
$sc_ajax_select_boxes->link_select_boxes('city','street', 'column_city','');


$sc_ajax_select_boxes->place_jscripts();

$sc_ajax_select_boxes->show_select_box('island');
$sc_ajax_select_boxes->show_select_box('city');
$sc_ajax_select_boxes->show_select_box('street');

messageRe: Value of the first select box is always "0"
Posted by: panos (IP Logged)
Date: June 01, 2008 11:16AM

Hi,
this is strange. Your setup looks right.
Have you tried the debuging method described at [salix.gr]

Regards
Panos

messageRe: Value of the first select box is always "0"
Posted by: nycrock (IP Logged)
Date: January 16, 2009 08:30AM

Does anyone has the answer to this problem?

messageRe: Value of the first select box is always "0"
Posted by: panos (IP Logged)
Date: January 21, 2009 02:39AM

Does this problem is still accuring?



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