I've a list of objects (which is nothing but a Map<String, Object>)
The following code works:
But I need to pass the object as it is so that I've better control of what should be inserted in the 'panel_info' div.
Hence I need to send myObject to doSomething() somthing like :
But when I do this is displays : undefined.
Please guide me on how i can pass it as an object.
Bear Bibeault wrote:Look at the HTML that is sent to the browser, is it what you expect? Does it look right?
Maybe this article will be helpful.
Oh yeah...silly of me. I got your point.
Okies...my motive is solved. Thanks for the direction. Have a nice day!!
Yes,I've used JSON to fetch some of the data in my jsp. (e.g. I've used JSON to hold the city names list for a particular statename)
But for this case, I don't want to fetch all the data in some JSON at a go. If the user clicks on the 'more details' link, it should fetch the data...so Ajax seems better in this case. What say?