• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

html checkbox tag and checkall javascript functionality results in undefined alert

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is my jsp page code that builds the jsp page.


It works perfectly and I can see all the corresponding records for a particular licenseename on the page.

Then I wrote a html check box tag to check all the records that correspond to the particular licensee name as below.



I wrote a javscript function that checks all the checkboxes for the records returned by the above tag and I get an undefined alert. I believe the event variable I am defining in my JS function is not getting any thing.


 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a JavaScript question--not Struts.

While it's inappropriate to discuss this question here, there's nothing in the code you posted named "eventName", so you haven't provided enough information to help anyway.
 
sravani jetty
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David,

Sorry, For some reason I was thinking that the value is not being returned because of struts error. after I made this post, I figured that the problem lies in the check_all function call without any parameters, in html check box struts tag.

Eventname is a property that is set in actionform.

Thanks for your quick response and if you have the moderator rights, please feel free to move this to the javascript forums
 
You may have just won ten million dollars! Or, maybe a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic