passing a dynamic variable's value in jsp to javascript function
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Seena_Mathew
Posted On:   Friday, April 28, 2006 10:29 AM

In my jsp , I loop through a list using a variable whose value is updated .It starts from 0. Now i want to pass the current value of this variable at a particular time to javascript function. I have tried sending it using where my "current" value is initialized as for looping thru a list of items, this variable is updated and each item listed on the JSP has a hyper link associated with it edit How do I pass this variable's value to javascript function?    More>>

In my jsp , I loop through a list using a variable whose value is updated .It starts from 0. Now i want to pass the current value of this variable at a particular time to javascript function. I have tried sending it using


where my "current" value is initialized as




for looping thru a list of items, this variable is updated




and each item listed on the JSP has a hyper link associated with it

edit



How do I pass this variable's value to javascript function?

   <<Less

Re: passing a dynamic variable's value in jsp to javascript function

Posted By:   Anonymous  
Posted On:   Saturday, April 29, 2006 02:21 AM

Easy with JSTL ...

...href="javascript:executeJavaScript('')">edit...

;)
About | Sitemap | Contact