• Post Reply Bookmark Topic Watch Topic
  • New Topic

calling javascript function through onclick present on checkbox

 
Arvind Rao
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i call onclick through the checkbox the function gets called but only the first alert present in the beginning of the function is being called and nothing else is executing. The help is appreciated.



and my js function


only in loaddata alert is being executed. nothing else.

Thanks,
Arvind
 
Prashant Chindhade
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you sure that you can use this jsp tags in javascript first ensure that...and try to do all you your coding in servlet not in jsp or in javascript ..if its unavoidable than only write code in jsp...

regs

Prashant
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all dont use scriptlets use EL and JSTL instead..
next read This Post, it has some good comments about mixing JSTL or EL with javascript, also check the view source of your generated page to see if there is any javascript error in the function loadData().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!