Hello,
I'm getting the following error when hovering over my elements:
b.getParent is not a function
[Break on this error] this.timer=this.hide.delay(this.options....f(!b)
{return;}parentNode=b.getParent();\n
this is the code I use:
setTips: function() {
var els = $$('.ellipsis a');
if (els.length < 1) return false;
new Tips(els, {
text: function(item) {
var str = item.get('href');
str = str.substring(str.lastIndexOf('/')+12);
return str.replace('_',' ');
}
});
}
this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it. It's back on -trunk now, so you can download the fix from github. Expect 1.2.4.3 maybe next week.
On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> Hello, > I'm getting the following error when hovering over my elements: > b.getParent is not a function > [Break on this error] this.timer=this.hide.delay(this.options....f(!b) > {return;}parentNode=b.getParent();\n
> this is the code I use: > setTips: function() { > var els = $$('.ellipsis a'); > if (els.length < 1) return false;
Thanks Aaron
Sorry for sounding stupid - but how would I go about downloading it
from github - as I'm using the compressed more file, I guess it's not
just copy/paste the new Tips code?
On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote:
> this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it.
> It's back on -trunk now, so you can download the fix from github. Expect
> 1.2.4.3 maybe next week.
> On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > Hello,
> > I'm getting the following error when hovering over my elements:
> > b.getParent is not a function
> > [Break on this error] this.timer=this.hide.delay(this.options....f(!b)
> > {return;}parentNode=b.getParent();\n
> > this is the code I use:
> > setTips: function() {
> > var els = $$('.ellipsis a');
> > if (els.length < 1) return false;
Something else I don't understand but maybe that's related to the bug:
when I hovering over the links, the first time the tip shows the title
or href of that link - afterwards, the tip is not updated anymore and
always shows the first text?!
On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote:
> this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it.
> It's back on -trunk now, so you can download the fix from github. Expect
> 1.2.4.3 maybe next week.
> On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > Hello,
> > I'm getting the following error when hovering over my elements:
> > b.getParent is not a function
> > [Break on this error] this.timer=this.hide.delay(this.options....f(!b)
> > {return;}parentNode=b.getParent();\n
> > this is the code I use:
> > setTips: function() {
> > var els = $$('.ellipsis a');
> > if (els.length < 1) return false;
the default text is the 'rel' attribute and if that's not defined, the 'href' attribute (else, if neither present, empty). the caption comes from the 'title'
note that it removes the title attribute in the process to prevent the default browser-based tip from showing.
I don't know about your issues. can you make a mooshell that demonstrates the problem?
To download and use the one in trunk, go to github and browse to the file and save the "raw" version of it. Then just include it after your built mootools library. this is temporary; just until we release the fix officially.
On Sat, Nov 7, 2009 at 4:54 PM, mmjaeger <mmjae...@gmail.com> wrote:
> Something else I don't understand but maybe that's related to the bug: > when I hovering over the links, the first time the tip shows the title > or href of that link - afterwards, the tip is not updated anymore and > always shows the first text?!
> On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote: > > this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it. > > It's back on -trunk now, so you can download the fix from github. Expect > > 1.2.4.3 maybe next week.
> > On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > > Hello, > > > I'm getting the following error when hovering over my elements: > > > b.getParent is not a function > > > [Break on this error] this.timer=this.hide.delay(this.options....f(!b) > > > {return;}parentNode=b.getParent();\n
> > > this is the code I use: > > > setTips: function() { > > > var els = $$('.ellipsis a'); > > > if (els.length < 1) return false;
> the default text is the 'rel' attribute and if that's not defined, the
> 'href' attribute (else, if neither present, empty). the caption comes from
> the 'title'
> note that it removes the title attribute in the process to prevent the
> default browser-based tip from showing.
> I don't know about your issues. can you make a mooshell that demonstrates
> the problem?
> To download and use the one in trunk, go to github and browse to the file
> and save the "raw" version of it. Then just include it after your built
> mootools library. this is temporary; just until we release the fix
> officially.
> On Sat, Nov 7, 2009 at 4:54 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > Something else I don't understand but maybe that's related to the bug:
> > when I hovering over the links, the first time the tip shows the title
> > or href of that link - afterwards, the tip is not updated anymore and
> > always shows the first text?!
> > On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote:
> > > this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it.
> > > It's back on -trunk now, so you can download the fix from github. Expect
> > > 1.2.4.3 maybe next week.
> > > On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > > > Hello,
> > > > I'm getting the following error when hovering over my elements:
> > > > b.getParent is not a function
> > > > [Break on this error] this.timer=this.hide.delay(this.options....f(!b)
> > > > {return;}parentNode=b.getParent();\n
> > > > this is the code I use:
> > > > setTips: function() {
> > > > var els = $$('.ellipsis a');
> > > > if (els.length < 1) return false;
-----Original Message----- From: mmjaeger [mailto:mmjae...@gmail.com] Sent: Sunday, 8 November 2009 2:13 PM To: MooTools Users Subject: [Moo] Re: new Tips: struggling with error
actually the script works in Safari the way it is - just fails in Firefox, but I'm sure you already know that.
by the way, did you see my other post regarding the table sorting still no luck with it - no error - nothing
this is the function I'm using:
setTableSort: function() { var el = $('tblDownload'); if ($defined(el)) return false; var table = new HtmlTable(el, { sortIndex: 0, parsers: ['string', 'string', 'numberLax', 'date'], classHeadSort: 'expand', classHeadSortRev: 'collapse', sortable: true, onSort: function() { console.log('done sorting'); } }); table.sort(2); },
once again, thank you so much for your help and patience!!!!!! On Nov 7, 6:07 pm, Aaron Newton <aa...@iminta.com> wrote: > the default text is the 'rel' attribute and if that's not defined, the > 'href' attribute (else, if neither present, empty). the caption comes from > the 'title'
> note that it removes the title attribute in the process to prevent the > default browser-based tip from showing.
> I don't know about your issues. can you make a mooshell that demonstrates > the problem?
> To download and use the one in trunk, go to github and browse to the file > and save the "raw" version of it. Then just include it after your built > mootools library. this is temporary; just until we release the fix > officially.
> On Sat, Nov 7, 2009 at 4:54 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > Something else I don't understand but maybe that's related to the bug: > > when I hovering over the links, the first time the tip shows the title > > or href of that link - afterwards, the tip is not updated anymore and > > always shows the first text?!
> > On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote: > > > this is a bug that was fixed for 1.2.4.2 but I accidentally reverted it. > > > It's back on -trunk now, so you can download the fix from github. Expect > > > 1.2.4.3 maybe next week.
> > > On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > > > Hello, > > > > I'm getting the following error when hovering over my elements: > > > > b.getParent is not a function > > > > [Break on this error] this.timer=this.hide.delay(this.options....f(!b) > > > > {return;}parentNode=b.getParent();\n
> > > > this is the code I use: > > > > setTips: function() { > > > > var els = $$('.ellipsis a'); > > > > if (els.length < 1) return false;
> once again, thank you so much for your help and patience!!!!!!
> On Nov 7, 6:07 pm, Aaron Newton <aa...@iminta.com> wrote:
> > the default text is the 'rel' attribute and if that's not defined, the
> > 'href' attribute (else, if neither present, empty). the caption comes from
> > the 'title'
> > note that it removes the title attribute in the process to prevent the
> > default browser-based tip from showing.
> > I don't know about your issues. can you make a mooshell that demonstrates
> > the problem?
> > To download and use the one in trunk, go to github and browse to the file
> > and save the "raw" version of it. Then just include it after your built
> > mootools library. this is temporary; just until we release the fix
> > officially.
> > On Sat, Nov 7, 2009 at 4:54 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > > Something else I don't understand but maybe that's related to the bug:
> > > when I hovering over the links, the first time the tip shows the title
> > > or href of that link - afterwards, the tip is not updated anymore and
> > > always shows the first text?!
> > > On Nov 7, 4:15 pm, Aaron Newton <aa...@iminta.com> wrote:
> > > > this is a bug that was fixed for 1.2.4.2 but I accidentally reverted
> it.
> > > > It's back on -trunk now, so you can download the fix from github.
> Expect
> > > > 1.2.4.3 maybe next week.
> > > > On Sat, Nov 7, 2009 at 4:11 PM, mmjaeger <mmjae...@gmail.com> wrote:
> > > > > Hello,
> > > > > I'm getting the following error when hovering over my elements:
> > > > > b.getParent is not a function
> > > > > [Break on this error]
> this.timer=this.hide.delay(this.options....f(!b)
> > > > > {return;}parentNode=b.getParent();\n
> > > > > this is the code I use:
> > > > > setTips: function() {
> > > > > var els = $$('.ellipsis a');
> > > > > if (els.length < 1) return false;
I'm still struggling with the Tips - updated the latest source from
github - one thing that's confusing is the documentation: the title
options is supposed to be used for the title - however, hover over my
links shows the content or the rel tag - if I change it to text, I get
the correct text, at least in Safari - Firefox still fails - I get the
tip text of the first link and then it just keeps that text - it's not
updated.
Here again is my code:
setTips: function() {
var els = $$('.ellipsis a');
if (els.length == 0) return false;
var trim = 1;
new Tips(els, {
text: function(item) {
var str = item.get('title');
var reg = /_/g;
str = str.substring(str.lastIndexOf('/')+trim);
return str.replace(reg,' ').toUpperCase();
}
});
}
> I'm still struggling with the Tips - updated the latest source from
> github - one thing that's confusing is the documentation: the title
> options is supposed to be used for the title - however, hover over my
> links shows the content or the rel tag - if I change it to text, I get
> the correct text, at least in Safari - Firefox still fails - I get the
> tip text of the first link and then it just keeps that text - it's not
> updated.
> Here again is my code:
> setTips: function() {
> var els = $$('.ellipsis a');
> if (els.length == 0) return false;
> var trim = 1;
> new Tips(els, {
> text: function(item) {
> var str = item.get('title');
> var reg = /_/g;
> str = str.substring(str.lastIndexOf('/')+trim);
> return str.replace(reg,' ').toUpperCase();
> }
> });
> }
Sorry that 1.2.4.3 has been held up. I've been ill for the last 4 or 5 days
and now I'm at this Rich Web Experience conference (note: transcontinental
travel is not a good cold remedy). If I get some time tonight I'll try and
work on it. Maybe this week. We'll see. Depends on how much spare time I
have here and how well this cold lets me focus on things for more than a few
moments.
This forum, however, is not the best place to file bugs. I can't remember
every thread. That's what lighthouse is for.
So please, go to lighthouse, open a ticket for your issues, if at all
possible, please, please create a mooshell that demonstrates the problem
and, if you have time, see if you can't figure out the nature of the bug and
a fix for. Finding the bug itself and fixing it is beyond the call of duty,
but it does help us out a lot.
On Thu, Dec 3, 2009 at 5:51 AM, tross <r...@200sx.org.uk> wrote:
> I'm having trouble with the tips also, any news on a release date for
> 1.2.4.3
> yet?
> cheers
> mmjaeger wrote:
> > I'm still struggling with the Tips - updated the latest source from
> > github - one thing that's confusing is the documentation: the title
> > options is supposed to be used for the title - however, hover over my
> > links shows the content or the rel tag - if I change it to text, I get
> > the correct text, at least in Safari - Firefox still fails - I get the
> > tip text of the first link and then it just keeps that text - it's not
> > updated.
> > Here again is my code:
> > setTips: function() {
> > var els = $$('.ellipsis a');
> > if (els.length == 0) return false;
> > var trim = 1;
> > new Tips(els, {
> > text: function(item) {
> > var str = item.get('title');
> > var reg = /_/g;
> > str =
> str.substring(str.lastIndexOf('/')+trim);
> > return str.replace(reg,' ').toUpperCase();
> > }
> > });
> > }