Here's the problem: I have a div, id=mydiv, which I clone using:
var clonedDiv = document.getElementById('mydiv').cloneNode(true);
I then set the id to be mynewdiv:
cloneDiv.id = "mynewdiv"; //not using setAttribute to accomodate IE
I then remove the original div:
Element.remove(document.getE
It looks like params[:list] is an array of the numbers in the li id.
Simple as that?
Thanks,
Peter
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi,
I'm new to the script.aculo.us library and AJAX. Of course, I already
want to use a sortable list for something more complicated than the
sortable list demo. In the example below, what is the structure of
params[:list]? I don't know what I can do with it once I have it in my
controller method.
I'm looking for onSuccess: in Ajax.InPlaceEditor, but it doesn't
appear to exist. onComplete isn't what I need because I only want my
callback on success. Is there a way to do this?
Thanks,
Jamie
___
Rails-spinoffs mailing list
Rails-spinoffs@list
I'm looking for onSuccess: in Ajax.InPlaceEditor, but it doesn't
appear to exist. onComplete isn't what I need because I only want my
callback on success. Is there a way to do this?
Thanks,
Jamie
___
Rails-spinoffs mailing list
Rails-spinoffs@lists
brilliant, that worked. thanks.
> The onDrop method gets passed 2 arguments, the draggable and the
> droppaple. So you can do the following... (And yes, you can still pass
> arguments to functions defined this way, the other guy was wrong (sorry
> other guy but you were)).
>
> doTheThing: functio
The onDrop method gets passed 2 arguments, the draggable and the
droppaple. So you can do the following... (And yes, you can still pass
arguments to functions defined this way, the other guy was wrong (sorry
other guy but you were)).
doTheThing: function(draggable, droppable)
{
if (confirm
thanks for the help, but i need to be able to pass in the id so i
guess i will have to put the whole funciton inside the Droppables.add.
however its not letting me...
Droppables.add('droptarget1',{hoverclass:'dropTargetHover',
For the draggable creation, use a loop:
var liElements = $(mylistID).getElementsByTagName("li");
for (var i = 0; i < liElements.length; i++)
{
new Draggable($(liElements[i]), {revert:true});
}
For the onDrop question, try removing the parens "()" from doTheThing so
it's:
onDrop: doTheThi
Louis,You can do it that way, but you need to drop the brackets. So, your code becomes:onDrop:doTheThingThis also means you can't pass anything into the function.Regards,Cam
On 1/25/06, Louis Walch <[EMAIL PROTECTED]> wrote:
also, can i call a seperate function on the onDrop?e.g changeonDrop:functi
On 1/23/06, Gregory Hill <[EMAIL PROTECTED]> wrote:
Looks like Sortable already has an 'onUpdate' option that should doexactly what I want. However, I cannot get it to fire. Has anyone hadsuccess with it?
I use onUpdate with my sortables, and it does indeed do what you are
looking for. For a
ok thats what i was worried about... just seems like alot of code...
new Draggable('foo/one',{revert:true});
new Draggable('foo/two',{revert:true});
new Draggable('foo/three',{revert:true});
new Draggable('foo/one/a',{revert:true});
new Draggable('foo/one/b',{revert:true});
my list has ov
If you want the whole list draggable as one entity, you make one
draggable. If you want each item draggable on their own, you need to
make each one a new draggable.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January
I have a list and want to make each LI item dragable, do i have to make a
"new Draggable" for every one of them, or can i just say make it all
draggable.
Thanks
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails
Sweet!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
Hill
Sent: Wednesday, January 25, 2006 8:53 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Slideshow beta
Ok,
I finally got the slideshow code to a state worth s
Hey Greg,
no, also I don't know why it should be "choppy" at all, but it is. For
me it looks like as if the "Appear / Fade" would use less "fps" ;-) but
that's strange.
okay... so I tried the things on a windows machine with FF 1.5 and it
looks really good. Then I restarted my firefox on my
Sorry, I don’t use RoR. Someone
else is welcome to create a ‘helper’ for it. Maybe someday I’ll
actually learn Ruby J
The ajax
code on the server should return an HTML snippet, as all the code does is grab
all of the nodes in the HTML and add them as frames to the slideshow. If one
o
looks great ! In case you are using RoR, how do you integrate (the ajax version) into a RoR app ? Do you have a RoR helper functions or a source snippet of how you did it ?On 1/25/06,
Gregory Hill <[EMAIL PROTECTED]> wrote:
Ok,I finally got the slideshow code to a state worth showing itoff
Hey!
Awesome stuff. I really like it. The only thing that came to my mind is
that for me, the "Fade / Appear" effect is kind of choppy and not as
smooth as it should be!? (FF 1.5) The other effects are really cool.
Did you encounter the same problem?
greetings,
benni.
-SDG-
Gregory Hill wr
All I can say is WOW. I really like that.
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Wednesday, January 25, 2006 11:53 AM
To: ra
I found that I couldn't register an unload event using prototype.
The reason seems to be that prototype registers an unload event which
unregisters all events, including other unload events. It's commented as
a fix for an IE memory leak.
In case anyone else wants to use unload events, here's a fix
Ok,
I finally got the slideshow code to a state worth showing it
off. The site is a very rough cut of a site I'm building for my wife's
photography, so ignore the unfinished design for now :)
http://rachel.kathihill.com/
To see the ajax version, go to:
http://rachel.kathihill.com/?ajax=1
Ok, sorry, but this is the 5th time you've sent this. I understand you
think you're having problems sending it to the list or something, but
really, you're not. We got it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
troels knak-nielsen
Sent: Tuesday,
Hi,
I was going to use the AJAX.PeriodicalUpdater to implement a progress
bar. However, how do I send a command to stop it from executing on
completion (i.e. reaching 100%)
Deco
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
Hi, I've been working on a sortable tree modification.
You can get what I have done so far here: http://
www.oriontransfer.co.nz/Sortable+List.zip
Firstly, serialize needs work to support a tree structure. Secondly,
I have not tested if it still works with lists property (I'm sure it
would
25 matches
Mail list logo