Passing parameter map (list of values) to JQuery

Posted by bsreekanth on Stack Overflow See other posts from Stack Overflow or by bsreekanth
Published on 2010-06-05T05:46:59Z Indexed on 2010/06/05 9:42 UTC
Read the original article Hit count: 426

Filed under:
|
|

Hello,
to initialize a javascript loaded grid, I need to pass a list of values from controller/gsp. Since the javascript is activated once the page is rendered/loaded, there may not be a direct way to do it. 2 possibilities 1. do an ajax call, and retrieve the list of values from the server 2. store the list in html as a hidden element, and read it from javascript.

option 2 seems better as it avoids few calls back to server. So, which control should I use for a list of values? Any jQuery code snippet to read it back into array/list.

thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery