CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Dynamic LIst Box Manipulation.

Print topic Send  topic

Author Message
electofaysal

Posts: 7
Posted: 06/16/2004, 2:52 AM

Hey all.

Ok here is a problem. Couldnt find a solution to it even after a lot of testing. The page just crashes on me.

I have two Tables ...
Business:
bid, etc etc and cid.
Category:
cid,cname,cid_parent.

Wht i want to do is that during user registrtion for the table business i want to show two List Boxes.
1. Parent Category Names 2. Sub Categories.

Of course the sub categories should be populated accorfin to the values in Parent Category. SO when a user selects a subcategory from the sub-cat list, instead of the names that are displayed in the list, i want to store the cid of that subcategory of the CATegroy Table into the Business Table.

So when i am inserting the details inside business table i want the cid to come from a list box value which is populated from the sub category table. That list should only show names and insert the ids.

Thanks.
View profile  Send private message
Aaron


Posts: 145
Posted: 06/17/2004, 12:13 PM

I have been trying to do the exact same thing and have not been able to figure it out yet.

Are you using mySQL for the backend by any chance? Just wondering.

If you get an outside forum reply on how to do this, please pass it along.

Aaron
View profile  Send private message
BenLaKnet

Posts: 10
Posted: 06/18/2004, 7:37 AM

I make a clsOption, in javascript.

First you define in an array the datas of sub category : id_parent, id, text
The listbox is populated with id_parent and the value stored is id.

you have juste to add javascript code in footer page to select the correct value in the listbox.

Interested ?
_________________
--
Aye Tchahu ...
View profile  Send private message
BenLaKnet

Posts: 10
Posted: 06/18/2004, 7:40 AM

Quote BenLaKnet:
I make a clsOption, in javascript.

First you define in an array the datas of sub category : id_parent, id, text
The listbox is populated with id_parent and the value stored is id.

you have juste to add javascript code in footer page to select the correct value in the listbox.

Interested ?

Oups I forgot the url :
chuuuuut the website is definitely closed...
http://www.training-gateway.com/cgi/index.php?wpage=search
http://www.training-gateway.com/js/clsOptions.js



_________________
--
Aye Tchahu ...
View profile  Send private message
girish_327


Posts: 108
Posted: 06/19/2004, 11:31 PM

i think I have done this. Please refer the URL and tell me if want same like this then i will send u the Code File.
http://www.ejasoos.com/Add_Items.asp
http://kolhapurhelpline.com/ebook/Add_eBook.asp
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com
View profile  Send private message
Aaron


Posts: 145
Posted: 06/23/2004, 6:26 AM

girish_327 ... would love to check out the links, but is asking for a login / pass. :(
View profile  Send private message
Sue
Posted: 07/01/2004, 7:57 AM

Hi,

I have been looking for code for this as well. I have a search that I did in Code Charge and I need the one search field to populate based on the selection of the first field. Do you have the ccs file that I can look at as an example? I am relatively new to this and I have a project that I need to complete in three weeks.

Thanks.


Quote BenLaKnet:
Quote BenLaKnet:
I make a clsOption, in javascript.

First you define in an array the datas of sub category : id_parent, id, text
The listbox is populated with id_parent and the value stored is id.

you have juste to add javascript code in footer page to select the correct value in the listbox.

Interested ?

Oups I forgot the url :
chuuuuut the website is definitely closed...
http://www.training-gateway.com/cgi/index.php?wpage=search
http://www.training-gateway.com/js/clsOptions.js



Aaron


Posts: 145
Posted: 07/01/2004, 8:37 AM

BenLaKnet: would be interested in that code if it's ok.

Aaron
View profile  Send private message
Wakizashi

Posts: 1
Posted: 07/03/2004, 6:22 AM

@BenLaKnet:
Im interested in that code as well... could you email it to me please?
View profile  Send private message
TheMatrixDuck
Posted: 07/11/2004, 3:57 PM

8-)
Just ran across the same requirement...
Can you email the code to me also? I worked on this for a WEEK to no avail.

THANKS !

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.