Displaying 20 results from an estimated 1100 matches similar to: "getDimensions() fails for elements with ancestors with display: none"
2007 Nov 07
1
draggable with iframeshim for ie6
you all know the problem with select and textbox in ie6 where you need
an iframe under your divs so they will visually be on top. does
scriptaculous have api for iframeshim like yahoo yui does?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send
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
2006 Apr 10
4
Element.getDimensions() support for IE?
Hey all,
I''m not sure if IE can support this, but I''m trying to get the dimensions of
an element that has percentages for height/width. In the example code
below, I''m trying to get the dimensions for the ''MyCell'' element. Firefox
supports Element.getDimensions(''MyCell''), but IE returns 0 for the height &
width returned by that
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
2006 Feb 22
2
Newbie seeks helps ordering ancestors from acts_as_tree
I''m sure this is really obvious but I''m feeling my way here with rails
(and Ruby) and have tried a couple of things without success. So, can
anyone tell me the best way to reverse order the retuen list of
ancestors.
In the controller I have:
@ancestors = @category.ancestors
which returns an array starting at the parent and ending with the root.
When I then loop through the
2007 Jul 26
1
getWidth(), getHeight(), and getDimensions() in IE6
I''m getting an "Object doesn''t support this property or method" when
calling $(element).getWidth() in IE6. I dont see any note of this
method not working in IE so I''m confused.
Can someone help please?
Nate
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2005 Aug 31
4
Element.show - element.style.display=''''
All
Head up.
I found that when I had a hidden DIV (using css - display: none) which I
wanted to Effect.Appear on some event (although the underlying problem seems
to be with Element.show()), I had to make an amendment to the underlying
prototype.js code by changing :
element.style.display = '''' -> element.style.display = ''block'';
I think the problem was
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable
item and then detect the coordinates where it is dropped. So my first
approach was to just use the draggable_element with :revert => false, like
so:
<%= draggable_element "my_element", :revert => false %>
That works great and lets me drag stuff all over the place. In the
scriptaculous
2007 Apr 06
5
Getting a dynamically generated elements dimensions
Ive posted this before, but unfortunately I still have yet to resolve
it after numerous attempts...
Here is the overview: populate a container element with some new html
using Element.update and then retrieve the new dimensions of the
containig element.
Here is a bit of code snippet that I would think should work.. but
doesn''t:
==== start snippet ====
<style>
.bigBox {
2009 Dec 15
0
DO NOT REPLY [Bug 4621] Option to create ancestors of destination, like "mkdir -p"
https://bugzilla.samba.org/show_bug.cgi?id=4621
lists at elasticmind.net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lists at elasticmind.net
------- Comment #4 from lists at elasticmind.net 2009-12-15 06:12 CST -------
Greetings,
I just noticed
2005 Sep 07
3
Autocomplete Error w/Version 1.5_pre4
I recently updated to version 1.5_pre4 to use the excellent in-place
editor, however, I''m now seeing a bug with AutoCompletion.
When text is entered in the text field for auto completion, the
auto_complete div is not updated (but the server does receive the
request and return a response). Upon removing focus from the text
field, 2 instances of the following error can be seen in both
2009 Dec 16
1
Option to create ancestors of destination, like "mkdir -p
> I agree with everyone else that it would be incredibly useful for rsync to
> either adopt such behaviour by default (assuming always doing 'mkdir -p' isn't
> harmful in any way), or have a tunable to enable it.
I also agree the suggested behavior makes a lot of sense and I think it is a good idea.
However, some deployments may rely upon the current behavior. As an
2008 May 30
7
Styling an Anchor Tag With Prototype
I have a question: How do you style the various components of the
anchor tag? I am doing it this way:
$$(''a:link,a:visited'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp4_Hex'') });
});
$$(''a:hover'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp5_Hex'')
2005 Oct 26
2
Troubleshooting inplace editor
I can''t get the inplace editor to do anything for me. The output appears as
regular formated, unclickable text. Maybe I am missing something simple.
1. I just downloaded script.aculo.us <http://script.aculo.us> 1.5_rc3 and
copied it to my javascript folder.
2. To set up a simple test, I created a new test page containing only the
copied from demo1 from the script.aculo.us
2008 Feb 18
6
inheriting static/class methods with new prototype.js class creation
Hey all.
I want something like this to work:
var Foo = Class.create();
Foo.myStaticMethod = function(){alert("I''m a static method!")};
Foo.myStaticMethod(); // works
var f = new Foo();
f.myStaticMethod(); // doesn''t work, but that''s good--I don''t want it
to
var Bar = Class.create(Foo);
Bar.myStaticMethod(); // doesn''t work, undefined :(
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run
an effect when a link is clicked, then go to that page, or if it was
possible to have an effect run when the page unloads.
I have tried <body onunload="new Effect.Fade("whatever");> and some
prototype page exit events, could get a alert("") function to work,
but not the effects. Any ideas?
2007 Dec 08
2
Assigning submit handler to form
Hi folks,
A quick question for somebody. I''m adding a simple validation JS to my
form by attaching it like so:
$(''my_form'').observe(''submit'', function(e) { return
view_ns.validate_form(Event.element(e)); });
The validate_form() function returns true or false. But regardless of
it''s return value, the form is always submitted. ''sup wi
2008 May 24
5
TypeError : transport.responseText has no properties
Hello all,
I''m using prototype in conjunction with Extjs to build out an Ajax-
driven app. I''m noticing that occasionally there will be Ajax
Requests that will occasionally not complete. After some
investigation, I found that when I made a call to String#evalJSON, it
would throw a TypeError with the following message :
transport.responseText has no properties.
When this
2008 May 01
3
Adding script line give errors Help!
I am trying to add this script
<script language="javascript" type="text/javascript" src="http://
www.expedia.com/pubspec/scripts/storefront/expe.sf.vertical.350.asp?pid=&aid="></script>
To my idex page and it give me errors, when I delete this line <script
src="js/lightbox/prototype.js" type="text/javascript"></script>
2006 Nov 28
11
Extending Element with getTop, getWidth, getLeft problem
Hi,
I need to extend the Element object with getTop, getWidth, getLeft .
I wrote something like this in an js file and loaded it after the
prototype.js .
----------------------------------------------------
Object.extend(Element, {
getWidth: function(element) {
element = $(element);
return element.offsetWidth;
},
getTop: function(element) {
element = $(element);
var curtop