[Moo] Re: OverText Bug ?

2010-02-26 Thread hazlema
Sorry, typo in that ver, use: http://mootools.net/shell/BkTAP/4/ On Feb 27, 1:00 am, hazlema wrote: > When you hide OverText and stop polling isn't it suppose to stay > hidden?  Look at the example. > > http://mootools.net/shell/BkTAP/1/ > > I was trying to add overtext to a form field when the u

[Moo] OverText Bug ?

2010-02-26 Thread hazlema
When you hide OverText and stop polling isn't it suppose to stay hidden? Look at the example. http://mootools.net/shell/BkTAP/1/ I was trying to add overtext to a form field when the user selects the edit option. Other times the text field is updated with an ajax call.

RE: [Moo] Removing items from a select box

2010-02-26 Thread Matthew Hazlett
ohh, thanks for the link, some good info! From: mootools-users@googlegroups.com [mailto:mootools-us...@googlegroups.com] On Behalf Of nwhite Sent: Friday, February 26, 2010 6:34 PM To: mootools-users@googlegroups.com Subject: Re: [Moo] Removing items from a select box http://www.propertyma

Re: [Moo] Removing items from a select box

2010-02-26 Thread nwhite
http://www.propertymaps.com/blog/2008/04/10/dynamically-populating-select-elements-with-javascript/ Explains the issues in greater detail On Fri, Feb 26, 2010 at 5:15 PM, Matthew Hazlett wrote: > Sry that was my bad I forgot to create the class :-) Your way does work > outside of a class, but

RE: [Moo] Removing items from a select box

2010-02-26 Thread Matthew Hazlett
Sry that was my bad I forgot to create the class :-) Your way does work outside of a class, but I need it to work inside a class structure. I updated and broke your example by adding in a class structure. new Class( { initialize: function() { new Element('option',

Re: [Moo] Removing items from a select box

2010-02-26 Thread Thierry bela nanga
your example fixed http://mootools.net/shell/aAJWE/3/ http://mootools.net/shell/qxZHE/2/ 2010/2/26 Fábio M. Costa > it looks like mooshell is throwing some errors :S > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > > > On Fri, Feb 26, 2010 at 5:37 PM, Matthew Haz

Re: [Moo] Re: Pretty text trimming

2010-02-26 Thread Eneko Alonso
That FitText script looks very good, at least the demo (haven't checked the code) On Mon, Feb 22, 2010 at 4:15 PM, Ryan Florence wrote: > Anybody wanna fork http://mootools.net/forge/p/fittext and make it bettwer > with some of this stuff? :D > > On Feb 22, 2010, at 4:15 PM, Barry van Oudtshoo

Re: [Moo] Removing items from a select box

2010-02-26 Thread Fábio M . Costa
it looks like mooshell is throwing some errors :S -- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces On Fri, Feb 26, 2010 at 5:37 PM, Matthew Hazlett wrote: > Yes, it fails with the moo error of: > > setting a property that has only a getter > http://mootools.net/shell/js/lib/

RE: [Moo] Removing items from a select box

2010-02-26 Thread Matthew Hazlett
Yes, it fails with the moo error of: setting a property that has only a getter http://mootools.net/shell/js/lib/mootools-1.2.4-core-nc.js Line 1180 Your way: http://mootools.net/shell/Dcm48/ This also fails, but should work: http://mootools.net/shell/aAJWE/2/ From: mootools-

Re: [Moo] Re: Pretty text trimming

2010-02-26 Thread Roman Land
yeah, designing this thing is not going to be straight forward, this is why its nice to have ryans code already, if its good already I will go with it, otherwise will have to take some time to think about this thing... So if someone finds a need for it and finds this thread send me a message, it w

[Moo] Re: Pretty text trimming

2010-02-26 Thread Rolf -nl
It's a nice idea idea, but when I needed something like this I never had a fixed space (width), as for example the text could span 2 lines with some text before and after.. happy calculating :) On Feb 26, 8:02 pm, Roman Land wrote: > Thats fine, will see how it goes, Thanks! > > > > > > On Fri,

Re: [Moo] Re: Pretty text trimming

2010-02-26 Thread Roman Land
Thats fine, will see how it goes, Thanks! On Fri, Feb 26, 2010 at 4:43 AM, Ryan Florence wrote: > Be advised, this was a quick script that I used in an internal app long ago > that I never tested in IE, I'm pretty sure it doesn't work in any version. > It was sitting around and seemed like a fu

Re: [Moo] Re: Simple question about spinner class

2010-02-26 Thread Aaron Newton
yeah. you're going to have to work that yourself (as you have)... On Thu, Feb 25, 2010 at 11:35 PM, Robert wrote: > Didn't know about it, thanks :) > > But problem is different: I am sending two requests, one after > another. I'm modifying DOM below spinner after each request and I > don't want

Re: [Moo] Removing items from a select box

2010-02-26 Thread Fábio M . Costa
$('ddArtists').adopt(new Element('option', {'html': itm.Text, 'value': item.Value}); doesnt work? -- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces On Fri, Feb 26, 2010 at 2:06 PM, Thierry bela nanga wrote: > this works in IE > > http://mootools.net/shell/qxZHE/ > > > On Fri,

Re: [Moo] Removing items from a select box

2010-02-26 Thread Thierry bela nanga
this works in IE http://mootools.net/shell/qxZHE/ On Fri, Feb 26, 2010 at 5:53 PM, Matthew Hazlett wrote: > Thanks! > > > > But this dosn't work in IE: > > $('ddArtists').adopt(new Option(itm.Text, itm.Value)); > > > > > > > > *From:* mootools-users@googlegroups.com [mailto: > mootools-us...@

RE: [Moo] Removing items from a select box

2010-02-26 Thread Matthew Hazlett
Thanks! But this dosn't work in IE: $('ddArtists').adopt(new Option(itm.Text, itm.Value)); From: mootools-users@googlegroups.com [mailto:mootools-us...@googlegroups.com] On Behalf Of Thierry bela nanga Sent: Friday, February 26, 2010 11:42 AM To: mootools-users@googlegroups.com Subje

Re: [Moo] Removing items from a select box

2010-02-26 Thread Thierry bela nanga
select.empty(); //remove all options select.adopt(new Option(itm.Text, itm.Value)) //add an option On Fri, Feb 26, 2010 at 5:33 PM, hazlema wrote: > Is there a mooish way to remove all items from a select? > This is what I have while it works its not very elegant > > Element.implement({ >

[Moo] Removing items from a select box

2010-02-26 Thread hazlema
Is there a mooish way to remove all items from a select? This is what I have while it works its not very elegant Element.implement({ removeOptions: function () { for (var count = this.options.length - 1; count >= 0; count--) { this.removeChild(this.options[count]);