From: Amedeo M. <ame...@in...> - 2009-03-16 09:44:04
|
Hello Jon AjaxDroppable doesn't support updateContainerID so the action should fire ( check it ) but the page will not update, you have to trick changes using javascript. see the ajaxexample in wonder. this is a piece of code in a my app <wo:AjaxDroppable onDrop = "function(element, droppableElement) { element.getElementsByClassName('area')[0].innerHTML = droppableElement.getElementsByTagName('a')[0].innerHTML; }" id="$droppableAreaId" elementName = "li" action="$dropOnAreaAction" droppedObject="$droppedObject" /> double check your js funcrion, i see a strange ">" > {Element.update('statusMessage', 'Something'}"> try a simple test onDrop = "function(element, droppableElement) { alert('simple try'); }" regards Amedeo is a long line but is not complicated, actualli in add a <li></li> in my droppable On 14/mar/09, at 01:19, Jon Nolan wrote: > I've been struggling with a non-receptive AjaxDroppable for 5-6 hours > now. It simply does not respond to anything at all. My AjaxDraggable > objects drag just fine. I drop them and nothing happens. The action > isn't called. I've tried all the available event handlers and > nada. I > must be missing something obvious. Here's my test case: > > <wo:AjaxUpdateContainer id="test-container"> > <div id="statusMessage"> > Whatever > </div> > <wo:AjaxDraggable id="draggable1" class="drag-it" elementName="div" > draggableObject="$draggableObject" revert="$true"> > Drag > </wo:AjaxDraggable> > <wo:AjaxDroppable id="droppable1" class="drop-it" elementName="div" > updateContainerID="test-container" > droppedObject="$droppedObject" > droppedDraggableID="$droppedDraggableID" > action="$dropObject" > onDrop="function(element, droppableElement) > {Element.update('statusMessage', 'Something'}"> > Drop 1 > </wo:AjaxDroppable> > </wo:AjaxUpdateContainer> > > Spot anything out of whack? > > Oh, prototype.js, effects.js, dragdrop.js and wonder.js are all loaded > in that order. I've ruled out a jQuery conflict by constructing my > test > case without it loaded. > > I've never had AjaxDroppable working. This is a new endeavor. > > Latest wonder is installed. > > Any help very much appreciated, > Jon > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc > |