CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 3 Dependent Listboxes problem (RESOLVED)

Print topic Send  topic

Author Message
amc

Posts: 22
Posted: 11/13/2012, 3:37 PM

Hi,

I'm using the Ajax Dependent Listbox builder from CCS 5. I have 3 listboxes. The number 2 depends on the number 1, the 3 on 2.

Everything works fine except this:
- I select an entry from listbox 2, then the lisbox 3 content changes. OK.
- I select an entry from listbox 1, then the lisbox 2 content changes. OK. But the content of listbox 3 doesn't change. Why it is not receiving the "change/select" event from listbox 2?

Sorry if it is obvious...but I'm stuck...

View profile  Send private message
bannedone


Posts: 273
Posted: 11/14/2012, 6:49 AM

Hi

Probably because changing the value of listbox 2 via the code associated with listbox one does not trigger a DOM onchange event for listbox 2.

You might need to add some code that will generate the onchange event in this scenario.

_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2
View profile  Send private message
amc

Posts: 22
Posted: 11/14/2012, 6:55 AM

Quote :
You might need to add some code that will generate the onchange event in this scenario.

I supossed that, but as I'm not an experienced web developped I don't know how to fire the event...Google didn't help me very much...I tried several options but no luck...

View profile  Send private message
bannedone


Posts: 273
Posted: 11/14/2012, 7:02 AM

Hmmmm

Wish I could help you more.

Without having your CCS page in front of me, it is hard to determine the proper course of action.

Here are some links that describe triggering a DOM event.

http://stackoverflow.com/questions/2856513/trigger-onchange-event-manually

http://stackoverflow.com/questions/2490825/how-to-trigg...t-in-javascript

https://groups.google.com/forum/?fromgroups#!topic/comp...ipt/J-fHDlH_ipk

http://darktalker.com/2010/manually-trigger-dom-event/

Have Fun
8-)

BTW I found these with Google....
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 11/15/2012, 12:13 PM

Yeah it probably doesn't work out of the box.
Try the instructions I guess...

http://examples.codecharge.com/Ajax/DependentListBox3_desc.php


_________________
Central Coast, NSW, Australia.

View profile  Send private message
amc

Posts: 22
Posted: 11/19/2012, 5:15 PM

Quote MichaelMcDonald:
Yeah it probably doesn't work out of the box.
Try the instructions I guess...

http://examples.codecharge.com/Ajax/DependentListBox3_desc.php


Thanks, this gave me the clues... At last it was easier than expected :-)
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.