From: "Matthew Hazlett" <hazl...@gmail.com>
Date: Wed, 24 Mar 2010 10:09:38 -0400
Local: Wed, Mar 24 2010 10:09 am
Subject: RE: [Moo] Re: Tooltips / JSON Question
ok, upon closer inspection I see there is an issue with the passed in
parameter. el is not reflecting the caller object. However there is a workaround cheesy as it may be. http://mootools.net/shell/GjkeU/ var myTips = new Tips('.thisisatooltip', { }); Maybe a core dev can look into this problem. -----Original Message-----
From: mootools-users@googlegroups.com [mailto:mootools-users@googlegroups.com] On Behalf Of soundseller Hello Matthew, I have already tried all the stuff you are trying to tell me(in my ...onShow: function(tip,el) { ... I thought that the "hovered element" is being passed to the "onShow" "...onShow: function(tip, el <-hovered element? ) {" but all I get if I try to use el.get("alt") is "Object [object Object] Oh well - sun is shining - gonna get my shorts now - off to the court! On Mar 24, 4:37 pm, "Matthew Hazlett" <hazl...@gmail.com> wrote: > This is all I can suggest to you, all you have to do is read the > <a id="foo" alt="Tennis is fun">Serve</a> > Also look > -----Original Message----- > [mailto:mootools-users@googlegroups.com] On Behalf Of soundseller > Hi, > <a href="#" class="tips" term="Germany">Germany</a> > I thought that according to the docs the above element gets passed as > ...onShow: function(tip,el) { > function and that I could retrieve it like this: > var term = el.getAttribute('term'); > But I get an error: > Object [object Object] has no method 'getAttribute' > So I tried it like this: > var term = $(el).getAttribute('term'); > Doesn't work either. > On Mar 24, 2:50 am, "Matthew Hazlett" <hazl...@gmail.com> wrote: > > I'll give you a hint, pass two variables to get_content one is the tip > > You can also look at this (they may or may not be what you want)http://mootools.net/docs/more/Interface/Tipshttp://mootools.net/docs/co re/Element/Element#Element:gethttp://mootools.net/docs/core/Element/Element# Element:storehttp://mootools.net/docs/core/Element/Element#Element:retrieve > > -----Original Message----- > > [mailto:mootools-users@googlegroups.com] On Behalf Of soundseller > > Hi Matthew, > > As I pointed out in my first post I want to pass a variable to the > > It says in the docs(Yes, I did take a look at them :) "The default > > Thats why I thought I could do sth like this: > > ...onShow: function(tip,el) { > > ...onShow: function(tip,el) { > > But that does not work. > > On Mar 23, 11:29 pm, "Matthew Hazlett" <hazl...@gmail.com> wrote: > > >http://mootools.net/docs/core > > > Instead of: > > > onShow: function(tip,el) { > > > Just use: > > > onShow: function(tip,el) { > > > -----Original Message----- > > > [mailto:mootools-users@googlegroups.com] On Behalf Of soundseller > > > Hi Matthew, > > >http://mootools.net/shell/RVAeU/6/ > > > Hmmm... > > > On Mar 23, 10:01 pm, "Matthew Hazlett" <hazl...@gmail.com> wrote: > > > > When you hover and show the tool tip you are adding an event to > > > >http://mootools.net/shell/RVAeU/5/ > > > > -----Original Message----- > > > > [mailto:mootools-users@googlegroups.com] On Behalf Of soundseller > > > > So I tried sth else, which is terrible code, but maybe you can see > > > >http://mootools.net/shell/RVAeU/4/ > > > > Thnx > > > > To unsubscribe from this group, send email to > > > To unsubscribe from this group, send email to > > To unsubscribe from this group, send email to > To unsubscribe from this group, send email to To unsubscribe from this group, send email to You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||