[Moo] Re: Best practice: using hasClass or store/retrieve?

2009-07-01 Thread Fábio Costa
i dont use classes for determining what i should do, i use to style and to mark groups so i can use a class selector to get them. I think you should use the storage. But thats my own opinion of course, wait for other people opinion. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.co

[Moo] Re: Mootools Core and More on mootoos.net?

2009-06-30 Thread Fábio Costa
thats a very good idea. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Jun 30, 2009 at 7:31 PM, Eneko Alonso wrote: > > The only reason I could think for not including the latest Mootools > Core and ALL the More on Mootools.net is for performance. > If that is a real

[Moo] Re: Whats the best way to 'escape' the value of an attribute

2009-06-30 Thread Fábio Costa
; equivalent, > > > 2009/6/30 Fábio Costa > >> but if you use htmlentities on an attribute and you alert it you wont get >> the correct representation, for example: >> >> >> >> alert($$('a')[0].get('title')); >> >> it wo

[Moo] Re: Whats the best way to 'escape' the value of an attribute

2009-06-30 Thread Fábio Costa
at 1:09 PM, Thierry bela nanga wrote: > you may still have problem even is " or ' is escaped, > what I do is I used " in html and in the string, I replace " by ' > > > > On Tue, Jun 30, 2009 at 4:44 PM, Thierry bela nanga wrote: > >> > htmlenti

[Moo] Re: getStyle() in Opera and IE

2009-06-30 Thread Fábio Costa
If i were were you i would define a class with text-family, text-size, etc... and set it to the text you want, then set the text to the text-field and set its value to the correct text. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Jun 30, 2009 at 11:59 AM, ankit

[Moo] Re: Whats the best way to 'escape' the value of an attribute

2009-06-30 Thread Fábio Costa
t; > On 29 Jun 2009, at 21:32, Fábio Costa wrote: > > What i wanna know is what you guys do when you have to put a server-side > string on the attribute of a html node. > I mean if the string haves a " it will close the attribute value and will > bug your html. > > Cya

[Moo] Re: isVisible in mootools

2009-06-29 Thread Fábio Costa
d programmers ;) No objections. > > > > 2009/6/30 Fábio Costa > > > > > > > > > This is faster than using regex, totally faster. > > > > >http://gist.github.com/137880 > > > > > Fábio Miranda Costa > > > Engenheiro de Computa

[Moo] Re: isVisible in mootools

2009-06-29 Thread Fábio Costa
t; On Mon, Jun 29, 2009 at 3:42 PM, cheeaun (via Nabble) < > ml-user%2b57134-891164...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3177866&i=0> > > wrote: > >> >> Alright, I've updated the code, plus the complementary :) >> http://

[Moo] Whats the best way to 'escape' the value of an attribute

2009-06-29 Thread Fábio Costa
What i wanna know is what you guys do when you have to put a server-side string on the attribute of a html node. I mean if the string haves a " it will close the attribute value and will bug your html. Cya. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com

[Moo] Re: Similar functionality to Request.HTML in mootools 1.11

