I just ran another test on a basic page:

                <script language='JavaScript' src='prototype.js'></script>
                        function change2()

                        function change()
                            var tbl  = $('test');
                            var rows = tbl.getElementsByTagName('tr');
                            var cells = rows[0].getElementsByTagName('td');
                <table id="test">
                        <tr><td id="cell">This is weird.</td></tr>
                <input type="button" onClick="change()" value="Button 1" />
                <input type="button" onClick="change2()" value="Button 2" />

When I click button 1 I get the error. Button 2 works. However when I
click button 1 after having toggled with button 2 before it even works
with button 1.
Is there something I can do about it?
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to