RE: [Moo] Element.implement

2011-07-14 Thread Steve Onnis
The reason i asked is because i was looking into some custom form element styling functions so i wanted to be able to do something like Select.style() Input.style() Radio.style() And so on but i will most likely have to do it a different way -Original Message- From: Sanford Whiteman [mai

Re: [Moo] Element.implement

2011-07-14 Thread Sanford Whiteman
If the browser exposes and allows you to further extend HTMLElement extensions such as HTMLTableElement, then yes. But I wouldn't bother with it because you're not going to get full BC and have to implement get('tag') as a failsafe anyway. If you plan to use document.id() everywhere (thus assum

RE: [Moo] Element.implement

2011-07-14 Thread Steve Onnis
Thats what i have been doing but i thought i would ask the question anyway From: Ryan Florence [mailto:rpflore...@gmail.com] Sent: Friday, 15 July 2011 2:02 PM To: mootools-users@googlegroups.com Subject: Re: [Moo] Element.implement afaik you just do this.get('tag') and check it. I'd j

Re: [Moo] Cleaning arrays

2011-07-14 Thread Ryan Florence
',1,2,3'.split(',') creates an empty string for the first element. Array.clean only gets rid of null values and '' != null You'll want to use Array.filter. On Jul 14, 2011, at 6:54 PM, Steve Onnis wrote: > Why would this not work? > > console.log(Array.from((",1,2,3,4").split(",")).clean()) >

Re: [Moo] Element.implement

2011-07-14 Thread Ryan Florence
afaik you just do this.get('tag') and check it. I'd just implement it and plan on using it on just table elements, I wouldn't bother with the check. On Jul 14, 2011, at 9:29 PM, Steve Onnis wrote: > Like if i only want to implement something on a table element for example > > From: Ryan Flore

RE: [Moo] Element.implement

2011-07-14 Thread Steve Onnis
Like if i only want to implement something on a table element for example From: Ryan Florence [mailto:rpflore...@gmail.com] Sent: Friday, 15 July 2011 1:17 PM To: mootools-users@googlegroups.com Subject: Re: [Moo] Element.implement You might have asked "Can you implement methods on only ce

Re: [Moo] Element.implement

2011-07-14 Thread Ryan Florence
You might have asked "Can you implement methods on only certain types of elements" You'll need to do this.get('tag') and check against it in your method. And you might have asked "Can you implement methods on a particular element". In this case, simple append a method to the element. var el =

[Moo] Element.implement

2011-07-14 Thread Steve Onnis
Can you implement things on particular elements only? Or do you have to check the type of element in the implements function and deal with it there? Steve

Re: [Moo] Cleaning arrays

2011-07-14 Thread Paul Saukas
Let me try that again as i forgot a key bit :) Array.from will create the blank string value to fill in for undefined the console out put from your code ["", "1", "2", "3", "4"]. As to why it does that the mootools devs will know better then me. I just know it does it :D On Thu, Jul 14, 2011

Re: [Moo] Cleaning arrays

2011-07-14 Thread Paul Saukas
Because just '' has defind a blank string value. Clen will only remove a NULL or an Undefined value. you will want erase to get the effect you are looking for console.log(Array.from((",1,2,3,4,").split(",")).erase('')) On Thu, Jul 14, 2011 at 8:54 PM, Steve Onnis wrote: > Why would this not wor

[Moo] Cleaning arrays

2011-07-14 Thread Steve Onnis
Why would this not work? console.log(Array.from((",1,2,3,4").split(",")).clean()) The first item is returned as an empty string but i don't want it there at all... Steve

Re: [Moo] Re: Clearing browser-cached content via javascript?

2011-07-14 Thread Thierry bela nanga
you can use window.location.reload(true) to reload the page from the server, https://developer.mozilla.org/en/window.location On Thu, Jul 14, 2011 at 2:37 PM, Eric Patrick wrote: > That technique is workable, but a bit cumbersome in my use case. When > a user first navigates to a Dashboard pag

[Moo] Re: Clearing browser-cached content via javascript?

2011-07-14 Thread Eric Patrick
That technique is workable, but a bit cumbersome in my use case. When a user first navigates to a Dashboard page, the URI pulled would not include the nonce parameter. Easy enough to have the 'refresh now' command add the nonce. However, the user will typically drill down to another page, leaving

Re: [Moo] Know or made any sites made with mootools? Perhaps you could help...

2011-07-14 Thread Nigel Crane
hi i built a poster Website that uses loads of Moo... it just sells posters. www.zip-posters.co.uk if you want to know how anything is done give me a shout nigel On Wed, Jun 15, 2011 at 11:32 AM, codelish wrote: > Hi guys, > > I'm getting ready to launch a little website called "Mootooled > It"

Re: [Moo] Clearing browser-cached content via javascript?

2011-07-14 Thread Sean McArthur
Whenever I wish to break cache, I include a nonce GET parameter. '&nonce=' + (new Date()).getTime() On Jul 13, 2011 5:44 PM, "Eric Patrick" wrote: > I have a "dashboarding" control that fetches a JSON representation of > a SQL cube via Request.JSON. For large cubes, my control has > options.cache