2009-06-29 Thread Fábio Costa
onComplete: function(responseText){ var div = new Element('div', responseText); // here you have the body element div.getElement('body'); } try this. im not sure how its done in 1.11 (i mean if its new Element, getElements). But the logic should work on 1.11, just adapt the functions.

[Moo] Re: mootools plugins in wordpress

2009-06-29 Thread Fábio Costa
yep nice to see this. Thanks! Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 29, 2009 at 12:11 PM, Oskar Krawczyk wrote: > Great work Daiv! Love to see folks promote Moo for masses. > > If you have a Mootools script which you would like > > converted into a Word

[Moo] Re: isVisible in mootools

2009-06-29 Thread Fábio Costa
this is the newest code, this is kind of ugly. http://dev.jquery.com/changeset/6413 Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 29, 2009 at 10:56 AM, Angel Guzman Maeso wrote: > Maybe, you can save some code with complementary: > > Element.implement({ > > > >

[Moo] Re: isVisible in mootools

2009-06-28 Thread Fábio Costa
Theres a better method: Element.implement({ isVisible: function(){ return (this.offsetWidth > 0 || this.offsetHeight > 0); } }); Mootools doesnt have it on core, but this can be discussed. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 29, 2009 at 12:1

[Moo] Re: help port jQuery :tabbable/:focusable

2009-06-27 Thread Fábio Costa
element.get('tabindex') ouldnt work since this is a very buggy attribute theres an if on theyrr attr function if the attribute is tabindex, so you would need need to create a get for tabindex. this focusable thing is a very hard one, since you can define what is focusable or not on your browser...

[Moo] Re: unload bug in ie8

2009-06-25 Thread Fábio Costa
Thanks! Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Thu, Jun 25, 2009 at 6:37 PM, Paul Spencer wrote: > > I'm going to file this in lighthouse. Modifying the purge method to set > storage and collected to empty objects instead of null fixes the problem. > > Cheers >

[Moo] Re: what webdev / js IDEs do you use

2009-06-25 Thread Fábio Costa
Theres this textmate clone too:http://intype.info/home/index.php It is a little new in the area but looks cool. e-texteditor is ok but then it started to get too slow... dont know why... And font renderization is cooler on intype than in e-texteditor. But if i were a windows user i would really u

[Moo] Re: IE8 reads elements' attributes wrongly on MooTools 1.11

2009-06-24 Thread Fábio Costa
Costa Engenheiro de Computação http://meiocodigo.com 2009/6/23 Fábio Costa > I do understand your point, and will try to do something solid. > Thanks again. > > Fábio Miranda Costa > Engenheiro de Computação > http://meiocodigo.com > > > On Tue, Jun 23, 2009 at 11:26

[Moo] Re: fade() then hide?

2009-06-24 Thread Fábio Costa
include extras that may be useful to you but might not > be > > useful to others. > > > > -core's job is not to include every possible bit of functionality we can > > imagine, but rather to enable us to author such things ourselves. > > > > 2009/6/24 Fáb

[Moo] Re: fade() then hide?

2009-06-24 Thread Fábio Costa
Sorry second code to show is: $('element').setStyle('display', 'block'); fxTween.start(1); Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com 2009/6/24 Fábio Costa > @anutron > > Hes asking why it is not in core. > I think thats

[Moo] Re: fade() then hide?

2009-06-24 Thread Fábio Costa
@anutron Hes asking why it is not in core. I think thats because we should always avoid the use of theses kind of shortcuts. You can create a Fx.Tween with property opacity and than chain a 'display none'. var fxTween = Fx.Tween('element', {'property': 'opacity'}); fxTween.start(0).chain(functi

[Moo] Re: fade() then hide?

2009-06-24 Thread Fábio Costa
>> How should I run fade() then hide the element? (display: none;) .fade(0); >> Also wondering, why are hide() and show() not in Core? because there is .fade(0) and fade(1)? dont know hehe cya Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, Jun 24, 2009 at

[Moo] Re: Check to see if Cookies are enabled

2009-06-24 Thread Fábio Costa
no need to reload the page, write then read, if the value is there its working... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, Jun 24, 2009 at 1:55 PM, Thierry bela nanga wrote: > - write a cookie > - reload the page > > - read the cookie, if no value then cookies a

[Moo] Re: Event.Stop()

2009-06-24 Thread Fábio Costa
e.stop();doenst work? It should prevent others added events from firing. Doesnt it? If not it should be added on next version. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, Jun 24, 2009 at 11:37 AM, Brandon wrote: > > Right, I didn't need a work around, I'm just c

[Moo] Re: IE8 bug with Element.clone()

2009-06-23 Thread Fábio Costa
projectmiso, you are using version 1.2.0 of mootools.try upgrading... its in 1.2.3 now. It passes on all clone tests... gimme feedback if it is working now, please. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Jun 23, 2009 at 11:10 AM, lme...@gmail.com wrote: > >

[Moo] Google speed

2009-06-23 Thread Fábio Costa
A very nice site for speed performance on the web. http://code.google.com/speed/ Some cool information, for lots of technologies, not only javascript. Just wanted to share. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com

[Moo] Re: Blogging application using mootools?

2009-06-23 Thread Fábio Costa
hes asking about blogging engines. Joomla, AFAIK, is a CMS, which of course can be used to make a blog... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Jun 23, 2009 at 11:16 AM, bluff wrote: > > Uthando Cms does too. > > http://github.com/vincentbluff/Uthando-CMS/t

[Moo] Re: IE8 reads elements' attributes wrongly on MooTools 1.11

2009-06-23 Thread Fábio Costa
I do understand your point, and will try to do something solid. Thanks again. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, Jun 23, 2009 at 11:26 AM, lme...@gmail.com wrote: > > I admit that browser detection based on the useragent is not the most > solid one, but

[Moo] Re: IE8 reads elements' attributes wrongly on MooTools 1.11

2009-06-23 Thread Fábio Costa
Im trying to find the best solution for this. getProperty is a very hard thing to do, some properties works different on different browsers. Using user agent to do this kind of thing is not the best way. Thanks for this info, it will help on the improvement of this function. Fábio Miranda Costa

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-22 Thread Fábio Costa
words. Also, it will fail if xml nodes have a prefix (like ) > if I'm not mistaken. > > Very tricky problem, I think. > > > > 2009/6/21 Fábio Costa > > @csuwldcat >> your code works but it is buggy, some very strange bugs occur on ie while >> doing this. >

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-21 Thread Fábio Costa
lement( 'div', { 'html': > responseXmlFromYourRequest } ); > destinationEl.getElements( 'somethingInTheXML' ).each( function( el ) > { >console.log( #someEl ); > } ); > > On Jun 19, 4:39 am, Fábio Costa wrote: > > Ill really take a deep lo

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-19 Thread Fábio Costa
> hanlde the XML so well for all browsers. > Any ideas? > > I've seen some code to create a Request.XML class that basically converts > the xml onto a DOM tree, but that has a bunch of issues on IE browsers too, > as we have talked before (for example, IE wont let you crea

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-18 Thread Fábio Costa
extending the xml doesnt work, right?i mean like: $(xml).getElements Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com 2009/6/18 Fábio Costa > Eneko thats a serious issue, im sure core devs are with an eye on it.But i > *think *it only come for the 2.0

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-18 Thread Fábio Costa
de3"; > $(xml) returns null (I expected that but... had to try) > > > 2009/6/18 Fábio Costa > > Do you get any errors?Thanks for this report. >> >> >> Fábio Miranda Costa >> Engenheiro de Computação >> http://meiocodigo.com >> >> &g

[Moo] Re: XML parsing with Mootools on IE browsers

2009-06-18 Thread Fábio Costa
Do you get any errors?Thanks for this report. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Thu, Jun 18, 2009 at 8:58 AM, bluff wrote: > > Are the comments in the request reply. if so IE cannot handle this and > will always fail. > Solution remove the comments from the

[Moo] Re: new Element() performance in IE7

2009-06-17 Thread Fábio Costa
: 453ms innerHTML: 63ms Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com 2009/6/17 Fábio Costa > You might know that you cant use innerHtml with table elements and its > internals (tbody, td, tr...) thats why mootools did this html property, to > fix this issue. >

[Moo] Re: new Element() performance in IE7

2009-06-17 Thread Fábio Costa
You might know that you cant use innerHtml with table elements and its internals (tbody, td, tr...) thats why mootools did this html property, to fix this issue. To have the best speed you will have to construct a string just like you did on your 'innerHTML' test, including the table element and s

[Moo] Re: new Element() performance in IE7

2009-06-17 Thread Fábio Costa
Hmmm dude if i were you i would create a string representing the table and set('html') of the table element.got it? report the results please. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, Jun 17, 2009 at 6:41 AM, Kai Gülzau wrote: > > I have to update huge tables

[Moo] Re: Request HTML : the embed code doesn't seem to be active in Firefox

2009-06-17 Thread Fábio Costa
re. I mean 90% are > still on IE 6... > > But anyway, I will follow your instructions. You are my master ! > > Have you got an idea for the différence between IE and FF with the > final display ( my second question )? > > On 16 juin, 01:09, Fábio Costa wrote: > > You c

[Moo] Re: Request HTML : the embed code doesn't seem to be active in Firefox

2009-06-15 Thread Fábio Costa
You can easily do it without Request.HTML and it will solve the getting to , which is not a bug or problem, in my opinion. And IMHO you shouldnt create a new Request everytime you call this function. And do you really need this check for the XMLHttpRequest Object? I mean, who uses a browser that

[Moo] Re: Request's emulation option -- what's the point?

2009-06-15 Thread Fábio Costa
nd all the verbs > quite a bit. They all seem to work without emulation. > > On Jun 15, 6:51 am, Fábio Costa wrote: > > i dont use rails but it should be to use REST, so depending on the type > of > > the request you will do something (list, delete, add...) on t

[Moo] Re: Request's emulation option -- what's the point?

2009-06-15 Thread Fábio Costa
i dont use rails but it should be to use REST, so depending on the type of the request you will do something (list, delete, add...) on the same url. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 15, 2009 at 4:05 AM, Jonathan Novak wrote: > > Presumably at some

[Moo] Re: Can anyone help me with how to make basic use of MooPix (along with MooTools)?

2009-06-09 Thread Fábio Costa
1.11). Some slideshows: http://www.pluginbayb.com/en/javascript/mootools/1.2 Cya. -- Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com 2009/6/9 Fábio Costa > It says there: > > "MooPix isn't a slideshow, it's a way for you to access your public Flickr >

[Moo] Re: Can anyone help me with how to make basic use of MooPix (along with MooTools)?

2009-06-09 Thread Fábio Costa
p;amp;tags=&amp;per_page=30">http://www.flickr.com/services/rest/?%0Aapi_key=a45df7f5f8bebd8c321e0cd90a6a117b&amp;format=json&amp;method=flickr.photos.search&amp;tags=&amp;per_page=30</a>> > " > type="text/javascript"> > > Now, two

[Moo] Re: Can anyone help me with how to make basic use of MooPix (along with MooTools)?

2009-06-09 Thread Fábio Costa
It requires 1.1 version of mootools, we are currently at 1.2 (they are incompatible). I dont know if theres a 1.2 version. Heres a link for 1.1: http://docs111.mootools.net/scripts/mootools.js demos: http://demos111.mootools.net/ docs: http://docs111.mootools.net/ Fábio Miranda Costa Engenheir

[Moo] Re: Event listeners between different classes

2009-06-09 Thread Fábio Costa
Its all fine just use the addEvent function, that is added to your class when you implement the Events mixin Class. var myListenerClassInstance = new myListenerClass(); var myClassInstance = new myClass(); // will execute myListenerClassInstance.doSomething when the 'initialize' event is fired on

[Moo] Re: need help with a callback from remote js to a local class method...

2009-06-08 Thread Fábio Costa
Dimitar, i see no other way. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 8, 2009 at 12:00 PM, Thierry bela nanga wrote: > try this, > > var geoData = new Class({ >Implements: [Options, Events], >options: { >url: "http://geoip.pidgets.com/?format=j

[Moo] Re: Registering an event method after initialization

2009-06-08 Thread Fábio Costa
nction(object) { >object.callback(); >}); >} > }); > > var a = new A(); > var b = new B(); > var c = new C(); > > a.addSubscriber(c, function() { alert('B: MouseEnter triggered on > "a"'); }); > a.addSubscriber(c, function() { alert('C: Mou

[Moo] Re: two Java scripts

2009-06-04 Thread Fábio Costa
What are you trying to do here: function hintergrund(){ var mhi = new Fx.Styles($('Inhalt'), {duration:200, wait:false}); mhi.start({ background: '#000 url(../bilder/hslogo.jpg) top right repeat' }); } makes no sense to make an effect to

[Moo] Re: Registering an event method after initialization

2009-06-04 Thread Fábio Costa
use the addEvent function. window.addEvent('domready', function() { var a = new A(); // ... later ... a.addEvent('myEvent', function() { alert('Hello from myEvent()'); } a.someMethod(); // <-- Nothing happens, event method don't fire }); This might work but doenst look nice

[Moo] Re: two Java scripts

2009-06-04 Thread Fábio Costa
What version of mootools are you using? Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Thu, Jun 4, 2009 at 7:20 AM, logan2012 wrote: > > I need two javascripts. One for effects on my table rows and another > to call it from a php script when it is loaded. > > Here is th

[Moo] Re: How to refresh a webpage (ie7 Problem?)

2009-06-03 Thread Fábio Costa
eads to a situation where it is extremely difficult to > understand and to write correct javascript functions. > > Woomla. > > Fábio Costa schreef: > > LoL, this incorrect comma that breaks javascript on ie really sux... > > > Fábio Miranda Costa > Engenheiro de Computação

[Moo] Re: How to refresh a webpage (ie7 Problem?)

2009-06-03 Thread Fábio Costa
LoL, this incorrect comma that breaks javascript on ie really sux... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, Jun 3, 2009 at 1:50 PM, Thierry bela nanga wrote: > remove the trailing comma after: > > 'mouseenter': function() { > thi

[Moo] Re: Popups (stay with me) in addEvent();

2009-06-03 Thread Fábio Costa
ideration is challenged. > > I've never really used iframes so I forget they are in my toolbox. > > On Jun 2, 10:32 am, Fábio Costa wrote: > > Hi rpflo. > > You can do this printer friendly version of the invoice using an iframe, > so > > you dont even need th

[Moo] Re: Popups (stay with me) in addEvent();

2009-06-02 Thread Fábio Costa
Hi rpflo. You can do this printer friendly version of the invoice using an iframe, so you dont even need the popup. Just call window.print() inside the iframe document. It will print the content from the iframe (the user friendly version). Fábio Miranda Costa Engenheiro de Computação http://meio

[Moo] Re: Dates in JSON

2009-06-02 Thread Fábio Costa
You should use secure false for this to work. This JSON you are sending is not a valid JSON, and will not work if you dont set secure to false. Do this with you request.JSON object: var jsonRequest = new Request.JSON({ *secure: false*, url: myserviceurl, onComplete : function(response) {response.p

[Moo] Re: New Mootools powered website - Corbis.com

2009-06-01 Thread Fábio Costa
Congratulations for the site, it looks cool! Hope to read your articles! Have a good day. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Jun 1, 2009 at 2:20 PM, chris.es...@gmail.com wrote: > > After over a year of development, long nights and day old pizza, we've >

[Moo] Re: latest mootools doesn't work with videobox?

2009-05-31 Thread Fábio Costa
Try searching for a version of it compatible with 1.2. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Sun, May 31, 2009 at 11:29 AM, js_dev wrote: > > DO i have to do this "by hand"? > > This is the 1.11 code that needs converting to 1.2.2, > > > var Videobox = { > >

[Moo] Re: latest mootools doesn't work with videobox?

2009-05-31 Thread Fábio Costa
some examples here: http://wiki.github.com/mootools/mootools-core/conversion-from-1-11-to-1-2 Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Sun, May 31, 2009 at 10:55 AM, js_dev wrote: > > Ok thanks, do you have an example of how to convert. > > And yes the 46kb file i

[Moo] Re: $type() doesn't recognize attributes

2009-05-29 Thread Fábio Costa
: > > Uhm, how can i contact one of them? Will they ever read these posts? > > On 29 Mag, 17:00, Fábio Costa wrote: > > Oh well im not a core developer. > > Try talking to Aaron or David Walsh. Maybe Jan Kassens. > > > > Fábio Miranda Costa > > Engenheiro de

[Moo] Re: $type() doesn't recognize attributes

2009-05-29 Thread Fábio Costa
http://msdn.microsoft.com/en-us/library/ms534191%28VS.85%29.aspx> > [uhm, here there are just element and whitespace node type, anyway > i've tested that IE correctly returns 2 for an attribute] > > If you want i can write the whole code as soon as i can :P > > > On

[Moo] Re: $type() doesn't recognize attributes

2009-05-29 Thread Fábio Costa
anything in DOM. > document.body.attributes[0] isn't a string, is an object with at least > a name and a value. > > On 29 Mag, 15:11, Fábio Costa wrote: > > but... > > an attribute doenst have a type, its basically a string... i dont get > your > > point. > > thanks

[Moo] Re: $type() doesn't recognize attributes

2009-05-29 Thread Fábio Costa
but... an attribute doenst have a type, its basically a string... i dont get your point. thanks for the idea. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Fri, May 29, 2009 at 10:01 AM, venom00 wrote: > > I think you should improve $type to recnogize all of the DOM nod

[Moo] Re: onSubmit submit button remains disabled when using the back button in FF

2009-05-27 Thread Fábio Costa
this.form.getElements('input[disabled=disabled]').set('disabled',false); ondomready may do the trick. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, May 27, 2009 at 6:00 PM, 4fingers wrote: > > Hi all, > > I have some basic Mootools that will disable the submit but

[Moo] Re: problems with the property setPosition

2009-05-27 Thread Fábio Costa
I think you should set the top or bottom and left or top positions to the tree_header div. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, May 27, 2009 at 5:08 PM, jmeciar wrote: > > hi guys ! this is my first new message. just a little > presentation, my name i

[Moo] Re: Issue with new Element('image') on IE8

2009-05-27 Thread Fábio Costa
Unfortunately this a IE8 problem. The javascript way of creating DOM elements and getting tagName: document.createElement('image').tagName returns 'IMG'. :( Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, May 27, 2009 at 3:57 PM, Eneko Alonso wrote: > I'm having t

[Moo] Re: Different return value for getProperty

2009-05-27 Thread Fábio Costa
Cool, ill take a look at this someday Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, May 27, 2009 at 10:39 AM, Thierry bela nanga wrote: > I think the return depends on the browser, > for me, if onChange works the same way in all browsers, i wouln'd see any > proble

[Moo] Re: Date.increment('month') not working as expected

2009-05-27 Thread Fábio Costa
Scott, The problem is not this that you are mentioning, the bug is somewhere else as you can see on the loop Eneko showed: Mon Jun 01 2009 00:00:00 GMT-0700 (PDT) $family=Object Wed Jul 01 2009 00:00:00 GMT-0700 (PDT) $family=Object Sat Aug 01 2009 00:00:00 GMT-0700 (PDT) $family=Object Tue Sep 0

[Moo] Re: Getting the first index of an object

2009-05-26 Thread Fábio Costa
Like Sandford said, it works ok on all major browsers but is not guaranteed to work outside browsers. You could make your own ordered Javascript Object, using 2 arrays maybe... If i were you and my code were about to run just on browsers i wouldnt mind about it... Use the function you just created.

[Moo] Re: Pass values to demo.js in form send AJAX demo

2009-05-25 Thread Fábio Costa
date this page, > > http://etwolf.no-ip.org/Form.Send/index_test.html > > Any ideas what i am doing wrong? > > On May 25, 3:57 pm, Fábio Costa wrote: > > Yes, i dont have a clue of what you are saying. > > > > Fábio Miranda Costa > > Engenheiro de Compu

[Moo] Re: Pass values to demo.js in form send AJAX demo

2009-05-25 Thread Fábio Costa
. > > At the moment it is only set up to POST one form?? > > On May 25, 3:00 pm, Fábio Costa wrote: > > demo.js is not meant to be used on your site, it an example file. > > You should modify it for your needs. > > Its not part of the mootools fr

[Moo] Re: Pass values to demo.js in form send AJAX demo

2009-05-25 Thread Fábio Costa
to allow 2 or more forms on the same page > with different ID's to post using AJAX. > > Here is the setup > > http://etwolf.no-ip.org/Form.Send/index_test.html > > thanks > > > > > > On May 25, 2:17 pm, Fábio Costa wrote: > > The examples are intended t

[Moo] Re: Pass values to demo.js in form send AJAX demo

2009-05-25 Thread Fábio Costa
The examples are intended to show what Mootools can do and give that little push on your first scripts. Read it, understand it and mae your own for your own needs. I dont understand what you are wanting. Maybe if you could send a script that is having errors we could help you find the errors. Cya.

[Moo] Re: Array being transformed to hash when sent with Request

2009-05-25 Thread Fábio Costa
If it works like this on PHP too i think this should be considered a mootools bug. It would be good to see other javascript frameworks implementation of this thing... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, May 25, 2009 at 9:25 AM, electronbender wrote: > > p

[Moo] Re: Request and evalScripts

2009-05-24 Thread Fábio Costa
, fabiomcosta wrote: > > Thierry, > > > > i think its impossible to catch the error on the script evaluation > > because of the current method of evaluating globally the scripts. > > But maybe someone has a solution... > > > > On May 22, 3:46 pm, Fábio Costa

[Moo] Re: Request and evalScripts

2009-05-22 Thread Fábio Costa
lease report... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Fri, May 22, 2009 at 3:14 PM, Thierry bela nanga wrote: > exactly, > if an error occur, there is not really a way to handle it. > > > 2009/5/22 Fábio Costa > >> You mean like when the evalu

[Moo] Re: Request and evalScripts

2009-05-22 Thread Fábio Costa
gt; in Request.JSON.success, not only when the request is being done, > oherwise the overlay remains on the page and the only thing to do is to > reload the page :( > > > 2009/5/22 Fábio Costa > >> But the onFailure is fired when an error occurs on the request, i don't >> get yo

[Moo] Re: Request and evalScripts

2009-05-22 Thread Fábio Costa
ss F5 to get out of > that situation > > I think propose the onFailure event should be fired there > > > > 2009/5/22 Fábio Costa > > Don't you guys think that the scripts inside the HTML request should be >> evaluated after the onSuccess and onComplete event

[Moo] Re: Are you guys aware of APE - Ajax Push Engine?

2009-05-22 Thread Fábio Costa
Its a good add for the Mootools framework. Maybe the best push server around... Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Fri, May 22, 2009 at 1:39 PM, Killtek wrote: > > I ran into this little gem while browsing through ajaxrain.com list. > Their javascript framew

[Moo] Re: window.location + ajax menu

2009-05-22 Thread Fábio Costa
ty to > navigate from there as in any other URL setting hash to something like > www.server.com/store#home or www.server.com/store#contact. > > Is that correct? > > > Than ks everyone for their help =] > > Alex, > > > > > > > On May 22, 6:45 am, Fábio Costa w

[Moo] Request and evalScripts

2009-05-22 Thread Fábio Costa
Don't you guys think that the scripts inside the HTML request should be evaluated after the onSuccess and onComplete events? Im asking this because sometimes i need the HTML inside the received response to be inject in the DOM before actually evaluating the script tags into the response. evalScrip

[Moo] Re: window.location + ajax menu

2009-05-22 Thread Fábio Costa
if the new hash is '' then you should set it to '#'. Wont reload and works fine. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Fri, May 22, 2009 at 4:58 AM, Thierry bela nanga wrote: > it looks like setting hash to an empty string cause the page to reload in > FF, I ha

[Moo] Re: pass() buggy

2009-05-21 Thread Fábio Costa
> el.addEvent('click', fn.pass([1,2,3],el)); > > 2009/5/21 Fábio Costa > > Ok, i really appreciate the chat and help. >> Have a nice day. >> >> >> Fábio Miranda Costa >> Engenheiro de Computação >> http://meiocodigo.com >> >

[Moo] Re: pass() buggy

2009-05-21 Thread Fábio Costa
but you want to pass 1,2,3. yes, there are ways to do this, > but it's clear this isn't a real world example. For instance, you could pass > 1,2,3 and bind the element and get what you want. Or you can make 1,2,3 a > variable that fn has access to... > > 2009/5/21 Fábio C

[Moo] Re: JSON Request Sample Throws "jsonObj is undefined error"

2009-05-21 Thread Fábio Costa
you running any sort of server? Or did you just download it and > pop it open? > > On May 20, 12:20 pm, Fábio Costa wrote: > > Sure, send it... > > > > Fábio Miranda Costa > > Engenheiro de Computaçãohttp://meiocodigo.com > > > > > > > &g

[Moo] Re: pass() buggy

2009-05-21 Thread Fábio Costa
w. You don't want .pass binding something else to your methods unless > you tell it to. > > 2009/5/21 Fábio Costa (via Nabble) > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2953880&i=0> > > > > I think the pass function is buggy. It is not bin

[Moo] Re: window.location + ajax menu

2009-05-21 Thread Fábio Costa
You can do it but its a little different. using location.hash the page dont refresh. So you will have to process the href of the link to get a hash value, change the location.hash change the content of yout container div and then return false so it will not go to the link you just pressed. Got it

[Moo] pass() buggy

2009-05-21 Thread Fábio Costa
I think the pass function is buggy. It is not binding the correct element when there is nothing to bind. Lets say: var fn = function(){ console.log(this); }; var clickFn = fn.pass([1,2,3]); $('anchor').addEvent('click', clickFn); The console should show (IMO) the element with id=anchor, but

[Moo] Re: JSON Request Sample Throws "jsonObj is undefined error"

2009-05-20 Thread Fábio Costa
onComplete: function(jsonObj) { >addImages(jsonObj.previews); >} > > Still gives me the same error. Would it help if I emailed you the > link? Thanks for your replys. > > On May 20, 11:10 am, Fábio Costa wro

[Moo] Re: JSON Request Sample Throws "jsonObj is undefined error"

2009-05-20 Thread Fábio Costa
addImages(jsonObj.previews); > >} > >}).send(); Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Wed, May 20, 2009 at 3:04 PM, JB wrote: > > It's there in the same folder and when i click on "see data.json" it

[Moo] Re: JSON Request Sample Throws "jsonObj is undefined error"

2009-05-20 Thread Fábio Costa
You should check if the file referenced by the url key (demo_path + 'data.json') is there on the server. Check your firebug console to se if it is giving you a 404 error. If it is giving 404 errors its because the file isnt there. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com

[Moo] Re: Variable content in Request data (for send()...)

2009-05-20 Thread Fábio Costa
t the variable > variable name. > > Rolf > > > On 18 mei, 23:30, Fábio Costa wrote: > > var sendData = {data: { > > action: 'changeOrder', > > }}; > > > > sendData.data[this.options.type+'Id'] = myId; > > > >

[Moo] Re: Good use of delay

2009-05-20 Thread Fábio Costa
I would use: window.addEvent('load', function(){}); This will make sure that every image on the document is loaded. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Tue, May 19, 2009 at 9:54 PM, Sanford Whiteman < sa...@cypressintegrated.com> wrote: > > > Its not just 1 i

[Moo] Re: Variable content in Request data (for send()...)

2009-05-18 Thread Fábio Costa
var sendData = {data: { action: 'changeOrder', }}; sendData.data[this.options.type+'Id'] = myId; new Request({ method: 'get', url: 'myPage.php' }).send(sendData); This doesnt work? Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, May 18, 2009 at 6:06 PM, Sa

[Moo] Re: singleton mutator with 1.2.2?

2009-05-10 Thread Fábio Costa
; >> in a prototype-based language. So this is basically a mix of all of >> those approaches. I just don't see the use of a real Singleton pattern >> in JavaScript anyway. You either have a simple Object ( var MyObject = >> {} ) or an instance of a Class (with the new new Cl

[Moo] Re: singleton mutator with 1.2.2?

2009-05-10 Thread Fábio Costa
This looks like a static class more than the singleton pattern. Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Sun, May 10, 2009 at 4:31 PM, Christoph Pojer wrote: > > As JavaScript doesn't really have the concept of a Singleton I think > the easiest way to use it is jus

[Moo] Re: question about $defined

2009-04-28 Thread Fábio Costa
anyFunction(undefinedValue) will always throw you an error. You can't pass a non defined param to a function. For this to work you should declare the var before using the function, in this case: var undefinedValue; anyFunction(undefinedValue); Will work. In you case: var Drag; $defined(Drag);

[Moo] Re: Plugin MultiOverlays

2009-04-19 Thread Fábio Costa
Thats a very cool effect. I was needing it but didnt find a mootools version. Thanks! And i found the secret start! heheh Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Sun, Apr 19, 2009 at 10:33 AM, daKmoR wrote: > > Allows you to create multiple image overlays for an

[Moo] Re: enableClass

2009-04-15 Thread Fábio Costa
").addClass("searching"); > } > > It's not a toggle, because even if the class is currently applied, it > doesn't mean you will want to remove it. You are only enabling it > conditionally on some boolean value which may change dynamically as > the code is

[Moo] Re: Events with proper timing

2009-04-15 Thread Fábio Costa
I havent looked the logics but set() should be changed to store(): $$('textarea').each(function(item) { item.addEvent('keydown', function(e) { if (e.key == 'enter') { var now = new Date().getTime(); var elapse = now - this.retrieve('ago'); do_someth

[Moo] Re: Multiple events applied

2009-04-15 Thread Fábio Costa
appears to work. >> >> On Apr 14, 4:52 pm, Thierry bela nanga >> http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2636365&i=2>> >> wrote: >> >> > I think remove does the same as dispose, >> > it remove the element from the DO

  1   2   >