[ 2 posts ]

paul douglas heaslip

  • Username: pbrain
  • Joined: Wed Feb 29, 2012 12:30 am
  • Posts: 1
  • Offline
  • Profile

yui3 beginner - internet explorer problem - help!

Post Posted: Wed Feb 29, 2012 12:49 am
+0-
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

Daniel Ji

  • Username: humblepie
  • Joined: Tue Feb 28, 2012 10:30 am
  • Posts: 147
  • GitHub: humblepie
  • Gists: humblepie
  • Offline
  • Profile

Re: yui3 beginner - internet explorer problem - help!

Post Posted: Mon Mar 19, 2012 2:27 pm
+0-
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.
  [ 2 posts ]
Display posts from previous:  Sort by  
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