dcsimg
Pass a Java array to Javascript funcation
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yufu_Huang
Posted On:   Tuesday, February 26, 2002 10:23 AM

How can I pass an Java array as an argument to the Javascript in my JSP page? Or if that is not possible, how to pass dynamic arguments to Javascript from HTML page? A sample code will be appreciated.

Re: Pass a Java array to Javascript funcation

Posted By:   Yufu_Huang  
Posted On:   Tuesday, February 26, 2002 12:53 PM

I just figured out how to do it. Constructs a string includes all elements. Then use <%=theElementStr%> to initialize the javascript array.
About | Sitemap | Contact