This topic is locked

Dropdown loaded in different ways

5/30/2008 9:01:01 AM
PHPRunner General questions
spettinato author

Hi all, i have this structure in database:

Category: id_cat, CategoryName

Sections: id_sez, SectionName

Page: id_page, Category, Section
It can happen that a page has not Section in a record, so that a record can be like this:

(1,1,null)
So, i'd like to creare a page in Page_add.php so that if only category number is selected in a combo, i show only Page records like (1,1,null) in a dependent dropdown, and if also Section number is selected i show only Page records like (1,1,1) in a dependent dropdown.
Obvious, Sections is a dropdown dependent from the selected Category dropdown.
How can be possible?
Thanks to all.

spettinato author 5/30/2008

I explaind better what i would like to do.

Is it possible to intercept the onchange action of a dependent dropdown to load other data in another combo for example?

Thanks.

J
Jane 6/2/2008

Hi,
use dependent dropdown boxes for this purpose.

Here is the "How to setup dependent dropdown boxes on Edit/Add pages" PHPRunner tutorial:

http://www.xlinesoft.com/phprunner/php-database.htm

spettinato author 6/2/2008

Hi,

use dependent dropdown boxes for this purpose.

Here is the "How to setup dependent dropdown boxes on Edit/Add pages" PHPRunner tutorial:

http://www.xlinesoft.com/phprunner/php-database.htm


I didn't explain. I'd like to code a new field, so that when i load a combobox, it is loaded. When i say NEW FIELD i mean that is not a "phprunner system field", associated to database, but another, that i want to manage in a separated way.

So, is it possible to intercept an event when a system combobox is loaded or not? And how?

Thanks.