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...
|
|
|
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 |
|
|
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...
|
|
|
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
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 |
|
|
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.
|
|
|
amc
Posts: 22
|
Posted: 11/19/2012, 5:15 PM |
|
Quote MichaelMcDonald:
Thanks, this gave me the clues... At last it was easier than expected
|
|
|
|