[Rails] Rails/JavaScript issue

2010-05-23 Thread John Merlino
Hey all, I have an application.js file in my javascripts folder of my Ruby on Rails application. The javascript is just a typical hide/show tabs effect, so when the user clicks on one link, the corresponding div is revealed and the other divs are hidden. Two pages require the javascript. However,

Re: [Rails] Rails/JavaScript issue

2010-05-23 Thread Hassan Schroeder
On Sun, May 23, 2010 at 2:21 PM, John Merlino li...@ruby-forum.com wrote: document.getElementById(tabs) is NULL  var tabListItems = document.getElementById(tabs).childNodes; I think the issue is I'm calling multiple functions on page load (and hence since the one page doesn't have a tabs id