Re: [Moo] JSON.decode()

2012-12-04 Thread Slik
Show us your JSON you get with AJAX. Seems like JSON is broken. On Tue, Dec 4, 2012 at 5:48 PM, dro66 wrote: > hi. > > I try to use the JSON.decode (). to convert a value returned in AJAX mode. > but I Firebug. returns this error: > > SyntaxError: missing: after property id > > if (window.JSON

Re: [Moo] website crashed. help!

2012-05-15 Thread Slik
Well, it's not even a general JavaScript error. P.S. _pay/pay_start.php (I think the full path could be /home2/myscenes/public_html/_pay/pay_start.php) doesn't exists. On Tue, May 15, 2012 at 9:38 PM, Reginald Miller wrote: > Hi there, was wondering if anyone can help me. The website is > www.my

Re: [Moo] Re: one more question regarding periodical / setInterval

2012-02-29 Thread Slik
ou to read good javascript books ;) On Wed, Feb 29, 2012 at 3:36 PM, hamburger wrote: > thx Slik, > I see that it is working now. > But I do not understand ... > > why is the function call sometimes with () sometimes without? > > >

Re: [Moo] one more question regarding periodical / setInterval

2012-02-29 Thread Slik
Because in the second case your code means 'window.shop.opening()', and perhaps you haven't 'shop' variable in the global scope. Don't do like that. It's 21st century already ;) Try: shop.opening.bind(shop).periodical(1000); // `bind` is not needed always, it depends on your code in your case it

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

2011-06-15 Thread Slik
https://github.com/mootools/mootools-core/wiki/Sites-using-MooTools

Re: [Moo] Re: Problem to call a function in a class

