Anyone on the list going to The Ajax Experience in San Francisco May 10?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Why do effects that display an element (like Appear or Slide Down) start by displaying the element for a split second and then make the element disappear?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/
I'm not questioning the usefullness of your functions, but there was
already a discussion today regarding the use of $ functions and them
polluting the namespace.
I'm guessing the advice you'll be given is to not use the shortcut
methods (which I tend to agree with).
On 4/27/06, Faison, Sandford
Hey all,
I've had these functions for some time now, and would like to offer them
as two new dollar-sign functions - elements to be extended by Prototype
geniuses. :-)
makeText(string) as $T() - return text node element
Does just what it says... I'm sure someone could extend it nicely when
via Pr
That was it!
I swapped out the Element.remove for node.parentNode.remove and it
worked. Thanks so much, very helpful.
On 4/27/06, Siegfried Puchbauer <[EMAIL PROTECTED]> wrote:
> Using prototype 1.5.0_rc0?
>
> The problem is Element.cleanWhiteSpace() calls Element.remove() on empty
> textnodes. E
Another thing to watch for (though maybe we got to the bottom of this
already) is that IDs cant start with a number.
I.e. id="0123123" is invalid, and can lead to strange errors like the
one you describe. If your id is actually "myDiv", there's no problem,
but I've seen lots of people try and us
Using prototype 1.5.0_rc0?The problem is Element.cleanWhiteSpace() calls Element.remove() on empty textnodes. Element.remove tries to extend the element (Element.Methods) and IE doesn't support thisI've opened a ticket some time ago
http://dev.rubyonrails.org/ticket/4642There is also a simp
Set it to 100px, and add display:none; to the inline style.From the wiki (http://wiki.script.aculo.us/scriptaculous/show/Effect.BlindDown
):Also,
if you would like the block hidden when someone first lands on your
page, you must use the "display: none" property within the style
attribute of the div
What you need to do is wrap your original DIV in another div that doesn’t
have a border and has its background color as transparent. Set the containing
DIV to have a height of 100px. Place your original DIV inside this one with a
height of 0px. Your call should still pass the original (now
You happen to have that ID as a "name" attribute anywhere else in the page?On 4/27/06, Jason Hummel <[EMAIL PROTECTED]
> wrote:> What actually IS the parentnode? Perhaps its one of those "we'll render this
> element tag implicitly in firefox" issues (a la )?The parentnode is a div with an ID. I've
I have a div that is hidden on my page.
When I mouse over an image I want the div to scroll down to 100px tall. I can
get it to work when the div is initially shown on the page at 100px tall but
when I start it out at 0px tall it doesn’t do anything and the only code
that you can pass is
> What actually IS the parentnode? Perhaps its one of those "we'll render this
> element tag implicitly in firefox" issues (a la )?
The parentnode is a div with an ID. I've got something crazy going on
here. div.parentNode doesn't work, but div.parentNode.parentNode works
fine. If I put the actual
Just to
clarify:
Are
you trying to make a DIV element that is hidden, slide down 100px and then show
when it finishes moving? Or are you trying to have a DIV element slide down
100px and fade into visibility while moving?
…can you
take the time to actually re-read what y
What actually IS the parentnode? Perhaps its one of those "we'll render this element tag implicitly in firefox" issues (a la )?On 4/27/06,
Ryan Gahl <[EMAIL PROTECTED]> wrote:
tryvar div = $($('mydiv').parentNode.id);Element.cleanWhitespace(div);...make sure the parentNode element actually has an
Hello,
I want to have my box that I’m sliding down hidden
when I start and then slidedown to 100px. What is the best way to do this? I don’t
see anything on the wiki about it.
Thanks,
Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]
Phon
tryvar div = $($('mydiv').parentNode.id);Element.cleanWhitespace(div);...make sure the parentNode element actually has an id. It may be there is a bit of a difference between the reference you get from
document.getElementById and trying to access a node (or nodeset) directly.On 4/27/06, Jason Humm
On 4/27/06, Steve Longdo <[EMAIL PROTECTED]> wrote:
> Meow...er I mean, why not just select the $('parentNode') in the first
> place?
I actually tried that as well:
var div = $('mydiv').parentNode;
Element.cleanWhitespace(div);
and got nada on IE
___
R
Meow...er I mean, why not just select the $('parentNode') in the first place?On 4/27/06, Jason Hummel <[EMAIL PROTECTED]
> wrote:Hey cats,I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.doing something like:var div = $('mydiv');Element.cleanWhitespac
Hello,
I am wondering if anyone has created any class that will
plug-in and make it easy for anyone to create a stateful application using the
prototype library.
Thanks.
Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]
Phone: (317)
492-
Hey cats,
I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.
doing something like:
var div = $('mydiv');
Element.cleanWhitespace(div);
works really great, but try doing:
var div = $('mydiv');
Element.cleanWhitespace(div.parentNode);
or
var div =
I think you should just make a $FU function in reply :)
Just kiddin'
Greg
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Andrew Tetlaw
> Sent: Thursday, April 27, 2006 8:40 AM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: R
Hello there, i working with prototype but i have a little doubt, I'll
always use the shortcut $F to get values in a form, that's ok, but what
happens if i need get the value of one of three radio buttons value?
normally i get the radio button value with
document.formName.radioName but the shortcut
On 28/04/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:
> If everyone writing "the prototype way" keeps adding $[pick a letter
> of the alphabet] functions, I can see this becoming a problem...
Well, perhaps I was trying to be 'too cute' adding those shortcuts.
I'll re-release it if they really must go.
Everything looks great. But I have one minor beef with the validation stuff. It has to do with the $ shortcut functions and the fact that that potentially pollutes the global namespace. The practice of defining global functions this way is something that, for my projects, the prototype library help
I agree. That is awesome!
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Andrew Kaspick
Sent: Thursday, April 27, 2006 10:15 AM
To: rails-spinoffs@lists
Nice use of the effects with the validations, looks good.
On 4/27/06, Andrew Tetlaw <[EMAIL PROTECTED]> wrote:
> Thought I'd try and contribute to the growing prototype ecosystem.
>
> tabs:
> http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/
>
> field validation:
> http://tet
Thought I'd try and contribute to the growing prototype ecosystem.
tabs:
http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/
field validation:
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/
Both real easy and clean to use. Hope y'all can use them so
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrzej
Rumpfelt
Sent: 27 April 2006 12:35
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Prevent IE background
imagereloadingonscriptaculous drag
follow up to myself..
This is all you need:
http://www.fivesevensix.com/studies/ie6flicker/
And get this to avoid the 'flicker'
"The area of an element with a background-image must be at least 2500 pixels."
That means a 50x50 pixel element with background image will not 'flicker'
On 27/04/06, Andrzej Rumpfelt <[EMAI
follow up to myself..
just noticed it reloads twice.. on start and
stop dragging..
greetings,
Andrzej Rumpfelt
- Original Message -
From:
Andrzej
Rumpfelt
To: rails-spinoffs@lists.rubyonrails.org
Sent: Thursday, April 27, 2006 12:30
PM
Subject: Re: [Rails-s
Hi,
strange.. I tested it in IE and with the first
example it was reloading images constantly while dragging.. like it had to
reload on every position of this div.
Then I changed the code to your fix and now,
while dragging, it's ok but when I stop moving the div, then it reloads images..
bu
Hi all,
Just a quick FYI to anyone who may have this problem, as I was writing a
question and then solved it myself. The prob:
I have a draggable div that uses a dropshadow as follows:
http://demo.script.aculo.us/scripts/prototype.js";
type="text/javascript">
http://demo.script.aculo.us/scri
32 matches
Mail list logo