Oh well I understand, yes for example the case where I just need to
check if one element is part of my elements array.
Thank you for the tip so I made one shortcut like this :
Element.implement({'eContains':Element.prototype.contains});
In conclusion, even a method name sounds right, it can gives
> Then imho it should be the opposite...Elements methods should take
> precedence over Array methods, because when we work with an elements
> object, we work with an array of elements, not with any other things
It might seem like the more specific method should be called, but the
paradigm (per Aa
> I made a search on this group about this but didn't find
> something...is there some plans to enhance it, or will it be left like
> this ?
It'll always be this way AFAIK.
But of course you can also Element.implement your own wrapper function
to call the "right" contains() on Elements.
Anyways, thank you very much for the answer.
Then imho it should be the opposite...Elements methods should take
precedence over Array methods, because when we work with an elements
object, we work with an array of elements, not with any other things
in !
Oh Damn, I haven't noticed there was this same method name on Array
also...I understand well now.
I made a search on this group about this but didn't find
something...is there some plans to enhance it, or will it be left like
this ?
Hi MooTools pals,
now I bring you a simple example of how to use Request.JSONP to use
the Live Messenger API to ask if the user is online or not, and also
how to open a pop-up chat window (same url can be used for an iframe).
http://bit.ly/liveMessengerJSONP
Regards,
Ciul
Well, one precision : I am using MooTools core v 1.4.2
Thank you for any clarification
> I thought Elements methods works like for Element methods, I expected
> Elements.contains(B) return true if at least one element of the array
> match containing the argument B...am I wrong ?
If a method exists on Array, it will take precedence over one of the
same name on Elements (a coup
Hello,
I just noticed that Elements.contains does not works like it does for
Element.contain
ex : I have an Elements array like els = [A], if I try
els.contains(B), it fails, but if I do els[0].contains(B) it matches
(as it should), is it a normal behavior ?
I thought Elements methods works like fo
zipz, indeed the jsFiddle doesn't work as it is an extract from a
larger code base, so let me summarize what I'd like to achive:
My framework (http://demo.processpuzzle.com) features in-place
editing, based on MooEditable, which creates an iframe for the content
text. The length of content is unk
I couldn't get your jsfiddle code to work but you could try this,
var blaj = this.iframe.contentDocument ||
this.iframe.contentWindow.document;
blaj.scrollTo.
I think this is the difference between FF/Chrome and IE.
Still don't understand what you are trying to achieve with the while
loop. To
Matthew,
it's very generous from you.
I extracted a little portion to jsFiddle: http://jsfiddle.net/6wusn/7/
from my source code and got completely confused.
In the sandbox test the:
this.iframe.scrollTo( null, 1 );
line just doesn't changes the y scrolling property. The
iframe.contentWindow.scrol
As Matthew wrote, it's quite complicated to understand code without
jsfiddle. I think I've already created a dynamic iframe resize code
which you can use?
Check this thread out.
https://groups.google.com/group/mootools-users/browse_thread/thread/44b98abb82e1ca09/cfc8c280cf92ed8c?lnk=gst&q=zipz#cfc8
It would be neat if this picked up steam because I tested RaphaelJS and
decided not to go with it because of its lack of support for easy movement
of objects. Cool stuff.
~Philip
On Mon, Mar 5, 2012 at 1:49 AM, Matthew Hazlett wrote:
> GitHub Address:
> https://github.com/hazlema/RaphaelJS--Dr
Hi,l
Would you make a jsFiddle for your problem so I can look at it.
Thanks
You might be wondering why I'm using:
this.iframe.setStyle( 'height', decreasedHeight );
this.iframe.contentWindow.scrollTo( null, 1 );
together. Indeed it's confusing, but this.iframe dosn't have scrollTo
property and this.iframe.contentWindow.setStyle is also undefined.
Ugh.
On márc. 5, 15:50,
Hi,
I'm using the code below to automatically adjust an iframe's heigh
according to it's content.
tryToDecreaseHeight: function(){
while( this.iframe.contentWindow.getScroll().y == 0 &&
this.iframe.getStyle( 'height' ).toInt() > 0 ) {
var currentHeight = this.iframe.getStyle( 'h
17 matches
Mail list logo