Hello all,
I use prototype library for several years and like it very much.
The question is about Function#defer. I used it in my work but never
looked under the hood.
The description says: A “deferred” function will not run immediately;
rather, it will run as soon as the interpreter’s call stack
Hi,
I looked at the Function#defer code, and there was nothing about
stack.
The stack in question is in the JavaScript interpreter, not Prototype.
In fact, it even says ...the interpreter's call stack. :-) (It's
probably more a queue than a stack.)
JavaScript in web browsers is
+1 on Tobie's comment: Use smaller z-indexes.
Scientific notation isn't hard to parse, if you want to handle it that
way, but even that's problematic -- that number has been rounded
(2.14748e9 == 2,147,480,000, which != 2,147,483,647), and so even
comparing numeric values isn't going to work.
i am attempting to build a drag and drop list menu from one div to the
other. I have it working flawlessly in regular HTML, but once I took
it into my TPL file (template file for Smarty) it stopped working.
the page itself is called with the following code:
lia href=#
Hello!
Thinking about events fired when a webpage is loaded, I would expect
these events in exact this order:
domReady
body.onLoad
window.onLoad
Now, all I want to do, is to observe this events unobtrusivly using
prototypejs. (with MooTools this is possible, but I need to use
prototype for my
Okay … to make the question really simple:
document.observe('dom:loaded', function() {
alert('DOM.ready') // DOM is ready, body should be
accessible
Event.observe(body, 'load', function() {
alert('body.onload');
});
});
Doesn’t work – the alert is not
Hi,
Doesn’t work – the alert is not displayed. But why?
Because by the time you've hooked the event, it's (probably) already
been fired, so your handler never gets fired.
(Are you the same person as the OP?)
-- T.J.
On Apr 1, 2:13 pm, Reimar reimarmob...@googlemail.com wrote:
Okay … to make
(Are you the same person as the OP?)
No, I’m sitting next to him in the same office.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe
Hi,
Doesn’t work – the alert is not displayed. But why?
Because by the time you've hooked the event, it's (probably) already
been fired, so your handler never gets fired.
It's not already been fired!
Evidence: If I put an onload attribute directly into the html markup
which alerts onLoad,
I'm looking to take a set of divs and alphabetize them on a page,
based on the values of a specific text node within each div. I could
probably come up with a way to do this, but I'm wondering if someone
has already done something similar that they could share?
--
You received this message
Hi,
i want to realize the following szenario:
1. fade div information
2. change content of div information by using AJAX and innerhtml
3. appear div information again
Here is my version:
--
$('information').fade({
queue: 'end'});
new
Hi,
It's not already been fired!
Evidence: If I put an onload attribute directly into the html markup
which alerts onLoad, the alert is seen AFTER the DOM.ready alert.
That's evidence that the DOM0 event is fired at that point; I wouldn't
guarantee that the two are fired at the same time.
Start with the Ajax.Request since that's likely to be the longest step. Then
fade out the DIV, with a callback after the animation to set a doneFading
flag to 1true`. The onComplete of the Ajax.Request should check if the
doneFading flag is true, and if it is, update the innerHTML and fade it back
i would rather use the AjaxUpdater and have a wrapping function over it :
function ajaxUpdate(id, url, params, callback) {
new Ajax.Updater (id, url, {
parameters: params,
onComplete: callback
});
}
then use the afterFinish callbacks of effects with use of curry function
methods:
Unfortunately I'm not quite competent in java script.I think I can't
get that managed on my own.
On 29 Mrz., 12:05, ColinFine colin.f...@pace.com wrote:
On Mar 28, 2:21 pm, HotShot hs...@gmx.net wrote:
I would like to know if there is a way to limit a drop area to a
certain number of
I was programming a widget which people can embed on their sites. This
widget contains an anchor http://www.mySite.com; on it. I set this
anchor to the maximum integer value to prevent leechers from obscuring
the anchor. Z-index is not the only check I do for obscuring, by the
way. So I'm stuck
16 matches
Mail list logo