similar to: Protoype problem

Displaying 20 results from an estimated 900 matches similar to: "Protoype problem"

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 Apr 26
12
RE: how to use Effect.BlindUp for resizing a div
var height = someElementReference.offsetHeight; and to set it: someElementReference.style.height = "100"; It is worth saying that offsetHeight and offsetWidth are non-standard compliance. They will give you the total rendering height and this will cause problems in IE since they use a different box model than FireFox. So you will have to do some height juggling in IE if you are using
2006 Mar 17
3
Element.getDimensions
Hi all, should it be considered a bug that Element.getDimensions returns the offsetWidth and offsetHeight properties from elemens having not display none, but clientWidth and clientHeight from elements with display none? Or is it a feature? Regards Lorenz
2005 Sep 15
4
Scrolling Tables/Divs?
Is anyone working on a scrolling table or div such as the openrico livegrid demo? I''m looking to develop (much like smashbox''s scrolling images) a collection of thumbnails that you can scroll horizontally. I''ve got a non-prototype.js example but I wanted to check to see if anyone was closer than I to this. BTW, I will be finishing up my slider code shortly and
2008 Jun 05
0
Javascript & Scrolling
I am currently in the middle of creating a horizontal scrolling product list with page buttons that use effects to scroll from one page to another using scriptaculous. I am having problem that when the window is resized, so only the viewable area of the div changes, this causes the width to change and then because of that the scroll effect will scroll to position 2000 but then when the scroll bar
2005 Jun 23
0
dragdrop library
Thomas, Special thanks for the dragdrop library. I consider your javascript abilities quite superior to my own, in fact I''m just setting out on a quest to master javascript, I found your library the other night and started hacking away on my app. I replaced a dom-drag.js library I was using before with yours since it integrated with prototype better, and appears to be better coded.
2009 Feb 25
1
[PATCH] CompRect more intuitive
Hi, Compiz++ uses CompRegion instead of XRectangle, right? This patch tries to improve CompRect usability *First* I was using CompRect, but I've found that the only way to modify a CompRect is using setGeometry function: void CompOutput::setGeometry (int x1, int x2, int y1, int y2); So I created setX1, setY1, setX2, setY2 functions *Second* As you can see above, setGeometry uses:
2005 Dec 14
1
[scriptaculous] scroll down to show full auto completion list (w/ possible patch)
Hi everyone, lately I''ve implemented an auto completion textfield at the bottom of a form. I was a bit bothered by the fact that the user would potentially need to scroll down in order to see all the options offered by the auto completion. I couldn''t find any information on how to auto scroll to the auto completion list with bulit-in functionality so I modified controls.js
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"
2005 Jul 28
2
CSS and autocompleter
hi. I''m rewriting the code from my own save-yourself-if-you-can implementation of xmlhttprequest to scriptaculous autocompleter, and it''s all fine and dandy, except that I am having difficulty positioning the auto_complete div which contains the results returned by xmlhttprequest. the auto_complete div is always stuck in one place, it starts a little below and half
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
Hi. Some time ago I posted some prototype-"extensions", which could come in handy. I''ve been updating them a bit and added a few more and I think its time to share it again. Feel free to use it. The code should be rather self explaining, but heres a quickguide. - new Geometry.Size(width,height) - Creates a new instance of size - new Geometry.Position(x,y) - Creates a new
2006 Apr 08
0
MSN like blind - BottomToTop
Previously, by mistake I added request in wish list for slide like MSN. Actully it was Blind like msn. However it was my mistake so I tried to created script by my slef - and able to do it. But I am new to this, so my script is not in good condition. Effect.Scale2 = Class.create(); Object.extend(Object.extend(Effect.Scale2.prototype, Effect.Base.prototype), { initialize: function(element,
2006 Jan 19
2
how can I get offsetHeight in IE?
Ok, This is driving me nuts. I am trying to determine the height of an element in IE, but offsetHeight returns undefined. I looped through all of the attributes that contain the word ''height'', both in the element and in the element.style, but they are all undefined. Is there a better way to determine the rendered height of an element? Is there something I need to do to the
2012 Dec 15
1
Could Rstd_Busy do something (src/unix/sys-std.c)?
Currently the function Rstd_Busy() does nothing (src/unix/sys-std.c): void attribute_hidden Rstd_Busy(int which) { } The function is called through a pointer and R interfaces can change this pointer and, thus, use a different function. I don't plan to create a whole new interface to R, but I maintain a package whose aim is to provide a new feature to R when it's running in a
2006 Jan 20
1
[protoype] Problem with Effects on draggable element if revert is true
hi, I have a draggable element (cart-item) in a shopping cart <%= draggable_element "item_#{product}_#{i}", :revert => true %> When this element is dragged outside the cart into the "main_div", I want to show a puff effect and remove the element. When it is dragged within the cart, it should revert. So i wrote this code for drop_receiving _element <%=
2005 Oct 27
3
String.protoype.toQueryParams
Hi, I am trying to play with all the methods in the Array Object. Just wanted to check with you guys if this is the correct explanation of toQueryParams(). If yes, then I''ll add it to the documentation as well. Works for me (but I am not sure if it''s the correct way to use it). /* String.prototype.toQueryParams takes a query string, i.e, string with name value pairs
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 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
2013 Jun 20
2
Firefox - remote xul manager gone after Centos update
Dear All, I am faced with this problem: Firefox version is 17.0.6 before and after the update I ran an update today; bash-4.1# yum history Loaded plugins: fastestmirror, refresh-packagekit, security ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 296 | james <james>
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;): How can we convert a Cucumber feature file into HTML with syntax highlighting? Not the test-runner output; that''s preprocessed so it does not match the input file... Tx! -- Phlip