Forum Moderators: open

Message Too Old, No Replies

Disappearing List Bug

Disappearing List after using a droppable to add an item to another list

         

merovingian

10:59 pm on Mar 24, 2009 (gmt 0)

10+ Year Member



Hi guys,

Firstly I am using Scriptaculous to implement the sortable list but have looked there and not been able to find any reason for this to be occurring.

I have a list of sortable items, there are 2 droppables enabled with
the list, 1 to delete it and the other to place a "linked" item in
another sortable list utilising a relational database.

This all works fine except for this bug:

When I add an item to the second list it goes there no problem and I
can sort that list, but as soon as i try to do anything with the first
list all the items in the list disappear. If I manually refresh the
page then they all appear again as normal.

Im using AJAX with my site as well and have a separate method and php
call to insert from 1 list to another.

Im not sure where I this bug might be, there is a lot of relevant code
so I figured id ask before posting it incase someone can assist where
the error might be or perhaps a bit more specific in terms of which
code I need to post.

Hope someone can help this has been driving me up the wall all
night! :)

merovingian

12:11 pm on Mar 25, 2009 (gmt 0)

10+ Year Member



Anyone got any idea's for this?

To replicate the problem try adding a chunk to a page, then doing anything with the chunk list after and you will find it disappears.

Thanks for taking the time to check it out.

Can post any code required just as im not sure which area is at fault here didnt want to simply post reams of code.

[edited by: coopster at 12:58 pm (utc) on Mar. 25, 2009]
[edit reason] no personal urls please TOS [webmasterworld.com] [/edit]

whoisgregg

6:26 pm on Mar 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, merovingian!

First off, I would check to see if the behavior is the same in other browsers. It may help to know if this is consistent across browsers.

Second, I would create a duplicate of the page, and methodically strip out all the other code on the page, testing as you go to see if the problem still exists. Once you've isolated the line(s) that turn the error on and off, post those and we'll see what we can do. :)