| Page 1 of 1 | [ 2 posts ] |
|
HI,
I am new to yui and am using yui3. I am trying something pretty basic I think, using toggleClass to hide and unhide a table row. It works fine in Firefox, but not in IE7, 8 or 9, unless I refresh the page. Internet Explorer is at default settings, Java is enabled, what am I missing - is it something basic? Here is the code which I have put in a .js file and linked to in the document head: // Create a YUI sandbox on your page. YUI().use('node','event', function (Y) { // The Node and Event modules are loaded and ready to use. // Your code goes here! var agendaParishrollupT = Y.one('#agendaParish_rollupTrigger'); if(agendaParishrollupT){ agendaParishrollupT.on('click', function(e) { var allHidden = Y.all('#agendaParish .hidden') allHidden.toggleClass('not_hidden_agenda'); }); } }): Thanks, any help is appreciated, pbrain |
|
Hi Paul,
I'm fairly new to YUI as well, but perhaps one of my suggestions might help. You could try addClass & removeClass instead of toggleClass. Or if there's a 'render' method for DataTable, then manually invoke that after changing the css class. |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group