S
Seibar
Assume you have a page with the following drop down select lists
List_Of_States (Contains 50 States)
List_Of_Counties (Contains a list of counties in the selected state)
List_Of_Cities (Contains a list of cities/towns in the selected
county)
The list of states is static.
The list of counties would be fairly small (~20 counties per state = ~1000
counties)
This would result in~15K-20K of text/XML which could be stored in a
hidden field on the page.
Note: I wouldn't do that, but the question is hypothetical.
The list of cities is large and a filter at the server would be required.
Object of the game (using the above scenario):
When the user selects a state the applet would read the HTML stream, search
the hidden text or XML data for the counties in the selected state.
It would replace (for example)
<SELECT NAME="List_Of_Counties" >
<OPTION > ADAMS
<OPTION> BAKER
<OPTION> KING
<OPTION> LEWIS
</SELECT>
with
<SELECT NAME="List_Of_Counties" >
<OPTION > KITSAP
<OPTION> MASON
<OPTION> PIERCE
<OPTION> ZULU
</SELECT>
And then force the browser to render the resultant stream.
A similar function would be needed to replace <SELECT
NAME="List_Of_Cities">,
but it would get its list info from a database on the server.
Obviously, I could do this via ASP, but that means doing a
postback every time the user clicks a dropdown. More importantly, there
could in principle be any number of lists/data driven items on a page and I
might only want to reload one of them.
Is there a java applet (or a commercial product) that can do what I want to
do? I'm an
experienced programmer, but I've never jumped into the java pool. The
state/county/city page discussed above is not important, nor am I building
such a page. What I'm looking for is a general purpose applet to
replace a control on a page. Any advice would be appreciated. email:
(e-mail address removed)
List_Of_States (Contains 50 States)
List_Of_Counties (Contains a list of counties in the selected state)
List_Of_Cities (Contains a list of cities/towns in the selected
county)
The list of states is static.
The list of counties would be fairly small (~20 counties per state = ~1000
counties)
This would result in~15K-20K of text/XML which could be stored in a
hidden field on the page.
Note: I wouldn't do that, but the question is hypothetical.
The list of cities is large and a filter at the server would be required.
Object of the game (using the above scenario):
When the user selects a state the applet would read the HTML stream, search
the hidden text or XML data for the counties in the selected state.
It would replace (for example)
<SELECT NAME="List_Of_Counties" >
<OPTION > ADAMS
<OPTION> BAKER
<OPTION> KING
<OPTION> LEWIS
</SELECT>
with
<SELECT NAME="List_Of_Counties" >
<OPTION > KITSAP
<OPTION> MASON
<OPTION> PIERCE
<OPTION> ZULU
</SELECT>
And then force the browser to render the resultant stream.
A similar function would be needed to replace <SELECT
NAME="List_Of_Cities">,
but it would get its list info from a database on the server.
Obviously, I could do this via ASP, but that means doing a
postback every time the user clicks a dropdown. More importantly, there
could in principle be any number of lists/data driven items on a page and I
might only want to reload one of them.
Is there a java applet (or a commercial product) that can do what I want to
do? I'm an
experienced programmer, but I've never jumped into the java pool. The
state/county/city page discussed above is not important, nor am I building
such a page. What I'm looking for is a general purpose applet to
replace a control on a page. Any advice would be appreciated. email:
(e-mail address removed)