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
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
; 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
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
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
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
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
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://
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
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.
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
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({
>
>
>
>
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
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...
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
>
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
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
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
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
@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
>> 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
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
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
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:
>
>
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
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
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
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
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.
>
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
> 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
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
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
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
: 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.
>
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
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
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
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
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
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
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
>
p;amp;tags=&per_page=30">http://www.flickr.com/services/rest/?%0Aapi_key=a45df7f5f8bebd8c321e0cd90a6a117b&format=json&method=flickr.photos.search&tags=&per_page=30</a>>
> "
> type="text/javascript">
>
> Now, two
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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 = {
>
>
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
:
>
> 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
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
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
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
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
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
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
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
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
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.
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
.
>
> 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
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
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.
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
, 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
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
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
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
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
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
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
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
> 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
>>
>
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
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
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
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
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
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
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
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
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;
> >
> >
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
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
;
>> 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
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
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);
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
").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
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
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 - 100 of 161 matches
Mail list logo