Displaying 8 results from an estimated 8 matches for "originalleft".
2005 Aug 15
6
setting position for draggables?
Hi list,
how can I set the top and left CSS properties for draggable divs? When I modify the properties directly, the DIV jumps to its old position when I start to drag it.
Thanks in advance!
Martin
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle
Freunde gleichzeitig schicken:
2005 Nov 21
0
New Core Effect
...operty;
var options = Object.extend({
toRight: null,
toLeft: null,
toTop: null,
toBottom: null
}, arguments[2] || {});
this.originalRight = parseFloat(Element.getStyle(this.element,
property + ''-right'') || ''0'');
this.originalLeft = parseFloat(Element.getStyle(this.element,
property + ''-left'') || ''0'');
this.originalTop = parseFloat(Element.getStyle(this.element,
property + ''-top'') || ''0'');
this.originalBottom = parseFloat(Element.getStyle(...
2005 Oct 17
1
Passing a draggable element''s attributes to controller on drop
...d a solution? Or does
prototype still need to be extended to allow the persistence of the
draggable object''s position?
I''m just trying to drag divs around the page and have them keep their
position when I drop them (I *think* what I want to do is just pass
the difference between originalLeft and originalTop and the moveTo
values to the controller and just update that record''s coordinate
fields in the database). Is this possible?
dc
2005 Jul 01
1
drag problem
Hi - my first post here so first of all can I say how impressed I am
with this library
Now to my first question - I''m simply trying to make a div draggable,
here''s my test page:
http://localhost:85/folio11.co.uk/js_tech_demo/scriptalicious_test.html
what seems to be happening is that the first drag works fine, but on
subsequent drags the div''s initial coordinates
2006 Feb 08
6
Effect Help
I posted the following earlier:
"I need a way to do a blind up that makes the element APPEAR and a blind
down that makes the element DISAPPEAR. In essence, the opposite of the
current blindup/blinddown.
Thoughts?"
I think somebody responded in Dutch. Anyone else have any ideas?
--
Yehuda Katz
Web Developer
(ph) 718.877.1325
(fax) 718.686.4288
2006 Apr 08
0
MSN like blind - BottomToTop
...lStyle = {};
[''top'',''left'',''width'',''height'',''fontSize''].each( function(k) {
this.originalStyle[k] = this.element.style[k];
}.bind(this));
this.originalTop = this.element.offsetTop;
this.originalLeft = this.element.offsetLeft;
this.originalHeight = this.element.offsetHeight;
this.originalWidth = this.element.offsetWidth;
this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
this.dims = null;
if(this.options.scaleMode==''box'')
this.dims...
2005 Dec 03
0
dragdrop patch that enables dragging from and to divs with overflow:scroll
...t; if(this.options.ghosting && !this.onFront ) {
---
> if(this.options.ghosting) {
350,367d324
< if(this.options.bringtofront && !this.onFront) {
< this.onFront=true;
< pos=Position.page(this.element);
<
< this.originalLeft = pos[0];
< this.originalTop = pos[1];
< this.originalZ=1000;
< document.body.appendChild(this.element);
<
< var pointer = [Event.pointerX(event), Event.pointerY(event)];
<
< this.offsetX = (pointer[0] - pos[0]);
<...
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications.
I know this has been mentioned before and is on the Wish List, but it''s very frustrating.
If you look at this other Javascript library called "Drag''nDrop & DHTML Library"