[jQuery] Re: jquery UI sortable, how can i get the text of the that i just moved ?

2010-01-04 Thread MorningZ
> i tried: $(ui.item).text() but i get an ui is not defined error that would potentially be a valid way to do it, but without any of your code to work with, it's hard to help with that

[jQuery] jquery UI sortable, how can i get the text of the that i just moved ?

2010-01-04 Thread kknaru
what i'm trying to do is to get the text that is contained by the moved li, after the list item was moved. Is there a way to do that? i tried: $(ui.item).text() but i get an ui is not defined error (i imported just jquery.js, ui.core.js and ui.sortable.js , do i have to import something else?) tha

[jQuery] Re: JQuery UI Sortable based on DIVs

2009-08-04 Thread EugeneS
o ... thanks a lot :) its time to get some rest ... coz patience now = 0 :) once again thanks :) On Aug 4, 12:43 pm, "Richard D. Worth" wrote: > .sortable() needs to be called on the container element #trip_content, not > each child. Then you can use the handle option to make each child sor

[jQuery] Re: JQuery UI Sortable based on DIVs

2009-08-04 Thread Richard D. Worth
.sortable() needs to be called on the container element #trip_content, not each child. Then you can use the handle option to make each child sortable only by the .itemHeading: $("#trip_content").sortable({ handle: ".itemHeading" }); - Richard On Tue, Aug 4, 2009 at 5:32 AM, EugeneS wrote: > >

[jQuery] Re: JQuery UI Sortable based on DIVs

2009-08-04 Thread EugeneS
here i made a small sample so you can see the problem in action http://zaslugi.ru/temp/demo.html coz i already posted request here will try to receive help here to bot create multiple clones ... and then will try to post in UI group :\ Thanks. On Aug 4, 11:42 am, "Richard D. Worth" wrote: > C

[jQuery] Re: JQuery UI Sortable based on DIVs

2009-08-04 Thread Richard D. Worth
Could you put together a live sample on jsbin.com: http://jsbin.com/ Also, note there's a dedicated list for jQuery UI questions: http://groups.google.com/group/jquery-ui Thanks. - Richard On Tue, Aug 4, 2009 at 4:05 AM, EugeneS wro

[jQuery] Re: JQuery UI Sortable based on DIVs

2009-08-04 Thread EugeneS
sorry this URL http://www.screencast.com/t/LNfPgoOWUf7

[jQuery] JQuery UI Sortable based on DIVs

2009-08-04 Thread EugeneS
hello, have such a structure in HTML which finally looks like shown on this image http://www.screencast.com/t/LNfPgoOWUf7: -- Johannesburg Depart:

[jQuery] UI Sortable - Limit drag to item header

2009-06-21 Thread Collaborate
Hi! I'm wondering how I can limit the "dragability" of an sortable item, to ex. a element inside the item. Meaning, I only want the item to sort when the header of the item is draged. Is there a simple way to do this, or do I have to modify core code/ create a helper to accomplish this functiona

[jQuery] ui sortable - cancel action if list is too long

2009-06-05 Thread Robert Bobrowski
I have few lists with ui sortable/droppable and I want to have let say max 4 elements in one. So: $("ul[id^='sortable']").sortable({ connectWith: '.user-list', dropOnEmpty: true }) $(".accept-drop").droppable({ drop: function(event, ui) { //some code

[jQuery] ui sortable - cancel action if list is too long

2009-06-05 Thread Robert Bobrowski
I have few lists with ui sortable/droppable and I want to have let say max 4 elements in one. So: $("ul[id^='sortable']").sortable({ connectWith: '.user-list', dropOnEmpty: true }) $(".accept-drop").droppable({ drop: function(event, ui) { //some code

[jQuery] ui sortable serialize inputs of li

2009-05-11 Thread Mean Mike
Hello all and thanks for looking, I'm trying to use serialize option for ui sortable but each li has multiple inputs and I want to get the inputs back not just the record id example and what I want back is a two dimensional array so that the result of serialize looks like this ite

[jQuery] Re: jquery ui sortable

2009-02-17 Thread Richard D. Worth
http://groups.google.com/group/jquery-ui/about - Richard On Tue, Feb 17, 2009 at 6:54 PM, Ashit Vora wrote: > > Hi, > I was just playing with jQuery UI sortable. > > Whenever an element is sorted, I want to call a function. > > eg. There are five paragraph elements containin

[jQuery] jquery ui sortable

2009-02-17 Thread Ashit Vora
Hi, I was just playing with jQuery UI sortable. Whenever an element is sorted, I want to call a function. eg. There are five paragraph elements containing A, B, C, D, E. After every sort, I want to check it the current order is EDCBA or not. How can I do this? Thanks :)

[jQuery] UI Sortable

2008-07-16 Thread armsteadj1
I am having a little trouble with the update callback when i drag an item from one Sortable to another.. the update function gets called twice.. is there anyway around this or am i going to need to think of a way around the 2nd call? The calls are going to be sending a json array to the backend w

[jQuery] Re: [jquery-ui] sortable problem ...

2007-10-23 Thread Harrie
i face this mistake and you can access this page:http://dev.jquery.com/ browser/trunk/ui/current/ui.sortable.js?rev=3666

[jQuery] Re: [jquery-ui] sortable problem ...

2007-10-05 Thread Jörn Zaefferer
Michael Stuhr schrieb: in addition to this, i'm getting constantly errors while trying out the demo under: http://docs.jquery.com/UI/Sortables/sortable#options firebug keeps tracing errors after dropping one of the items ... i had to reload the whole page to stop this. I can second that. Thou

[jQuery] [jquery-ui] sortable problem ...

2007-10-05 Thread Michael Stuhr
I have problems getting some of the the callback functions to work. 'stop' and 'update' refuse to work for me. here's some example code i'm using: Item 1 Item 2 Item 3 Item 4 Item 5 $j('#List').sortable({ start:function () { c