Displaying 20 results from an estimated 20000 matches similar to: "2 clone methods?"
2006 May 24
7
Using inline editor without requiring a URL
Hi,
I was wondering if anyone has implemented the inplace editor without the
need for the URL. I have tried this but run into a problem in that the
''saving...'' text in shown for ever and the label is no longer editable.
Can I also confirm that my idea of the callback function is something that
runs before the value is passed to the URL (if you were to use one). What
might be
2006 May 19
10
Content Rotate, unwanted flashing on IE.
I just wrote a stupid little JS object to rotate DOM Elements (mainly
images) using Prototype and Script.aculo.us as support. Everything seems
to work well on IE and Firefox Linux but on FireFox Windows I am getting
a slight flash prior to transition.
I was wondering if a effects guru could take a quick look and see if
anything jumps out. I can live with the flash for my current project but
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an
element? I think this code works in IE but not FF:
myElement.fireEvent(''onclick'');
I really only care about IE and FF, but anything else is a bonus. I
didn''t see anything in prototype/scriptaculous for this, but I might
have missed it. Thanks.
Joe Athman
2006 May 11
2
Field and Form.Element design question
Quick design question. I am trying to get a better understanding of
Prototype. While reading through the source I am stumped by form.js.
There is a "Field" object and a "Form.Element". Both object seem to
consists of a series of actions that making interacting with form fields
easier.
My question is why two objects? It seems that there should be one object
that has this
2006 Jun 03
1
gsub vs. replace
I was looking at the gsub method on the String.prototype object in
Prototype. I was trying to determine the purpose of this method. It
seems like it duplicates the functionality of the built-in replace()
method. So:
"red, blue, green".gsub(/, /, '' - '');
"red, blue, green".replace(/, /g, '' - '');
What is the difference between these lines?
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
2005 Jan 11
7
default error page
Help, please.
I need redirection to a custom error page, instead of
the default Rails messages (e.g. Unknown action).
I use WebRick, no Apache, and i think i can''t use
public/.htaccess (# General Apache options).
Thanks.
___________________________________
Nuovo Yahoo! Messenger: E'' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica
Scaricalo ora!
2006 May 30
4
Limiting getElementsByClassName to specific nodes and entities
I''m currently using "The Ultimate getElementsByClassName"
(http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/)
instead of the Prototype version. This version seems to be faster since it
lets you specify the starting node and the type of entity. For example:
var widgets = getElementsByClassName(document, "ol", "tree");
Is
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.
2005 Dec 22
0
Clone Sortable item
Hi everyone!
Firt excuse me for my crappy english, I hope you understand me! :)
Since I just signed up on this list i don''t have a clue how the word is on
this list.
As i understand this is THE mailinglist for Scriptaculous, correct?
My question / request is:
I have two sortable lists, one is an "archive" and one is a "imagelist"
where the user can sort the
2006 Apr 11
1
IE Sortable Style Problem
Hi Guys,
I am having a problem in IE (tested versions 6 and 7 beta) with sortable divs in a container div with overflow set to scroll. It looks like all of the divs have their position set to relative after the sortable initializes, and also after being dragged. When a div (any element?) has a relative position in a containing div with overflow set to scroll, all of the divs with relative
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
2007 Jul 17
1
Prototype: 2 questions (elements' attributes, dumping methods)
hello again)
1) i just wanted to know is it possible to get element''s attributes in
hash or array?
for example something like this:
<span style="color:red;" id="myEl" onclick="alert(1)">
..
$(''myEl'').attibutes().length // == 3
2) is there any analogues of php functions var_dump() and print_r()
for Objects/Hashes and Arrays?
thank
2006 May 04
0
liquid positioning of draggabels
Hi,
is there a way to keep the positioning of draggables "liquid" after dragging
them.
See this link for an example:
http://www.suss.com/dragtest/index.htm
If you just open the page and increase/decrease the size (e.g. STRG+ mouse
wheeling)
both boxes keep their relative position. But as soon as you drag the red
box, it''s position
is fixed and only the size of the box changes
2007 Dec 21
5
dom movement methods, unattached objects
Hey guys
I have a bunch of element fragments (ie this might be a div, with children
of an image, another div) etc which aren''t attached to the document yet..
and can''t seem to call the dom manipulation methods on them:
down(''img.icon'') returns undefined but if I look at the innerHTML of the
element, there is clearly an image there with that class.
Is this is
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 May 24
3
prototype causing value undefined error
I have a project for which I used a Wicket template as a starting
point. The original example uses prototype.js.
I''m using an SVG image as a background and have included a javascript
that causes the image to always fill the background, regardless of the
client window dimensions.
This works fine in Safari 3 (Firefox doesn''t display the background
image, but I''ll deal
2007 Aug 20
0
IE7 invalid argument
I am getting invalid argument from inside Position.relavitize on IE7.
Using 1.5.1.1 of Prototype.
relativize: function(element) {
element = $(element);
if (element.style.position == ''relative'') return;
Position.prepare();
element.style.position = ''relative'';
var top = parseFloat(element.style.top || 0) -
(element._originalTop || 0);
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 Dec 12
10
Scriptaculous loader ... how to clone it?
Hi,
I would like to use the system loader as in scriptaculous.js to load
dynamicly some of my javascript files.
So I copied and pasted the code from scriptaculous.js into my
modules.js (this file should load all my js files from the directory
"modules" !). But the problem is when I launch my web page, the
scriptaculous.js works correctly but not the modules.js.
I think the two methods