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
messageedit datawhich show in the combo box
Posted by: nicos (IP Logged)
Date: February 14, 2010 10:33PM

Hello, i use ajax linked select boxes for input my category and sub category product where category linked to sub category after i select category. can anybody help me how can i to edit the category and sub category where in the category and sub category box not "PLEASE SELECT" option but the name i have choose before, so we can know what category and sub category before and we choose new category and sub category from drop down.

thank in advance

messageRe: edit datawhich show in the combo box
Posted by: panos (IP Logged)
Date: February 21, 2010 12:18PM

Hi,
let me understand the effect you want

user selects Category, sub category box loads subcategories
and prompts "PLEASE SELECT" for user to select subcategory
user selected subcategory and submits form
Then page shows again select boxes without selected values,
that is your problem right?

If yes, then you have to set the selected_value parameter
in add_select_box function the values from $_POST

add_select_box(db_table_name, key_field_name,
description_field_name, order_field_name,
selected_value, tag_name, tag_id, [extra_tag_attributes]
, [extra_where], [select_prompt_text])

hope i helped

messageRe: edit datawhich show in the combo box
Posted by: nicos (IP Logged)
Date: February 23, 2010 06:19AM

GREAT, it work, Panos. Thank very much.



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