How to create dynamic javascript arrays using dojo toolkits
Hello frens,
I am in a big trouble. My objective is:
I am having some categories shown by differnent radio buttons, on the click of a particular radio button i making an ajax call using dojo and retirieving the data corresponding to that category. Now i am suppose to create array of that data using the javascript dynamically. Can anyone please help me for the same.
For your information:
I am using struts framework.
1. I have already tried setting the data corresponding to a category in the VIEWBEAN when ajax call is done, but i doesn't work as the dynamic javascript creating like this doesn't refreshed with the new data when a new radio button is clicked.
2. I am trying iterating the VIEWBEAN in a new JSP(on which we are being forwarded as a result of AJAX return) and creating a dynamic array using c:for Each tag but here how can i use this array in my original jsp.
Hello frens,
I am in a big trouble. My objective is:
I am having some categories shown by differnent radio buttons, on the click of a particular radio button i making an ajax call using dojo and retirieving the data corresponding to that category. Now i am suppose to create array of that data using the javascript dynamically. Can anyone please help me for the same.
For your information:
I am using struts framework.
1. I have already tried setting the data corresponding to a category in the VIEWBEAN when ajax call is done, but i doesn't work as the dynamic javascript creating like this doesn't refreshed with the new data when a new radio button is clicked.
2. I am trying iterating the VIEWBEAN in a new JSP(on which we are being forwarded as a result of AJAX return) and creating a dynamic array using c:for Each tag but here how can i use this array in my original jsp.
Comment