Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Mike Schrag
it works fine for me. But since I don't know what parentOnUpdate(container) does, it might not be the perfect solution. @Mike: I think this is your code. Do you have any hints for me? My hint is that if the component is weird and broken, it is a pretty good indication that I don't use it :)

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Hi Daniele, Am 15.04.2008 um 13:00 schrieb Daniele Corti: Well there is also the other use: each has a textfield with the order id, that allow the user to change it dinamically. look at this: http://www.rantsandraves.co.uk/images/rantpix/rant15/joomla.gif Yea, but then I don't need

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Ok, the problem seems to be the onUpdate binding. The AjaxSortableList generates code like: ... ; var parentOnUpdate = parentOnUpdate(container); ... If you set the onUpdate binding (e.g. with 'updateContainerUpdate()') it generates ...; var parentOnUpdate = updateContainerUpdate(); paren

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller <[EMAIL PROTECTED]>: > Hi Daniele, > > Am 15.04.2008 um 12:13 schrieb Daniele Corti: > > > > > > > Well, I think you should consider a way different of Sortablelist to > > reorder the list... try something like arrow up and down and textfield with > > the order (in Jo

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Hi Daniele, Am 15.04.2008 um 12:13 schrieb Daniele Corti: Well, I think you should consider a way different of Sortablelist to reorder the list... try something like arrow up and down and textfield with the order (in Joomla Style if you know it). Or you can do two pages, one for reorder

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller <[EMAIL PROTECTED]>: > Hi Daniele, > > Am 15.04.2008 um 11:53 schrieb Daniele Corti: > > > > > > > > > Just to know, if you remove the "xyzUpdate()" function at the onUpdate > > event what happen? > > > > everything works as suspected. > The problem is, I need the upd

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Hi Daniele, Am 15.04.2008 um 11:53 schrieb Daniele Corti: Just to know, if you remove the "xyzUpdate()" function at the onUpdate event what happen? everything works as suspected. The problem is, I need the update of the AjaxSortableList because I have the following configuration: My L

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Hi Daniele, I don't perform any expensive actions on the server side. You can force this behaviour if you take the Wonder Ajax Examples and surround one of the sortable lists with an AjaxUpdateContainer. Then call the update function of the update container on onUpdate of the AjaxSortable

Re: Strange behaviour of AjaxSortableList

2008-04-15 Thread Daniele Corti
2008/4/15 Helmut Schottmüller <[EMAIL PROTECTED]>: > Hi, > > I created an AjaxSortableList which I enclosed with an AjaxUpdateContainer > (id="xyz"). > To the onUpdate binding of the AjaxSortableList I bound "xyzUpdate()" to > update the parent update container after the list has been changed. > >

Strange behaviour of AjaxSortableList

2008-04-15 Thread Helmut Schottmüller
Hi, I created an AjaxSortableList which I enclosed with an AjaxUpdateContainer (id="xyz"). To the onUpdate binding of the AjaxSortableList I bound "xyzUpdate()" to update the parent update container after the list has been changed. The strange behaviour is that when I change the position of