ASP and AJAX
-
Presently I'm working in classic ASP. I'm using AJAX for one reason that I do not want to reload the page and for second reason I want better performance. I'm having two dropdowns (combobox) and two textboxes. I want to have the second dropdown populated as per the selection of the first dropdown. That is all fine. I've already implemented that. Now, next I want that the two textboxes contains the records as per the selection of the second dropdown. The first dropdown contains the States, the second dropdown should be populated with the City as per the selection of the States and first textbox should contain with the code of the selected City (the codes of the cities are already there in the database) and the second textbox should contain the latitude and longitude of the selected City (the latitude and the longitude of the Cities are also there in the database). Can anyone please help me? It will be very much helpful if you can provide me with a code. My delivery date is approaching near and I'm in urgent need. Thanks in advance for your help.
-
Presently I'm working in classic ASP. I'm using AJAX for one reason that I do not want to reload the page and for second reason I want better performance. I'm having two dropdowns (combobox) and two textboxes. I want to have the second dropdown populated as per the selection of the first dropdown. That is all fine. I've already implemented that. Now, next I want that the two textboxes contains the records as per the selection of the second dropdown. The first dropdown contains the States, the second dropdown should be populated with the City as per the selection of the States and first textbox should contain with the code of the selected City (the codes of the cities are already there in the database) and the second textbox should contain the latitude and longitude of the selected City (the latitude and the longitude of the Cities are also there in the database). Can anyone please help me? It will be very much helpful if you can provide me with a code. My delivery date is approaching near and I'm in urgent need. Thanks in advance for your help.
What's the question?
popin wrote:
The first dropdown contains the States, the second dropdown should be populated with the City as per the selection of the States and first textbox should contain with the code of the selected City (the codes of the cities are already there in the database) and the second textbox should contain the latitude and longitude of the selected City (the latitude and the longitude of the Cities are also there in the database).
If the "Codes of the Cities" and the "Latitude and Longitude" are all in the database, what do you need help with? Please be more specific.
-
What's the question?
popin wrote:
The first dropdown contains the States, the second dropdown should be populated with the City as per the selection of the States and first textbox should contain with the code of the selected City (the codes of the cities are already there in the database) and the second textbox should contain the latitude and longitude of the selected City (the latitude and the longitude of the Cities are also there in the database).
If the "Codes of the Cities" and the "Latitude and Longitude" are all in the database, what do you need help with? Please be more specific.
Thanks for replying... Basically the second dropdown gets populated as per the selection of the first dropdown. Now when I select the the second dropdown (i.e. the city) then the two textboxes would be filled up with code of the city and the atitude and longitude of the selected City. The second dropdown is getting populated properly but when I'm selecting the city from the second dropdown, either nothing happens or another combobox is geting created. I'm at a loss as to how to code on the 'onChange' event of the second dropdown. I've tried some ways but none seems to work. Please help urgently. Thanks once again for the response.
-
Thanks for replying... Basically the second dropdown gets populated as per the selection of the first dropdown. Now when I select the the second dropdown (i.e. the city) then the two textboxes would be filled up with code of the city and the atitude and longitude of the selected City. The second dropdown is getting populated properly but when I'm selecting the city from the second dropdown, either nothing happens or another combobox is geting created. I'm at a loss as to how to code on the 'onChange' event of the second dropdown. I've tried some ways but none seems to work. Please help urgently. Thanks once again for the response.
Use XMLData island for filling text boxes
cheers, Akhilesh Yadav