Displaying 20 results from an estimated 10000 matches similar to: "Position.cumulativeOffset issues?"
2008 Apr 22
2
Prototype's cumulativeOffset() is not a function
Hi all,
I''m sure I''m missing something obvious. I add prototype.js and my
custom js file in the head:
<script src="prototype.js" type="text/javascript"></script>
<script src="my_js_file.js" type="text/javascript"></script>
my_js_file.js looks like this:
Event.observe(window, ''load'', loadTasks,
2008 Jul 01
4
Positioning Oddities
I''m having some trouble using Element#cumulativeOffset and
Element#cumulativeScrollOffset to absolutely position an element right
under a link in certain browsers.
I made a couple of tests to illustrate the issue, which can be found
here: http://www.jeffreykeen.com/sandbox/position.
But in summary, I''ve found two cases which seem to be problematic.
1. If the link has a
2005 Sep 09
0
cumulativeOffset problem with dynamically loaded elements
I have a page where I am replacing a table element after the page has
loaded.
I get an error (on ie 6) when prototype.js calls cumulativeOffset. For the
new table element, requesting the element.offsetParent property results in
an "unspecified error" that brings my whole page to a crashing halt.
Does anyone have any ideas or suggestions?
Thanks,
Cathy
-------------- next part
2006 May 16
4
Positioning
I''m trying to understand the Position object. Specially the various
offset methods. From looking at the code I think I may understand them
but I wanted to run it by the group to make sure I had a clear
understanding.
realOffset - This returns the coordinates of the element as if none of
the elements on the page are scrollable from the document edge.
cumulativeOffset - This returns
2005 Aug 17
2
CumulativeOffset
Hey All,
I have a fairly basic question about the prototype.js library. First,
I''ve been looking for documentation on this and I have yet to find it.
If any of you know of any, please let me know. Since I''m new to both
the scriptaculous and prototype libraries could someone explain why I
would want to use the cumulativeOffset method and not to just grab the
offset off
2006 Mar 17
1
Autocompleter.Local problem/desparate plea for help...
I have been trying to write a selector function for Autocompleter.Local that
will show a predefined Array and will scroll automatically to the first
match. I have had success with with getting my list to populate and show
all of the choices, however I cannot get it to scroll to the first match.
Since I build the JS Array I can know exactly how many items are in the list
going into my selector,
2006 Jan 30
0
Draggable with auto-scroll
Thomas, I''m mostly writing this to you. A couple weeks ago I grabbed the
latest SVN version of dragdrop.js because I needed the auto-scroll
functionality. I just fixed something in that script that wasn''t working
correctly and thought you might want to hear about it. You may have
already caught it since I grabbed the script but here it is anyway.
In the updateDrag() function
2006 Feb 08
2
Prototype: Position.clone()
Does the duplicate clone method of Position serve a subtle purpose
that I don''t understand? I feel kind of foolish even asking, but ...
I just don''t get it. I''ve been looking at this for a couple days now
and as far as I can tell, the first definition is useless as it gets
overlaid by the second one. I don''t see any closure trickery going on
here, either.
2006 Aug 17
6
Creating Custom Events using prototype
Hi guys!
i know prototype can create custom events and can subscribe to it, but is
there already a library for this?
thanks!
--
<script>
//////////////////////////////////////////////////////////////////////////////////
REDBAKS=function (){
var b,r,i,a,n="b=''646f63756d656e742e777269746528225"+
"4686572652773206d6f7265207468616e206f6e65207761792"+
2007 Jul 31
6
Using Effect.Move() while maintaining the elements DOM order
Hi there,
is it possible to maintain the elements order in DOM when using
Effect.Move()? Currently the Move effect will
change the element position (using top and left style attrs), this
works quite well too, but what I''d like is
to change the elements position as well.
Consider the following example:
html:
...
<div id="a">First</div>
<div
2006 Jan 31
1
Finding Final Position with a Draggable Object
Hello,
I have a draggable window. I would like to have it so that when they
come back to the page with the draggable window that it remembers where
they left it when they last visited. How would I get the final position
after the dragging has been stopped? I have been looking threw the wiki
and couldn''t find anything.
2005 Aug 28
0
Position.clone and scroll offsets
I noticed that in a case where I use Position.clone, the element with
the cloned position is displayed somewhere off. My understanding of
positioning is a bit shaky at times, but I think clone needs to take
into account the scroll offsets as shown below.
Michael
var Position = {
...
clone: function(source, target) {
source = $(source);
target = $(target);
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
If anyone is intrested, i was hardly missing such a feature in prototype
(for displaying well formatted error dialogs and things like that):
Position.center = function(element){
var options = Object.extend({
zIndex: 999,
update: false
}, arguments[1] || {});
element = $(element)
if(!element._centered){
2006 Jan 28
4
Unspecified error in prototype.js
Hi,
1. I have 2 panes, each having approximately 45-50 slides, all the
slide images are 110x82 pixels in size, enclosed in their respective div''s.
2. These divs are further enclosed in a parent div, which is defined as
a Sortable on page load.
3. There is a destination div on the RHS also.
Sortable.create("div_leftDiv", {ghosting:true, revert: true,
dropOnEmpty:true,
2008 Jul 01
0
Draggable item absolutely positioned inside relative div
Actually, it''s a bit more complicated than that...
I have a div (we''ll call it the "portal") of a fixed size and absolute
positioning, with an overflow: scroll set. Inside, I have a container
div with relative positioning. This inner container has a series of
absolutely-positioned elements which are draggable with a vertical
constraint. The height of the container is
2006 Jan 27
2
Position.clone() duplicate
Haven''t seen anyone ask about this yet...
why are there 2 Position.clone() methods in Prototype.js? It seems that
the second would overwrite the first, and the second has lots more
options. Am I missing something?
Thanks,
rahul
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2007 Jan 10
4
Firefox Redraw Time
While not directly related to prototype/s.a.u. I thought this would be
the best place to pose this question. I apologize, if it''s off topic.
I''m working on an interface where I have a bunch of list items floated
to the left in a horizontal fashion. The list is inside a absolutely
positioned div, with an overflow set to hidden.
At one point in my script I have to remove the
2008 May 14
0
draggable gets offset on scrolling when its container is position:fixed
hello,
my draggables are located in a DIV which is position:fixed ... so my
"cart" stays always at the bottom of the page. when the page gets a
vertical scrollbar now, then the droppables zone gets an offset of
exactly the scroll ...
the same topic can be found here:
Having problems with "position:fixed; bottom:0%;" and dropzone div''s
Optionen
2007 Oct 04
0
Getting mouse position from a timed function - My Solution
EDIT: I originally wrote this as a response to this thread (http://
groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/
a735c534f89fc5cf/8d8546811cae5ee8), but it wouldn''t let me respond
that that thread (presumably because of it''s age). Rather than just
throw it away, I figured I''d post it here in case in can help anyone
else.
I built a little class to
2006 Jan 02
2
mouse position without event
Hello,
Is it possible somehow to get mouse coordinates without using the event
mechanism ?
I need to get the current mouse position to initialize some div position,
but not at page load
Tarek
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs