1. The O'Reilly book: "Dynamic HTML, The Definitive Reference" has the best documentation on the DOM (Document Object Model) that I've found so far. You can preview this book at http://www.oreilly.com/catalog/dhtmlref/.
2. Regarding your comment "All this needs to be made server...
Here's how I finally did it. NO hits to the server. Works OK as long as the total number of cities isn't very large. All the necessary data is stored on the page itself. Could be made more efficient by using smaller variable names and delimited strings instead of arrays:
<%
'GET ALL THE STATE...
I want to have 2 list boxes on a web page. The first box will have the names of the states. When a user selects a state in the first list box I want to populate the second list box with the 10 biggest cities in that state without going back to the server. This would be easy using JavaScript and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.