Top.Mail.Ru
July 25th, 2004 - Java developers — LiveJournal
? ?

Java developers

July 25th, 2004
 

09:42 pm - Imagecircumstances - client-side libraries of some sort?

I need help figuring out how to do something, and hopefully you guys will have some ideas. My manager saw a feature of a competitor's website and he would like to implement ours in a similar manner. We're not sure how to accomplish it, though. Basically, we have some dropdown menus on a page that are each dependent upon the selected value of the previous dropdown. (e.g. if you select "Fruit", apples, oranges, and kumquats should be in the next dropdown, but if you select "Vegetables", the next dropdown should have corn, squash, and asparagus.) That's a contrived example and has nothing to do with the actual industry this will be for, but you get the idea.

The total number of possible combinations is large, so the file containing this information is very big. What we would like is for the page to somehow use a library or file containing this information that has been downloaded and cached on the client's computer so that the page would not have to be submitted to the server to repopulate the next dropdown after every selection. Ideally this would be transparent to the user, also. Can this be done with beans or something? By embedding a bean on a page with the embed or object tag, or something like that? Anything? I'm at a loss, but on the other hand, Company B is doing it somehow, so....
Powered by LiveJournal.com
Image