CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Dynamic List Boxes using JavaScript

Print topic Send  topic

Author Message
carlc

Posts: 7
Posted: 12/08/2006, 10:28 AM

I have four list boxes that are dependent upon each other. I would like to make the content of each dynamically change based on the previous list box selections. I can get the list values from a database when the page loads, but I do not want the page to refresh after each list box selection. So I think I would like to change the list values on the client side.

I am an experienced desktop developer, but new to JavaScript. Can someone point me to an example?
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.

Carl
View profile  Send private message
Edd


Posts: 547
Posted: 12/09/2006, 8:27 PM

Look in the CCS example pack for dynamic list boxes.

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
carlc

Posts: 7
Posted: 12/11/2006, 5:40 AM

All the examples I see use the BeforeShow event, which I believe relates to the server side, not the client side. I do not wish to refresh the page to change the list box values. I want them to change on the client side.

Did you find some examples that are client side?
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.

Carl
View profile  Send private message
peterr


Posts: 5971
Posted: 12/12/2006, 12:18 AM

Carl,

The examples in CCS Example Pack 2 are purely JavaScript based and work only on the client side. The multiple dependent listboxes demo at http://examples.codecharge.com/CCSExamplePack2/Dependen...entListBox3.php also shows that listbox values change instantly without refreshing the page.

While I believe that the server event may need to be used for reading listbox values from the database and creating JavaScript with appropriate values or arrays, so that you don't have make trips back to the server later again.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
carlc

Posts: 7
Posted: 12/12/2006, 2:31 PM

I think that is just what I was looking for. Thank you Peter.
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.

Carl
View profile  Send private message

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.