Re: [Moo] [Slick] how to find element with text

2010-10-18 Thread Sanford Whiteman
> It's so clear now how to create custom pseudo-class/selectors :) Slick for sure rocks. Don't let me take anything away from it. BUT… for something as non-special and intrinsic to XPath as 'value equals string', I always use XPath first in browsers that support it in-place (on the main

[Moo] Re: Writing an AJAX news ticker

2010-10-18 Thread dawnj2sb
Looks like this plugin is a better place to start... http://www.mooforum.net/scripts12/mooquee-mookie-mootools-marquee-updated-t115.html On Oct 18, 9:56 am, Ryan Florence wrote: > 1. Ask an answerable question. > 2. Put your best attempt on jsfiddle.net > 3. Get TONS of help. > > :D > > On Oct 18

[Moo] Re: Writing an AJAX news ticker

2010-10-18 Thread dawnj2sb
Looks like this plugin is a better place to start... http://www.mooforum.net/scripts12/mooquee-mookie-mootools-marquee-updated-t115.html On Oct 18, 9:56 am, Ryan Florence wrote: > 1. Ask an answerable question. > 2. Put your best attempt on jsfiddle.net > 3. Get TONS of help. > > :D > > On Oct 18

Re: [Moo] [Slick] how to find element with text

2010-10-18 Thread Andrea Dessì
Uh ok! :) thank you for the great example ;) It's so clear now how to create custom pseudo-class/selectors :) Again thank you! -- Andrea 2010/10/18 Fábio M. Costa > You can define a pseudo-class that does this. The CSS3 specification > doesn't include a pseudo-class that does this. In fact ev

[Moo] Re: [Slick] how to find element with text

2010-10-18 Thread Rolf -nl
Slick rocks On Oct 18, 6:49 pm, Fábio M. Costa wrote: > You can define a pseudo-class that does this. The CSS3 specification doesn't > include a pseudo-class that does this. In fact even the contains pseudo isnt > into the specification anymore (as seen > herehttp://www.w3.org/TR/css3-selectors/

Re: [Moo] Writing an AJAX news ticker

2010-10-18 Thread Ryan Florence
1. Ask an answerable question. 2. Put your best attempt on jsfiddle.net 3. Get TONS of help. :D On Oct 18, 2010, at 10:32 AM, dawnj2sb wrote: > I am trying to create a news ticker for our site. None of the examples > I've seen have everything I need. I like what Fx.Marquee has to offer, > but I

Re: [Moo] [Slick] how to find element with text

2010-10-18 Thread Fábio M . Costa
You can define a pseudo-class that does this. The CSS3 specification doesn't include a pseudo-class that does this. In fact even the contains pseudo isnt into the specification anymore (as seen here http://www.w3.org/TR/css3-selectors/#content-selectors) but we include it as a plus. To define a ps

[Moo] Writing an AJAX news ticker

2010-10-18 Thread dawnj2sb
I am trying to create a news ticker for our site. None of the examples I've seen have everything I need. I like what Fx.Marquee has to offer, but I also need the news 1) to come from an XML file 2) should loop, not just stop at the end of the list 3) should pause during a mouseover Given this list

Re: [Moo] [Slick] how to find element with text

2010-10-18 Thread Andrea Dessì
yep, but I was trying to find just the one which contains exactly "my text" or get null :) note this: http://www.jsfiddle.net/CVWFV/ how to do that? -- Andrea 2010/10/18 Fábio M. Costa > You can use the "contains" pseudo-class. > > $$('a:contains("my text")') > > -- > Fábio Miranda Costa > fr

Re: [Moo] [Slick] how to find element with text

2010-10-18 Thread Fábio M . Costa
You can use the "contains" pseudo-class. $$('a:contains("my text")') -- Fábio Miranda Costa front...@portalpadroes Globo.com *github:* fabiomcosta *twitter:* @fabiomiranda *ramal:* 6410 On Mon, Oct 18, 2010 at 10:21 AM, Andrea Dessì wrote: > Hi all :) > > I've started with Slick and MooTools

[Moo] [Slick] how to find element with text

2010-10-18 Thread Andrea Dessì
Hi all :) I've started with Slick and MooTools 1.3 just today and here the first question. With the 1.2, I used to do: $("myparent").getElement("a[text=XXX]"); and now with 1.3, I'm trying this: document.id("myparent").getElement("a[^XXX$]"); but sometimes I'm not getting the right one. is this

[Moo] Re: IFrame extended problem!

2010-10-18 Thread cheeaun
I'm having the same problem too. Here are some test cases: MooTools 1.3 - http://jsfiddle.net/cheeaun/xteTn/ MooTools 1.2.5 - http://jsfiddle.net/cheeaun/xteTn/1/ After few hours of csi work, I found that Element.Prototype is returning undefined, which explains why this line 234 in Element.js is