Wow. I'm delighted to have provoked such an interesting and
informative discussion.
Somehow *just* falsy/truthy return values seem sloppy to me. It
doesn't take much effort to prepend result with `!!` and document
function's return value as that of type Boolean.
I guess that's my
Hi Offspring2009,
The problem is in the function moveItem, because you just do
draggable.parentNode.removeChild(draggable);
droparea.appendChild(draggable);
And you did not take care of relative position of the element.
When you drag the element to put it on the droppable container, in
I have loop that makes server-side Ajax calls on each iteration, and
returns data. This could be 50 iterations, 500, 5000, whatever. Upon
each iteration, I update that particular row with a server-side
response (i.e. success or fail), and then update the total count
processed (26 out of 432
I am currently implementing an image gallery which uses the Prototype
framework 1.4.0. The problem I am having is the first image (when
loaded) does not load its title and caption also. I have set the
gallery to preload = true.
Here is the script within my header.php:
var imgs0Slideshow = [];
Hi,
By marking the ajax requests synchronous, you're basically bringing UI
updates to a screeching halt. :-) Rather than doing a synchronous
loop, how 'bout doing a chained asynchronous loop? E.g., suppose we
have a list (perhaps an Element array from $$) and we want to do a
call to the server
Hi,
Apologies, copy-and-paste error, that first pseudo-code block should
not have the call to loopIteration in the onException handler.
Corrected pseudo-code for the synchronous loop:
list.each(function(elm) {
new Ajax.Request(some_url + '?id=' + elm.id, {
asynchronous:
Why not just switch all of your elements to a different class, with
the new effect?
.FOO { opacity: 1.0 }
.BAR { opacity: .9 }
$$(.foo).each( function (item) { item.className = BAR; })
On Feb 9, 9:49 am, Eric lefauv...@gmail.com wrote:
Hi,
I apologize if my question is stupid (and it should
If you don't have a lot of Prototype code, and that's within your
control...you should be able to convert your existing prototype code
to jQuery syntax, then get rid of Prototype entirely. We looked at
doing this when we started mixing jQuery into our code, but we had WAY
too much Prototype to
TJ,Greatly appreciate the insights. I am going to try a chained
asynchronous loop today!
Many thanks,
:Mark
http://holtsblog.blogspot.com/2009/02/forcing-repaint-dom-in-ie6-and-ie7.html
On Mon, Feb 9, 2009 at 5:48 AM, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
Apologies,
Hi bminihan,
On Feb 9, 3:59 pm, bminihan bjmini...@gmail.com wrote:
Why not just switch all of your elements to a different class, with
the new effect?
.FOO { opacity: 1.0 }
.BAR { opacity: .9 }
$$(.foo).each( function (item) { item.className = BAR; })
Well, changing 300 times a class
scripteka.com
- Original Message -
From: Joshua Partogi joshua.j...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Saturday, February 07, 2009 11:40 AM
Subject: [Proto-Scripty] Recommendable Prototype based widgets
Dear all,
Can anyone
its also possibly to do with the minimum height needed to slide stuff in and
out ive noticed before that elements under about 50px in different
browsers dont do whats required this is more than likely somehting to
do with the default height used by the browser html renderer (think of
Confirm. IE 6 (SP1), IE7, FF 3.0.6 on Windows XP Pro SP2. Tried in FF
3.0.5 on Ubuntu. Same behaviour.
On Feb 9, 6:15 pm, Cyrus arianglan...@googlemail.com wrote:
Sorry for pushing this but please can someone confirm this bug.
I have uploaded both examples:
Old version of scriptaculous -
Brand new to script.aculo.us and prototype:
Want to drag and drop items from one list to multiple lists:
Example: I have a list of employees that can be in multiple groups, I
want to be able to drag each from a static list and drop them into
multiple groups. is this possible with
I needed something like Draggable, but I needed to be able to resize
it and to clamp it to a container. I found:
http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable
but it was only 1/4th of the way there. So, I wrote a subclass of
Draggable called Resizeable. It allows you to
15 matches
Mail list logo