Populating Select box through AJAX
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rina_magro
Posted On:   Monday, May 21, 2007 07:50 AM

Hi


I have 2 select boxes, when the user makes his selection for the first select box, the second select box' options gets populated through AJAX from data in database, (depending on the first select box' selection).


The second select box is being populated with correct data EXCEPT for the last which appends a few symbols at the end.


I am using MVC, so request is being handled by an action, a POJO and ends up in JSP.


Has any one encountered this problem please? How can i get rid of those EXTRA symbols at the end. The symbols are little squares.


PLEASE HELP


Thanks


Rina

Re: Populating Select box through AJAX

Posted By:   Anonymous  
Posted On:   Monday, May 21, 2007 09:01 AM

Hi Rina,
The problem might not be with the AJAX, Action class, or POJO that you have written.Problem might be with the data that you fetched from the database and formed an xml and send back to populate the second select box.The last option characters that is getting poulated are not recognised by the browser that causes displaying the small boxes as a last option.So better to look at the data that you fetched from the database.
Regards,
Krishna Rajendra A.
About | Sitemap | Contact