2011-04-29 Thread Slik
closures On Fri, Apr 29, 2011 at 4:20 PM, Tim Wienk wrote: > In short: > A variable you create in one scope is available in all its child scopes: > >    (function(){ >        var something = 1; >        (function(){ >            console.log(something); // Logs 1. >        })(); >    })(); >    co

Re: [Moo] Mootools shirts?

2011-03-17 Thread Slik
Hi. http://mad4milk.spreadshirt.net/ On Thu, Mar 17, 2011 at 5:01 PM, אריה גלזר wrote: > I was looking at all these cool shirts at mootools' shopping cart demo and > was wondering - is there an actual online shop selling these? > > -- > Arieh Glazer > אריה גלזר > 052-5348-561 > http://www.arieh.

Re: [Moo] Destroying element storage

2011-03-17 Thread Slik
Hi. MooTools is taking care about storage: https://github.com/mootools/mootools-core/blob/master/Source/Element/Element.js#L373 On Thu, Mar 17, 2011 at 1:10 PM, Mark wrote: > Hey, > > Does anyone know what happens to an elements storage when the element > id destroyed, will the storage stuff aut

Re: [Moo] Overloading method

2011-03-10 Thread Slik
Oh, you meant polymorphism. Try to use this http://code.google.com/p/polymorph-js/ On Thu, Mar 10, 2011 at 1:01 PM, remram wrote: > Hi everybody, > I searched the web for a solution for my problem but I'm still > unsuccessful. What I would like to do, is to do overloading my methods > in my class

Re: [Moo] Overloading method

2011-03-10 Thread Slik
Star.implement('draw', function(){ /*new code here */ }); If you want to save old method, use Class.refactor from MooTools More: Class.refactor(Star, { draw: function(){ /* new code here */ this.previous(); // old draw method /* new code here */ } }); or just save

Re: [Moo] ART + IE<9 = :(

2011-03-08 Thread Slik
Hi. I had the same problem. Problem was (in my case) in ART constructor. http://jsfiddle.net/slik/twZqK/2/ - it doesn't show anything in IE. http://jsfiddle.net/slik/twZqK/3/ - it works fine. Difference - added canvas size to the ART constructor (see line with "new ART()") On T

Re: [Moo] Looking to get involved

2011-03-04 Thread Slik
Start from here https://github.com/mootools/mootools-core/wiki/How-to-Contribute On Fri, Mar 4, 2011 at 6:01 PM, Roman Land wrote: > Hi Guys, > > Looks like I can finally get around and contribute to mootools, where do I > start? > > Cheers > Roman > > -- > --- > "Make everything as simple as pos

Re: [Moo] Silly Debait

2011-02-25 Thread Slik
Holywar %)

Re: [Moo] getPosition returns an array

2011-02-23 Thread Slik
That's because getChildren returns ElementS object (what means - an array of elements). http://jsfiddle.net/p6s9s/4/ On Wed, Feb 23, 2011 at 4:40 PM, woomla wrote: > For some reason, getPosition returns an array in this example: > http://jsfiddle.net/p6s9s/3/. > > Is this a bug? > Or is the docu

Re: [Moo] js and css class definition

2011-02-09 Thread Slik
http://jsfiddle.net/ndHdd/7/ On Wed, Feb 9, 2011 at 11:31 AM, Robert wrote: > is there any way to read styles from class definitions? > Here it is an example: http://jsfiddle.net/moort/ndHdd/ > I was thinking about making tween from one color to another - but I > don't really know the real color

Re: [Moo] Problem with each(function)

2011-02-01 Thread Slik
Also, when you will remove this tr/td pare, there will be another error, that error throws because you selecting also tr from thead also, where are no tds. So you also should add if(!row.length) return; to your each. On Tue, Feb 1, 2011 at 2:27 PM, Slik wrote: > You have one tr/td p

Re: [Moo] Problem with each(function)

2011-02-01 Thread Slik
You have one tr/td pare outside tbody. On Tue, Feb 1, 2011 at 2:16 PM, hamburger wrote: > Hello, > in the following code i get an error that row[1] is not definded. > > var rows = $('theTable').getElements('tr').getElements('td'); > > rows.each( function(row,number){ >            row.setStyle('di

Re: [Moo] Mootools outside of the browser - A 2D Game engine

2011-01-20 Thread Slik
nice work! On Thu, Jan 20, 2011 at 1:06 PM, fuzzy spoon wrote: > Hi guys! > > I love mootools and what it does for javascript, a long time browser user. > A while ago i started a 2D game where i chose v8 engine as my scripting > engine choice , so naturally mootools makes an appearance. The video

Re: [Moo] newbie problem, detect browser

2011-01-18 Thread Slik
I presume (Browser.ie && Browser.version <= 6) should work On Tue, Jan 18, 2011 at 6:52 PM, refreegrata wrote: > Hello list. I need do something for the browser IE version <= 6. How > Can detect this? > > In the documentation I see the boolean Browser.ie6, but what happens > when the browser vers

Re: [Moo] MooGooMaps = MooTools + GoogleMaps javascript API

2010-12-28 Thread Slik
As I see, you are implementing Events into your GoogleMapCreator. So, would be better to use this.fireEvent instead this.click|dblClick|drag|etc() On Tue, Dec 28, 2010 at 4:32 PM, Ciul wrote: > Hi pals. > > This time I introduce you another script I've made to easy the use of > GoogleMaps javascr

Re: [Moo] Where to find supported event names?

2010-11-24 Thread Slik
https://github.com/mootools/mootools-core/blob/master/Source/Element/Element.Event.js#L137 You can add unsupported event to the list Element.NativeEvents.input = 1; it will work if browser support this event On Wed, Nov 24, 2010 at 11:41 AM, Maxim Lacrima wrote: > Hi! > > I might be missing some

Re: [Moo] Mootools.net down?

2010-11-17 Thread Slik
Works for me On Wed, Nov 17, 2010 at 6:21 PM, rasmusfl0e wrote: > Anyone else having trouble accessing mootools.net?

Re: [Moo] A Mootools Mobile Library?

2010-10-06 Thread Slik Jay
http://github.com/cpojer/mootools-mobile also was mootouch, but http://mootouch.net now redirects to sencha.com and Moobile project in work, but it's still closed On Wed, Oct 6, 2010 at 1:46 PM, אריה גלזר wrote: > Is there any ongoing work on a Mootools mobile extension? If so, where can I > find

Re: [Moo] Re: (1.3) fireEvent > triggerEvent > fireEvent?

2010-09-17 Thread Slik Jay
> I'm a mootools user for several years (since 1.2 release) and only now > I realized that there is a private dev list. I wasn't able to ask an > invite because I wasn't aware this list exists. So there is no entry > point for average developer. What average developer would do if he > want to know

Re: [Moo] Delegation custom events

2010-09-10 Thread Slik Jay
I wrote small plugin for mootools more's delegation http://jsfiddle.net/slik/vMeNG/ On Fri, Sep 10, 2010 at 6:09 PM, Savageman wrote: > Hello, > > I would like to delegate some custom events. Is that possible? > > I have something like that: > > var $main = document.id

Re: [Moo] Add to list at first position

2010-08-17 Thread Slik Jay
new Element('li', {id: 'aaa',html:'Nieuws uit uw regio:'}).inject($$('#nav ul')[0], 'top') On Tue, Aug 17, 2010 at 12:35 PM, frederik heyninck wrote: > I have this piece of code > > $$('#nav ul')[0].adopt(new Element('li', {id: 'aaa',html:'Nieuws uit > uw regio:'})); > > And i want this li elemen

Re: [Moo] click event bubbling

2010-08-11 Thread Slik Jay
the div. > 2) if you want a pointer to the link you added the event to, guess what, you > already have one. > var link = $('link'); > link.addEvent('click', function(){ $("debug").innerHTML = link.get('id'); > }); > > > On Wed, Aug 11,

Re: [Moo] click event bubbling

2010-08-11 Thread Slik Jay
i guees, he meant how to make target = link (yes, this = link) when you clicking on divs On Wed, Aug 11, 2010 at 6:12 PM, Ryan Florence wrote: > I'm not understanding what you want / expect to happen. > > Click one of he divs and the event fires. > Click the link, but not a div, and the event fir

Re: [Moo] Re: spinner

2010-08-10 Thread Slik Jay
http://jsfiddle.net/slik/ksk3j/2/ var sp was not in queryMedici's scope

Re: [Moo] spinner

2010-08-10 Thread Slik Jay
Try var sp = new Spinner(document.body); // or another element (btw, document.body uses by default, as I know) read http://mootools.net/docs/more/Interface/Spinner

Re: [Moo] 1.3 and more (namely URI)

2010-07-19 Thread Slik Jay
post it to http://mootools.lighthouseapp.com/dashboard On Mon, Jul 19, 2010 at 8:57 PM, brook wrote: > Hey guys.  I am trying to use 1.3 and URI (for which i am using 1.2´s > more). > > 1) is this dumb, bad, or unnecessary? > 2) its not working.  i couldn´t use jsfiddle since this is a 1.3 issue

Re: [Moo] [MooContentAssist] What to implement now?

2010-07-06 Thread Slik Jay
Cool :) Now we need autogeneration for config from javascript/php/python/etc :) On Tue, Jul 6, 2010 at 11:30 AM, Andrea Dessì wrote: > Hi all, > > MooContentAssist is my first plugin and it's still under > development :) > > It adds a content assist functionality to textareas, what I'm trying > t

Re: [Moo] MooTools Canvas Library

2010-06-01 Thread Slik Jay
Tried some days ago. Want games on moocanvas :) On Tue, Jun 1, 2010 at 6:24 PM, Oskar Krawczyk wrote: > Nope. It's Mtillmann's - http://github.com/Mtillmann > > Still, a very cool thing, can't wait to try it out. > O. > ___ > > Oskar Krawczyk > http://nouincolor.com > > > On Tue, Jun 1, 2010 at 4

Re: [Moo] Re: I started a simple blog.

2010-05-31 Thread Slik Jay
http://jsfiddle.net/Jm2Hb/19/ On Mon, May 31, 2010 at 6:29 PM, Michael Ficarra wrote: > "" (an empty string) is a falsy value. I think the original poster of > the one-line version believed as I did that the nil function the OP > was using was determining falsiness (which is pretty useless in the

Re: [Moo] How can I contribute to the Mootools project?

2010-05-17 Thread Slik Jay
http://wiki.github.com/mootools/mootools-core/how-to-contribute On Mon, May 17, 2010 at 10:09 AM, Roman Land wrote: > Hi, > > I would like to get involved with the mootools project, please let me know > if / how I can help... > > Thanks, > Roman > > -- > --- > "Make everything as simple as possib

Re: [Moo] Re: addEvent and webkitTransitionEnd issue

2010-05-11 Thread Slik Jay
Just add it to your code: Element.NativeEvents.webkitTransitionEnd = 1; Element.NativeEvents.webkitAnimationEnd = 1; And then you will can use mootools' addEvent $('selector').addEvent('webkitTransitionEnd', function(){ /* blah blah */ }); $('selector').addEvent('we

Re: [Moo] mocha ui or similar?

2010-04-14 Thread Slik Jay
You can try jxlib ( http://jxlib.org/ ), mif ( http://mifjs.net/ ) > On Tue, Apr 13, 2010 at 1:27 PM, keeger wrote: >> >> I really like the way mocha ui is laid out and the look of it. >> However, I've noticed it's not really under active development, and I >> hear it has bugs with IE 8. >> >> I'

Re: [Moo] Add class to all img's in div

2010-03-11 Thread Slik Jay
;imageContainer').getElements('img').addClass('image' + x); > > Any collection of elements returned by MooTools is extended with the Element > methods: http://mootools.net/docs/core/Element/Element#dollars > > On 11/03/2010 9:39 PM, Slik Jay wrote: >> >>

Re: [Moo] Add class to all img's in div

2010-03-11 Thread Slik Jay
Try this var X=0; $('imageContainer').getElements('img').each(function(img) { img.addClass('image'+X); }); On Thu, Mar 11, 2010 at 3:27 PM, Aske wrote: > Hi guys. > > Beginner question here, trying to add a class attribute "class" with > the value "imageX", where x is a variable, to all img

Re: [Moo] Date Bug ?

2010-03-05 Thread Slik Jay
today.set('day', 1); // ? On Fri, Mar 5, 2010 at 11:58 PM, hazlema wrote: > I'm using the more extensions for Date and found something > interesting: > > today = Date.parse('3/5/2010'); > today.set("date") = 1; > > also tried: > today.set("day") = 1; > > The docs suggest you are able to reset the

Re: [Moo] domready problem

2010-03-01 Thread Slik Jay
window.addEvent('domready', testDomready()); // wrong window.addEvent('domready', testDomready); // good On Mon, Mar 1, 2010 at 3:54 PM, Chrono wrote: > Hello everybody, > > I have a strange behaviour in my dodument: > > > ...mootools.js ... > > > // > function testDomready(){ >  

Re: [Moo] question about this object

2010-01-15 Thread Slik Jay
Maybe FF supports method getParent directly, IE have not this method. function $() creats it for IE On Fri, Jan 15, 2010 at 5:12 PM, silent wrote: > hi list, > > I found this piece of code works different in IE6 and firefox3.5: > >      function hook(el) { > //        var sub_id = $('sub_id'); //

Re: [Moo] Extending / Implementing class instance during initialization?

2009-12-16 Thread Slik Jay
; // added 'extended' method test: http://mooshell.net/zUe8L/ On Wed, Dec 16, 2009 at 4:59 PM, Roman Land wrote: > When you wrote: > IExtend.implement(new dynamicClass); > > How did you know to use the "new .."? > > Thanks! > > On Wed, Dec 16, 2009 a

Re: [Moo] Extending / Implementing class instance during initialization?

2009-12-16 Thread Slik Jay
@Roman sorry, but I don't understand your question :) On Wed, Dec 16, 2009 at 4:12 PM, Roman Land wrote: > Thanks Fabio, but that didnt work =/ > > Slik, although you solution worked I triend looking at the code but I dont > understand how you knew to create an instance of the

Re: [Moo] Extending / Implementing class instance during initialization?

2009-12-16 Thread Slik Jay
>> I think you need Extends. >> >> http://mooshell.net/sHakv/1/ >> >> -- >> Fábio Miranda Costa >> Solucione Sistemas >> Engenheiro de interfaces >> >> >> On Wed, Dec 16, 2009 at 9:09 AM, Slik Jay wrote: >>> >>> Someth

Re: [Moo] Extending / Implementing class instance during initialization?

2009-12-16 Thread Slik Jay
Something* On Wed, Dec 16, 2009 at 1:09 PM, Slik Jay wrote: > http://mooshell.net/sHakv/ > Thomesing like this ? > > On Wed, Dec 16, 2009 at 12:52 PM, Roman Land wrote: >> Hi, >> >> Is there any way to extend / implement a class while initializing it? >>

Re: [Moo] Extending / Implementing class instance during initialization?

2009-12-16 Thread Slik Jay
http://mooshell.net/sHakv/ Thomesing like this ? On Wed, Dec 16, 2009 at 12:52 PM, Roman Land wrote: > Hi, > > Is there any way to extend / implement a class while initializing it? > example: > > ExtendMe = new Class ({ >   'doIt': function() {'console.log('i did it')} > }) > > IExtend = new Clas

Re: [Moo] Brain Death: or Why does this not work.

2009-12-15 Thread Slik Jay
@Paul i wrote "error", i meant "errors" :) we all writes with typos On Tue, Dec 15, 2009 at 5:39 PM, Paul Saukas wrote: > sigh, Yah today is going to be rough ... Sorry Slik  on the name typo :) > > On Tue, Dec 15, 2009 at 10:27 AM, Paul Saukas wrote: >> >

Re: [Moo] Brain Death: or Why does this not work.

2009-12-15 Thread Slik Jay
You have many error in your code. I fixed it http://mooshell.net/xhy6v/ On Tue, Dec 15, 2009 at 5:19 PM, Paul Saukas wrote: > Ok, simple one for you all. > > No matter what I try i can not seem to get the value of a select box. > Here is a quick example of what i am doing , be it right or wrong.

Re: [Moo] Issue with set type and on Chrome & Safari

2009-12-15 Thread Slik Jay
WebKit using all s as , that's WebKit's problem.. On Tue, Dec 15, 2009 at 3:47 PM, pbleuse wrote: > > Hi all, > > nice to meet you :jumping: > > I think I have found issue with mootools core 1.2.4 :working: > when you want use set, or setProperty for HTML tag to define 'type' > attribute, > Same

Re: [Moo] URI setData('foo', 'bar') sets an object in stead of 'foo'.

2009-12-10 Thread Slik Jay
Just use uri.setData({'foo': 'bar'}); http://mooshell.net/T79Bu/ On Thu, Dec 10, 2009 at 5:18 PM, woomla wrote: > Hi, > > When I execute the example in the documentation: > myURI.setData('foo', 'bar'); //sets foo=bar in the query string > > I expect: > http://mooshell.net/_display/light/omd.html