search for: scrolltop

Displaying 20 results from an estimated 20 matches for "scrolltop".

2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
...this.button = event.button || event.which; this.pageX = Event.pointerX(event); this.pageY = Event.pointerY(event); this.clientX = this.pageX - (document.documentElement.scrollLeft || document.body.scrollLeft); this.clientY = this.pageY - (document.documentElement.scrollTop || document.body.scrollTop); this.preventDefault = Event.stop.bind(Event, event); this.stopPropagation = Event.stop.bind(Event, event); } } ); There are probably more things that would need to be addressed; I just based this off of what functionality was in prototype ''cause I...
2008 Feb 13
1
changing scroll bar behavior
I need to change the behavior of the scrollbar when the user presses up/down arrows on the scroll bar. Specifically, I''d like to be able to set the number of pixels that scrollTop changes by when this happens. I have a div with no content that I set a height equal to the number of discrete positions I need to scroll through. I then tried to set lineHeight and fontSize to 1 and 1px respectively. This works on a mac with FF, but on a PC with FF it returns a delta of 2px on eac...
2006 Feb 21
7
non simultaneous effects
Hi all, If I call this function bla: function bla() { Effect.Appear('some_element'); Effect.Appear('some_other_element'); } Both effect happen at the same time. Is there a way to stop this from happening? I mean, how can I delay the effect on 'some_other_element' from happening until the effect on 'some_element' is finished? thanks and regards, Jeroen
2006 Mar 08
2
RE: question about auto-updating div withoverflow:auto and maintaining position
You should be able to do this by changing the div''s .scrollTop value via javascript (maybe just pick a very large number to ensure bottom is hit, like 10,000). -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf O...
2006 Apr 08
0
autocomplete update element positioning in Opera
I''m trying the auto-complete on Opera 8.5. I know it is not officially supported but it mostly works. Just one little problem: Opera seems to have some issue with .scrollTop on a input control. I expect it to report 0 but it report its current coordinate. So the update window goes to a wrong location. This is a block of code in Position.page page: function(forElement) { ... /* do { valueT -= element.scrollTop || 0; valueL -= element.sc...
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"
2006 Mar 09
0
RE: question about auto-updating divwithoverflow:auto and maintaining position
...gmane.org Subject: Re: [Rails-spinoffs] question about auto-updating divwithoverflow:auto and maintaining position On Wednesday 08 March 2006 12:27, Jeremy Kitchen wrote: > On Wednesday 08 March 2006 12:24, Ryan Gahl wrote: > > You should be able to do this by changing the div''s .scrollTop value via > > javascript (maybe just pick a very large number to ensure bottom is hit, > > like 10,000). what I ended up doing is this: <div id="wrap" style="overflow:auto"> <div id="inner"></div> </div> then in my javascript I di...
2006 Jan 30
0
Draggable with auto-scroll
...l itself immediately upon a draggble within it being dragged, instead of only when the draggable reached the bottom border of the scrollable div. To fix this, I changed the Position.page to Position.cumulativeOffset and commented out the 2 lines below it where you were adding the scrollLeft and scrollTop values to the p[0] and p[1] values. Now it works just fine. See the new updateDrag function below. Why were you using Position.page? updateDrag: function(event, pointer) { if(!this.dragging) this.startDrag(event); Position.prepare(); Droppables.show(pointer, this.element); D...
2006 Mar 17
1
Autocompleter.Local problem/desparate plea for help...
...de of the Autocompleter, but it doesn''t work based on the fact the auto_complete <div> may not be showing yet: function scrollme(box) { var topItem = Position.cumulativeOffset(box.getEntry(0)); var selItem = Position.cumulativeOffset(box.getEntry (box.index)); box.update.scrollTop=selItem[1]-(topItem[1]+15); } scrollme(box); Please help me!!! Thanks, -Steve _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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
2006 Apr 14
0
IE 6 AutoComplete...
...around the wiki, didn''t find any help... though I''d run it by you guys... In IE6, when I click to drag autocomplete results in IE, the div fades out and is gone. I can use the scroll wheel on the mouse, and it works, or the arrow keys. Also, the arrow keys do not update the scrollTop when they move out of visible range. I''ve written a hack for this one, but it has issues. Thanks for any help! -- David Fitzhenry - http://fitzhenrys.blogspot.com http://www.gone2far.com
2006 Feb 18
0
Move element into view
...ehe = this.element.offsetHeight; // Länge und Position des dargestellten Ausschnitts relativ zum gesamten Dokument var screen_bottom, screen_height, screen_scrolled; if (isIE){ screen_height = document.documentElement.clientHeight; screen_scrolled = document.documentElement.scrollTop; } else { screen_height = window.innerHeight; screen_scrolled = window.pageYOffset; } screen_bottom = screen_scrolled + screen_height; // Obere Kante des Elements sichtbar und Position des Elements + seine Höhe < screen_bottom // => Element wird schon komplett...
2005 Dec 03
0
dragdrop patch that enables dragging from and to divs with overflow:scroll
...this.onFront=false; < < this._clone.parentNode.insertBefore(this.element,this._clone); < this.element.style.left=this._clone.offsetLeft+"px"; < this.element.style.top=(this._clone.offsetTop-this._clone.parentNode.scrollTop)+"px"; < < Position.relativize(this.element); < < if(this.options.ghosting) { < < Element.remove(this._clone); < this._clone = null; < } < < }...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...this.element.parentNode.insertBefore(this._clone, this.element); } - + if(this.options.scroll) { if (this.options.scroll == window) { var where = this._getWindowScroll(this.options.scroll); @@ -347,15 +347,15 @@ var Draggable = Class.create({ this.originalScrollTop = this.options.scroll.scrollTop; } } - + Draggables.notify('onStart', this, event); - + if(this.options.starteffect) this.options.starteffect(this.element); }, - + updateDrag: function(event, pointer) { if(!this.dragging) this.startDrag(event);...
2006 Nov 23
2
Returning to the same position on a page
Hi, I am not sure if this is a general web question or a Rails specific one but either way, I would really appreciate help and guidance. My application generates quotes. To do so, you start at a page that has the client details. From there you go to a catalog (a link on the quote page) and select the items that are to be in the quote. All the above is working just fine. My problem is that when
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
...> Event.observe(window, ''load'', function() { var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'', {method: ''get'', asynchronous: true, frequency: 0.55, decay: 2, onSuccess: function(){$(''chatbox'').scrollTop=$ (''chatbox'').scrollHeight}}); }) </script> It''s for a chat program i''m making, but, the Periodical Refresh doesn''t work on Internet Explorer. If i send a message from Internet Explorer, i won''t see the message displayed but Firefox doe...
2006 Feb 13
3
moofx - scriptaculous
...on() { if (fm.param[''view''] == 3) { // scroll left this.el.scrollLeft = this.now; } else if (fm.param[''view''] == 4) { // scroll top this.el.scrollTop = this.now; } }, scroll: function(from,to) { this.clearTimer(); this.custom(from,to); } }); How would I convert this to scriptaculous? Thank you in advance for...
2008 Jun 05
0
Javascript & Scrolling
...(''plist_con''), slider); $(''pageination'').innerHTML = ''changed: '' + v } }); // scroll the element vertically based on its width and the slider maximum value function scrollVertical(value, element, slider) { element.scrollTop = Math.round(value/ slider.maximum*(element.scrollHeight-element.offsetHeight)); } // scroll the element horizontally based on its width and the slider maximum value function scrollHorizontal(value, element, slider) { element.scrollLeft = Math.round(value/ slider.maximum*(element....
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...ot;) { + ndisp = edscr.substr(1); + } else { + ndisp = process_editscript(edscr); + } + + disp=ndisp; + + term.innerHTML=ndisp; + + if (visible_height_frac != 1) { + var termheight = visible_height_frac * term.scrollHeight; + term.style.height = termheight+"px"; + term.scrollTop = term.scrollHeight; + } +} + + +function scrollterm(pages) { + term.scrollTop += pages * visible_height_frac * term.scrollHeight; +} + + +var rcv_timeout; + +function get() { + //alert("get"); + rcv_loader.load(url_prefix+"anyterm-module","a=rcv&s="+session+ca...