Hello,
This is a stupid beginner question I have a row of images with the
class of highlight I would like to make them fade from 100% opacity
to say 50%. I'm pretty sure i have to use the new Effect.Opacity
(class, {duration:0.5, from:1.0, to:0.5});
here is what I've tried as far as javascript:
Good morning,
I wanted to use the method getElementsByClassName by prototype to
retrieve an array of objects. Using my Firefox 3.0.7 on Windows XP
alert told me that the returned value by this method is a Nodelist,
which I couldn't iterate using prototypes each-method for arrays.
Prototype's
Hi,
Prototype's api docs (http://www.prototypejs.org/api/element/
getElementsByClassName) state that the method returns an array,
normally.
They also say As of Prototype 1.6, document.getElementsByClassName
has been deprecated since native implementations return a NodeList
rather than an
Hi Todd,
You're setting this._element like this:
this._element = parentDiv.select(.txt-message-panel);
Element#select[1] returns an array of matching elements, not an
element. I don't think $[2] accepts arrays; it accepts strings (IDs)
and elements, and will accept several of them as
Hi,
Without knowing how you're doing the updates and such, I don't think
anyone is going to be able to help. Probably need to create a simple,
self-contained example demonstrating the problem.
FWIW,
On Apr 1, 5:20 pm, Abel Figueiredo abel.figueir...@sroque.pt wrote:
Hi all.
I've got two
On 1 Apr., 16:23, Jay hooligan...@gmail.com wrote:
ugh... I've been reading through the scriptaculous code but having no
real luck figuring it out.
it would be nice if I could see the demos at script.aculo.us but
everytime I try to go there the page times out.
There is no real demo for this
On Apr 1, 5:02 pm, ferion fer...@gmx.de wrote:
Hi everybody,
i got another Problem wis prototype
Effects are actually script.aculo.us, not Prototype, but we knew what
you meant ;-)
$(widget.widgetId).morph('left: 100px; top: 200px');
is working perfectly.
But i do want to move the
Olla,
this is emberassing.
I tryd about 10 hours yesterday, including reverse engeneering of
script.aculo.us and nothing seems to work.
Solution: use with new and everything works fine.
Thanks for answering my stupid questions.
Ferion
On Apr 2, 1:09 pm, ColinFine colin.f...@pace.com wrote:
It is odd that this question get's no response.
On Apr 2, 6:43 am, claus.k...@googlemail.com
claus.k...@googlemail.com wrote:
On 1 Apr., 16:23, Jay hooligan...@gmail.com wrote:
ugh... I've been reading through the scriptaculous code but having no
real luck figuring it out.
it would be
Try a ruby(or whatever that code is) forum or paste in the source
from firefox after it has been interpreted.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group,
$$('.ClassNameToGet')
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group,
I'm building the following array:
var ax = []
ax['aaa'] = 1
ax['aab'] = 2
ax['aac'] = 4
ax['aad'] = 6
I would like to loop though all of the values in this array.
If I do the following, I get nothing:
ax.each(function(s) {
alert(s)
})
...but if I do the following, I get my values,
Diodeus wrote:
I'm building the following array:
var ax = []
ax['aaa'] = 1
ax['aab'] = 2
ax['aac'] = 4
ax['aad'] = 6
I would like to loop though all of the values in this array.
[...]
What am I doing wrong here?
You use an Array while you should use either Hash, or plain
The problem is in my case, I'm adding elements to the array as I go,
as opposed to building it as a JSON-type hash up front.
I'd like to be able to do:
ax[newValue] = y
Looping through an associative array should be simple, but I'm missing
something here.
On Apr 2, 10:38 am, Walter Lee Davis
The problem is that:
obj = [];
obj['foo']
is not an associative array, and it is not a hash. It is an empty
array with the property of foo, identical to this notation:
obj.foo
The length property refers to the items in the array, not the
properties associated with it.
for (each in obj)
Yes, you're right, of course. I'm going to use Szymon's method.
It just seems that it's a bit of a song-and-dance to do something that
you'd assume would be handled in the native functionality of
JavaScript arrays.
On Apr 2, 11:30 am, Walter Lee Davis wa...@wdstudio.com wrote:
What's missing
I know, growing up as I did in PHP, I have always thought that its
model of Array() was normal too. But JavaScript is a different,
weird beast.
Walter
On Apr 2, 2009, at 11:39 AM, Diodeus wrote:
It just seems that it's a bit of a song-and-dance to do something that
you'd assume would be
I've encountered the following bizarre behaviour with IE7. I'd
appreciate any input from someone who understands it or has seen it
before.
Problem: The dropdown container that holds the selections appears and
disappears immediately.
I've isolated it to the following: If the text on the page
was wrong, I'm sorry - this is right $$('#billship input[type=radio]
[name=shipType]')
On 2 апр, 14:29, ColinFine colin.f...@pace.com wrote:
On Apr 1, 8:44 pm, buda www...@pochta.ru wrote:
$$('#billship input:radio[name=shipType]');
Buda, are you saying that $$ (and hence CSS selectors)
and
idProjectListTBL.$$('classProjectsEditA').invoke(observe, click,
editProjectRecord);
must be
idProjectListTBL.select('.classProjectsEditA').invoke(observe,
click, editProjectRecord);
I recommend you read those from the manual (they are really helpfull
too):
Does prototype or scriptaculous offer a way to parse a query string in a
URL? I am creating a simple page that will redirect a user as a band
aid for poor programming choices made by a vendor. I need this to all
be done in JavaScript. I found several solutions on Google but wondered
if
On Apr 2, 5:57 pm, basti bastian.friedr...@am-soft.de wrote:
Good morning,
I wanted to use the method getElementsByClassName by prototype to
retrieve an array of objects. Using my Firefox 3.0.7 on Windows XP
alert told me that the returned value by this method is a Nodelist,
which I
You might like this: http://prototypejs.org/api/string/toQueryParams
Walter
On Apr 2, 2009, at 6:02 PM, Russell Keith wrote:
Does prototype or scriptaculous offer a way to parse a query string
in a
URL?
--~--~-~--~~~---~--~~
You received this message
Hi list
I have the follow code:
HTML:
form
input type=text name=field1 id=field1 /
input type=hidden name=hide1 id=hide1 /
a href=# id=field1_showoptionsshow options/a
/form
JS:
myclass=Class.create();
myclass.addMethods({
showoptions: function(){
//show options using
24 matches
Mail list logo