I originally submitted this as a guest on the forum interface to the
mailing list. but i guess it never got OK'd...
i'm having this same problem, all my form fields do have names and id's
and thier all differant names and so on.
heres what i have
1.) autocomplete form that takes a company name
I'm using the Yahoo events library along with prototype and scriptaculous and haven't had any problems.-MattOn Mar 16, 2006, at 3:37 PM, Alex Duffield wrote:Are their any compatibility issues with using the Yahoo libraries and prototype/Sriptaculous together??? _
Are their any compatibility issues with using the Yahoo libraries and prototype/Sriptaculous together??? __ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com On 14-Feb-06, at 8:29 AM, Whitcraft
That’s what my guess was, seems, OP
dude, that something is messdeded up which yo proto lib.
J
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Brian Peiris
Sent: Thursday, March 16, 2006
4:29 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spi
oh dude.
must have been a bug in the old version. i upgraded to the latest version
and it works fine :)
thanks for all the help!
> Don't know... try digging into the code to see what that method is
> returning though. I would if I had that version of proto.
>
> The information transmitted in t
This works perfectly with me (scriptaculous 1.5.3, prototype 1.4.0):
test1
test2 test3
test4
var items = document.getElementsByClassName('editView');
RE: [Rails-spinoffs] help with each
Don't know... try digging into the code to see what that method is
returning though. I would if I had that version of proto.
The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or priv
is there an easy way to echo whats inside it without looping content?
> But he already tried straight
>
> $A(document.getElementsByClassName("blah")).each(blah..);
>
> I don't use the pre_2 (or whatever) version (only the str8 1.4 release),
> otherwise I would check what getElementsByClassName is
no dice dude
editViewItems.each is not a function
> Try:
> var editViewItems = ...
> instead of
> var items = ...
>
> Just to make sure there's no variable conflict.
>
> -Matt
>
> On Mar 16, 2006, at 2:08 PM, Louis Walch wrote:
>
>> i have prototype 1.4.0 pre_2
>> and the only other lib i ha
But he already tried straight
$A(document.getElementsByClassName("blah")).each(blah..);
I don't use the pre_2 (or whatever) version (only the str8 1.4 release),
otherwise I would check what getElementsByClassName is actually
returning to help more... perhaps you should do the same?
The informati
Try:
var editViewItems = ...
instead of
var items = ...
Just to make sure there's no variable conflict.
-Matt
On Mar 16, 2006, at 2:08 PM, Louis Walch wrote:
i have prototype 1.4.0 pre_2
and the only other lib i have is scriptaculous
___
Rails-s
Oh yea I didn't catch that either... so that would make my question
about whether or no prototype was running seem dumb...
When I see "getElementsByClassName" my mind always thinks
"getElementsByTagName" too..
The information transmitted in this electronic mail is intended only for the
person or
i have prototype 1.4.0 pre_2
and the only other lib i have is scriptaculous
> For what it's worth, I may have been wrong when I said it returns a
> node list. I was thinking of getElementsByTagName
>
> getElementsByClassName comes with prototype (and other libs) and
> would probably return an Ar
For what it's worth, I may have been wrong when I said it returns a
node list. I was thinking of getElementsByTagName
getElementsByClassName comes with prototype (and other libs) and
would probably return an Array.
Louis, what version of prototype are you running? Any other JS libs
that m
Yea, each is awesome... are you able to use it with a regular array (not
a nodeList). Might be worth just testing that to make sure something's
not wrong with your prototype lib... (I'm not sure if I've ever tried it
with a nodeList or not, but am surprised if it really just won't
work...)
The inf
yea its loaded...
i will just put it back into the for loop, i was just currious to start
using each.
> ...and you're sure that prototype is loaded?
>
> Otherwise, I guess just do a for loop.
>
> The information transmitted in this electronic mail is intended only for
> the
> person or entity to w
...and you're sure that prototype is loaded?
Otherwise, I guess just do a for loop.
The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or privileged material. Any review, retransmis
i tried both solutions and both did not work
var items = document.getElementsByClassName('editView');
if (items.length > 0){
$A(items).each(function (result){
//blah blah
});
}
ERROR: (items).each is not a function
var items = $A(document.getElementsByClass
oh, i thought it returned an array
i guess because it worked with a for loop, and i figured that required an
array.
> Louis,
>
> document.getElementsByClassName returns a node list. You need to turn
> it into an array:
>
> var nodeList = document.getElementsByClassName('editView');
> var ite
Louis,
document.getElementsByClassName returns a node list. You need to turn
it into an array:
var nodeList = document.getElementsByClassName('editView');
var items = $A(nodeList);
-Matt
On Mar 16, 2006, at 1:04 PM, Louis Walch wrote:
can you please tell me why this is not working? i got
You first have to convert it to an enumerable array (use the $A() helper
method for that)...
$A(items).each(etc.. etc..);
The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or privil
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName('editView');
if (items.length > 0){
items.each(function (result)
This seems to work:
Apparently, order matters, scriptaculous first, then prototype. not enitrely sure why it doesn't work the other way.On 3/16/06, Daniel Herrero
<[EMAIL PROTECTED]> wrote:
Hello, first of all, sorry for my English, I´m a Spanish student and
I´m having some problems with
var element = $('theElementYouWishToDoThisFor');
if (Event.observers)
$A(Event.observers).each(function(ob) {
if (ob[0] == element)
Event.stopObserving(ob[0], ob[1], ob[2]);
});
..untested but that might work.
The information transmitted in
Hey guys
What would you say would be the "Prototype way" of removing all event
listeners from an element?
Thanks
-Rob
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Has anyone played around with the Ajax Toolkit by IBM?
Thanks,Mandy.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thanks Ryan and Greg, but I could not get either
of your solutions to work. I have just gone back to a standard for loop for
now. I will look into this more when I’m not on such a tight deadline.
Thanks for the explanations it really
helped.
Jon Whitcraft
Indi
You need to bind your inputs.each()
iterator to “this”… otherwise “this” is not the
outer object, but the function object of the iterator…
inputs.each( function(input) {
try {
if(validInputs.indexOf(in
It’s a scoping issue. ‘this’
refers to the object in the current scope, inside of the inputs.each, ‘this’
refers to the element of the array. Try doing something like:
var realThis = this;
inputs.each( function(input) {
try
I have the following code but it keeps on giving me this
error when it runs.
--- Error: this.alertBox has no properties
What would be causing this? My Code checks out when I call
this.alertBox() from the setup function it works fine but when I try and put in
on an event observer it
> I took a look at the code I copied off the thread:
>
http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/0025
99.html
> Seems this only does some magic when using ghosting and floating
options. > I hardcoded these options to true and it now drags out of
the div but the > object
Hello, first of all, sorry for my English, I´m a Spanish student and
I´m having some problems with script.aculo.us. These are the following:
I have a XML file like this:
img/page_text.gif
archivoNuevo
Crear un archivo nuevo
and I want to transform it to an HTM
I took a look at the code I copied off the thread:
http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002599.html
Seems this only does some magic when using ghosting and floating options. I
hardcoded these options to true and it now drags out of the div but the object
I am drag
No, because
a) you're right about XMLHTTP requests not being able to handle this and
b) that information is totally wrong, if any, then it should be
Content-Disposition: attachment, not Content-Type: application/binary
- David
Am 16.03.2006 um 15:18 schrieb Ryan Gahl:
If the server deliver
> If the server delivers that with the http header
>
> Content-Type: application/binary
>
> then you should get the browser behavior you're looking for.
Is that true with the XMLHTTP object? I was under the impression that
it's handling of responses is self contained from the browser (i.e. the
b
There seems to be a problem with dragging an object outside a div if using overflow:auto on the div style.
My problem is the same as the one described in the following thread but the responder's "fix" did not work for me. Is there a fix for this problem?
I had the exact same problem, so i use
Onmouseup / onmousedown / onclick / onmousemove events?
Jim.
Sorry I wasn't clear!
If I drag the by clicking on the the 's onclick is fired as
well as the 's drag.
What I want is for the click event to be fired ONLY if the is
not dragged.
So, I guess I need to call an Event.sto
There seems to be a problem with dragging an object outside a div if using
overflow:auto on the div style.
My problem is the same as the one described in the following thread but the
responder's "fix" did not work for me. Is there a fix for this problem?
http://wrath.rubyonrails.org/pipermail
Onmouseup / onmousedown / onclick / onmousemove events?
Jim.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Clayburn
Sent: 16 March 2006 00:04
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] how to distinguish between click and
39 matches
Mail list logo