Reputation: 771
In my web-application I have a the following requirement.
I need to have a dropdown for country.
Based on the country selected I need to display the corresponding states.
I need to fetch both the country and state from database.
I cant use javascript since in production(live), javascript will be disabled.
I guess I have to use ajax to implement this?
Can anyone please tell if there is any better way to implement the above requirement?
I have seen the following link.
Populating cascading dropdown lists in JSP/Servlet
But I dont like to use javascript (since my client will disable javascript in Production environment)
Upvotes: 0
Views: 2836
Reputation: 11698
I cant use javascript since in production(live), javascript will be disabled.
Can't use javascript than you would have to refresh the page i.e.:
I guess I have to use ajax to implement this?
Now my friend you are contradicting your own self, because ajax
(I am sorry to say this) is nothing but javascript
, it is not some different language than javascript.
Upvotes: 2