Creating client-side dynamic dependent list boxes

Client-side dynamic dependent list boxes allow a "child" list box to refresh when a selection is made in a "parent" list box, without having to return to the server. Most dynamic dependent list box models return to the server to requery the dependent list box's recordset. The model described in this TechNote passes dependent list box data to the browser in an array. It uses JavaScript to extract the appropriate values from the array and refresh the "child" list box in the client's browser.

The advantage to this approach is immediate page response; the user does not have to wait for the new page to be delivered from the remote server. The disadvantage is all the data for the dynamic dependent list box is sent to the client as text, thus increasing the size of the requested page. An evaluation must be made whether the increased page size warrants saving return trips to the server. If the amount of data required for the dynamic dependent list box is not significant, page size remains relatively small.

George Petrov

George PetrovGeorge Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.

George is also the founder of Wappler.io - the most Advanced Web & App Builder

See All Postings From George Petrov >>

Comments

JSP support? nowhere to be seen.

March 26, 2001 by Cain Ullah
Really can't get this to work for JSP. Tried lots of things and also e-mailed Macromedia tech support. They replied by saying they couldn't help me without charging me $150 per hour. That is what I call support.

Does not work in Netscape!

March 28, 2001 by Jacco van Ingen

I did get it to work but when viewed in Netscape it doesn't work.
I checked MM's Technote which also does not work with Netscape.

I find it strange nobody is mentioning this...

Call Javascript behaviors?

October 24, 2001 by Moof Man

I've gone through the steps to creat this and in FINAL CHANGES it mentions add the Call JavaScript behavior?

HOW? I read this article 100's of times and still can work out how to Call a JavaScript behavior in the way it says?

I dont have anything called Call JavaScript under Server Behaviors +

 

Call Java script behaviour

January 11, 2002 by John Erikson
I tried this out and failed.  I too had an issue with the Call Java Script behaviour.  I completely understand the principal but the instructions with this are naff.
See all 13 Comments

You must me logged in to write a comment.