try this
new Draggable(newElement,{
handle: 'thehandleID',
starteffect: function() {
// some function
},
endeffect : function () {
// some function
How can I get the element id of a Sortable after I drop in a LI from
another Sortable?
I got the dragging element id with
onUpdate:function(list){ alert(list.down().id); }
but how can I get the ID of where it is dropped
Any help on this would be awesome
Hi,
I can really exclude an error in the server-side code.
Your code, perhaps, but not the entire server side of the
interaction. 500 Internal Server Error is a _server-side_ error.
That's not happening in Prototype, or in the browser at all.
Something on the client-side may (or may not) be
Well, you seem to have an answer right there in your code.
onUpdate:function(list){ alert( list.id + ': ' + list.down().id); }
Walter
On May 6, 2009, at 6:10 PM, HostRail wrote:
How can I get the element id of a Sortable after I drop in a LI from
another Sortable?
I got the dragging
Afternoon guys,
Having some trouble with some code...
Event.observe('contents','keypress',function(event) {
alert('Key got pressed ' + event);
// alert(event);
});
.. doesnt work (yes the element exists)
Yet ,.
Event.observe('contents','click',function(event) {
alert('Key got
Hi Paul,
Hmmm, that's not what it's documented to do. Looking at the code,
it's clearly trying to give you the window dimensions, not the body
element. Some browsers make that harder than others. :-)
-- T.J.
On May 7, 5:48 pm, Paul Kim kimba...@gmail.com wrote:
Hi T.J., thanks for pointing
Hi T.J., that is odd... I get the same results for the width and height of
the body element using the code that Douglas gave me and Prototype's
document.viewport.getDimensions(). You can take a look at my code at
pastie.org: http://pastie.org/471309. I don't know if it makes any
difference, but I
Hi T.J., I'm sorry for any confusion, but I was trying to get the dimension
of the browser window this whole time. I misunderstood the body element
dimension as being the same thing as the browser window dimension.
- Paul K
On Thu, May 7, 2009 at 10:02 AM, Paul Kim kimba...@gmail.com wrote:
Hi,
I see you're using an absolute URL with the autocompleter, rather than
a relative one. Usually that's a red flag -- maybe you're running
into SOP[1] issues?
[1] http://en.wikipedia.org/wiki/Same_origin_policy
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer,
I know it works if I use a relative path... but the file exists on another
website within our network.
I figured I code just use a URL. Can't I?
How can I use a remote file?
On Thu, May 7, 2009 at 12:18 PM, T.J. Crowder t...@crowdersoftware.comwrote:
Hi,
I see you're using an absolute URL
Hi,
I know it works if I use a relative path... but the file exists on another
website within our network.
I figured I code just use a URL. Can't I?
How can I use a remote file?
The link I gave you answers this. That's kind of why I included
it. ;-)
--
T.J. Crowder
tj / crowder software /
I was wrong. My method was only giving me the UL that the sortable
came from. I need to know the id of what was dragged and dropped from
one list to another. onUpdate fires but it how do I get the info from
it?
On Thu, May 7, 2009 at 5:32 AM, Walter Lee Davis wa...@wdstudio.com wrote:
Well,
12 matches
Mail list logo