Re: [Rails-spinoffs] Scriptaculous + Sortable: onUpdate Not Firing

2006-07-20 Thread Thomas Fuchs
http://wiki.script.aculo.us/scriptaculous/show/FAQ, question 4.3 Best, -Thomas Am 20.07.2006 um 08:04 schrieb Jeremy Clifton: Hello all, I'm using Scriptaculous 1.6.1 on a project I'm developing. My generated HTML (generated by PHP) looks something like this: Singletary, Bob (Preside

[Rails-spinoffs] Scriptaculous + Sortable: onUpdate Not Firing

2006-07-19 Thread Jeremy Clifton
Hello all, I'm using Scriptaculous 1.6.1 on a project I'm developing. My generated HTML (generated by PHP) looks something like this: Singletary, Bob (President/CEO) Chatman, Jim (Vice President of Finance/CFO) ... Sortable.create('admin-list', { onUpdate: function()

RE: [Rails-spinoffs] Scriptaculous Sortable within a Sortable | Bug?

TECTED] On Behalf Of Justin McCormack Sent: 11 July 2006 11:24 To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Scriptaculous Sortable within a Sortable   Hi, Forgive me if this has been discussed/resolved before. I have done a search of both this mailing list and the web, b

Re: Re: [Rails-spinoffs] Scriptaculous Sortable within a Sortable

Thanks for your reply, but I don't actually want a tree. I want two independent lists - I don't want the user to be able to drag answer list items into the question list..Justin ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://l

Re: [Rails-spinoffs] Scriptaculous Sortable within a Sortable

Scripty 1.6.1 has a sortable tree. You just make a new sortable on the parent list element and pass tree:true in options and it includes all child lists to make one big sortable tree. On 11/07/06, Justin McCormack <[EMAIL PROTECTED]> wrote: Hi, Forgive me if this has been discussed/resolved bef

[Rails-spinoffs] Scriptaculous Sortable within a Sortable

Hi,Forgive me if this has been discussed/resolved before. I have done a search of both this mailing list and the web, but I can't find a solution to my problem (which is odd as I would think plenty of people would have the same requirement and therefore the same problem). Basically, I have a OL of

[Rails-spinoffs] Scriptaculous Sortable Demo

In case anyone is interested, I just put together a demo using Sortable to preview Typo themes:http://www.dev411.com/typothemes/Nice to see it in action. John ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.or

RE: [Rails-spinoffs] scriptaculous sortable

> > Ummm... I'm not sure if this is the "correct way". It may be the > normal > > way for > > some languages/frameworks (PHP?), but it's not standard. Java, C and > Perl > > (just > > a few off the top of my head) don't do it that the square-bracket way. > > Well, you may be right, but I do rememb

RE: [Rails-spinoffs] scriptaculous sortable

> Ummm... I'm not sure if this is the "correct way". It may be the normal > way for > some languages/frameworks (PHP?), but it's not standard. Java, C and Perl > (just > a few off the top of my head) don't do it that the square-bracket way. Well, you may be right, but I do remember reading it some

Re: [Rails-spinoffs] scriptaculous sortable

Gregory Hill wrote: > No, that is just normal URL encoding %5b%5d is [], indicating that the > argument should be treated as an array. I know that many systems will > also create an array from the argument name if it simply passed more > than once in the argument list. I.E. > secondlist=1,secon

RE: [Rails-spinoffs] scriptaculous sortable

No, that is just normal URL encoding %5b%5d is [], indicating that the argument should be treated as an array. I know that many systems will also create an array from the argument name if it simply passed more than once in the argument list. I.E. secondlist=1,secondlist=2,secondlist=3 would creat

Re: [Rails-spinoffs] scriptaculous sortable

Hi Gregory, thanks for figuring it out! Another thing is, Sortable.serialize() returns following string: Recieved Ajax Request: Ajax=true&secondlist%5b%5d=1&secondlist%5b%5d=2&secondlist%5b%5d=3&secondlist%5b%5d=5&secondlist%5b%5d=4&_= Seems strange to me (some sort of Base64 encoding?), do

RE: [Rails-spinoffs] scriptaculous sortable

Oops, 1 typo in there: > node.id = 'item_' + (node.childNodes.length + 1); node.childNodes.length should be $('secondlist').childNodes.length Greg ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org

RE: [Rails-spinoffs] scriptaculous sortable

> > and then I add dynamically further elements and create a Sortable > > but the onUpdate only fires for items that have not been created > > via Javascript. > > > > I wonder if that's the same issue I'm having. My elements were created > via javascript and I cannot get the onUpdate to fire a

RE: [Rails-spinoffs] scriptaculous sortable

> and then I add dynamically further elements and create a Sortable > but the onUpdate only fires for items that have not been created > via Javascript. > I wonder if that's the same issue I'm having. My elements were created via javascript and I cannot get the onUpdate to fire at all. At lea

[Rails-spinoffs] scriptaculous sortable

Hi, maybe I am using this the wrong way but I have a list as follows bla bla bla bla and then I add dynamically further elements and create a Sortable but the onUpdate only fires for items that have not been created via Javascript. Any clues? //