*
The moose likes HTML, CSS and JavaScript and the fly likes dwr call to load drop down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dwr call to load drop down " Watch "dwr call to load drop down " New topic
Author

dwr call to load drop down

sahana mithra
Ranch Hand

Joined: Oct 26, 2010
Posts: 72
Hi all,

I have two dropdowns say State and District. In first page, I select a state based on which District will be loaded. Now I select State as TamilNadu and District Chennai. Upon clicking it takes to second page as well as it stores it in DB. Now second page is for edit. I click an edit button. It takes me back to first page. Now I want to load all the values of State and i want TamilNadu as a highlighted one. similarly for District, all other values must be loaded and Chennai must be highlighted.

I load values using the following call





With the above code, i just get the entire list of state and district. But I also want to highlight the option I already have in database for which I again make a dwr call passing the id generated while adding the selected options in DB. I am able to fetch the selected option. But I just get struck up as I want to make that option as the first one which doing Edit operation.

can someone help me out

Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: dwr call to load drop down
 
Similar Threads
dynamic value to be submitted to form beans
DWR error
dynamically inter relate two drop down list in jsp
open the selected row values in the edit mode in new form using javascript
Loading a page and then calling function