Loading ...
Sorry, an error occurred while loading the content.

Re: Just another two little questions

Expand Messages
  • Caridy PatiƱo Mayea
    Hey Mic and Dylan: This is one of the main purposes of the Bubbling Extension, See these examples (specially: global behaviors):
    Message 1 of 4 , Oct 3, 2007
    • 0 Attachment
      Hey Mic and Dylan:

      This is one of the main purposes of the Bubbling Extension,

      See these examples (specially: global behaviors):
      http://www.bubbling-library.com/eng/examples

      Best Regards,
      Caridy (caridy at gmail.com)
      http://www.bubbling-library.com/

      --- In ydn-javascript@yahoogroups.com, Michael Heyder <rupnaldo@...> wrote:
      >
      > Hi dylan,
      >
      > O.K.
      >
      > the second part is clear, but I hoped, there would be a special method in yui.
      >
      > I only want add a class active to the activated link. In a step before I#ve to walk through
      all links of the list and deactivate them ;)
      >
      > Nethertheless,
      >
      > thanks
      > Regards
      > Mic
      >
      > someguynameddylan <DylanTheDeveloper@...> wrote: Nope, Can't do
      any of that it's impossible ;)
      >
      > Not sure what you mean by clear all classes in a list, we talking the
      > value of the class attribute for an element or . . .?
      >
      > If it's for an element you can get dirty and just write
      >
      > el.className = '';
      >
      > in a sense setting the class attribute to the empty string.
      >
      > To get all links for a document
      >
      > var allLinks = document.getElementsByTagName('a');
      > var i, link;
      > for( i=0; i < allLinks.length; i+=1){
      > link = allLinks[0];
      >
      > //your behavior overriding code here
      > }
      >
      > --- In ydn-javascript@yahoogroups.com, "rupnaldo" <rupnaldo@> wrote:
      > >
      > > Hi@all
      > >
      > > how can I clear all classes in alist
      > >
      > > and
      > >
      > > can I edit the behaviour of all links. In older projects I
      > > implemented the behaviour class of Ben Nolan to get rid off hardcoded
      > > eventhandlers.
      > >
      > > Ex:
      > > var myrules =
      > > {
      > > 'a': function(a)
      > > {
      > > a.onfocus = _blur;
      > > }
      > > };
      > > Behaviour.register(myrules);
      > > function _blur()
      > > {
      > > this.blur();
      > > }
      > >
      > > Could it be done by yui?
      > >
      > > Regards
      > > Mic
      > >
      >
      >
      >
      >
      >
      >
      > Regards,
      > Mic
      >
      > http://volleyball-portal-duisburg.de
      > http://ruposblog.hafenvolleyballer.net
      > http://hafenvolleyballer.net
      >
      >
      >
      > ---------------------------------
      > Be a better Heartthrob. Get better relationship answers from someone who knows.
      > Yahoo! Answers - Check it out.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.