• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

ajaxhtmlContent and checkboxes

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
i am using ajax htmlcontent tag to dynamically display a table body with list of checkboxes. and a select all checkbox. but now the select all is not working.
here is the code for select all. iused prototype js .
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i use document.getElementsByName("select_all"), i see the value as undefined in firebug console. i think since the select_all checkbox is dynamically appearing on the page may be firefox is not recognizing it.
i changed it to document.getElementById() and it is working in bot IE and firefox. thought it might be usefull to someone
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My guess is the element does not have a name on it? Look at the source code of the page with firebug and see if that is the case.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic