Displaying 20 results from an estimated 3000 matches similar to: "prototype"
2007 Aug 25
5
onLoad event with an update function
Hello,
I am using the following code:
new Ajax.Request(''ajax.php'',
{ parameters: { task: ''home'' },
onSuccess: function(transport)
{
$(''home_montage'').update(transport.responseText);
new Effect.Appear(
2006 Jan 18
2
Event.stopObserving and anonymous functions
Hi all,
I'm using behaviour(.js) to add event handlers to all the table cells
in a table (mouseover, mouseout, clickk). However, I'm also ditching
the table and replacing it with an Ajax.Updater so I want to remove
all the observers before I lose them. Unfortunately, the Event.observe
calls were written as inline anonymous functions so, when calling
Event.stopObserving, I'm supposed
2006 Dec 14
17
Should Event.stopObserving() remove itself from cache?
Just wondering why Event.stopObserving() doesn''t remove the itself from
the Event.obervers array?
Is there a reason for this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2006 Aug 17
6
Creating Custom Events using prototype
Hi guys!
i know prototype can create custom events and can subscribe to it, but is
there already a library for this?
thanks!
--
<script>
//////////////////////////////////////////////////////////////////////////////////
REDBAKS=function (){
var b,r,i,a,n="b=''646f63756d656e742e777269746528225"+
"4686572652773206d6f7265207468616e206f6e65207761792"+
2006 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things
that is incredibly difficult to search for.
How can I disable an ''Ajax.Autocompleter'' element from working ''on the
fly''? I have a page where I''m using two (I know it''s crazy)
Ajax.Autocompleter elements and once one of them has got a result I
want the other field
2006 Mar 15
3
prototype.js Event.stopObserving
anyone have any information on how to effectively use this?
Event.observe() doesn''t return anything, and nothing I''ve tried is actually
removing the event listeners from the objects.
-Jeremy
--
Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
2007 Sep 22
2
How to fire an event when the page completes loading?
I''m looking for an event handler in Prototype (or plain old
JavaScript) similar to onContentReady() in the YUI library: (see
http://developer.yahoo.com/yui/examples/event/event-timing.html)
How can I implement this? If I''m not mistaken, my testings showed the
document.onLoad() happens too early (as soon as the page loads it
fires, even before some dom elements are on the page
2006 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
If that doesn''t work, then you''ve done something wrong somewhere.
''Cause it works for IE for me and everyone else.
The only advantage I see with the YUI toolkit is that it''ll defer
attaching events to elements that do not yet exist in the DOM. Big
whoop, only a sloppy programmer would try to attach an event to a
non-existant element. With Prototype, you can
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
1. Create a separate class that has your highlight/unhighlight behavior
in it, and extend just the element you want to highlight with that
class... like this (also allows you to easily apply this behavior
elsewhere when you need it in the future):
Object.extend(this.el, HighlightBehaviorClass.prototype)
2. When defining your event handlers, assign them to variables so you
have a
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2007 Apr 14
2
Form.serialize: correctness and speed
The following link does a comparison of some popular libraries and
their ability to correctly serialise a form:
<URL: http://www.malsup.com/jquery/form/comp/ >
Any comments?
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2008 Apr 18
5
show sum of textboxes
Hi all,
I have multiple textboxes containing numbers. I want to add up all the
numbers and show the sum. Can I select the textboxes by class and sum
the content?
This also has to happen realtime: when a number is changed ina textbox
the sum should also change.
can this be done?
regards,
Stijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Jan 04
7
1.6 cheatsheet
Hey has anyone seen a 1.6 cheatsheet around?
Johnathan Snook did a nice 1.5 one but I''ve been working with 1.6 for a
while and while I can use prototypejs.org, cheatsheets are handy for jogging
memories..
I checked his blog, nothing there for 1.6.
Gareth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question..
I often crash my Safari when using ''Enter'' on InPlaceEditor''s for
submitting.
Works fine on firefox(win & Mac) - no javascript errors.
Anyone else seen this behavior?
(Maybe it is just my alterings of InPlaceEditor :-)
Best Regards
Michael Krog
2007 Feb 23
4
Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
Hello
Does Ajax.PeriodicalUpdater have a shield against multiple parallel
executions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email
2007 Jul 10
6
Having trouble using data returned by Ajax.request
Hello everyone, I''m new here.
I''ve been working with prototype and plotr for about a month now, off
and on, and I have pretty much hit the wall on using the data returned
by Ajax.Request.
I''m using some php code to return a string:
{''foo'': [[0,0.0865334429075127], [1,0.0828179861705063],
[2,0.0828173042602942], [3,0.0841707718624196]]}
But I keep
2008 Feb 07
3
Adding my own extensions with Elements.addMethods()
When I add my own extensions to DOM elements, is there a way to only
add my extensions to the specific types of DOM elements (e.g. SELECT)
to which my extensions apply or are intended to operate?
Based on the Prototype API documentation (http://prototypejs.org/learn/
extensions), it appears that anytime I extend an element, all the
extensions (Prototype''s and my own) are copied to that
2008 Jan 05
4
PeriodicalUpdater onComplete broken?
Using the PeriodicalUpdater, I''m finding the onComplete is not firing.
I thought I''d get some feedback here before filing a bug report.
http://ianty.com/updater/update_test_1.6.0.1.html
http://ianty.com/updater/update_test_1.6.0.html
The above are examples of this for prototype 1.6.0 & 1.6.0.1.
I''m expecting the onComplete to fire after the update takes place, per
2008 May 19
3
Can anyone give a exmple of use Ajax.Response?
hi, everyone , could anyone give a exmple of use Ajax.Response? I can
not find a sample in prototype homepage
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from
2007 Aug 02
7
Difficulty using match
A have an observer watch for a click on a link. Inside the triggered
function, I want to extract a piece of information from the URL.
Currently I am able to do:
alert(Event.element(el));
This displays the url string of the link, which is exactly what I need
to work with. However, when I try:
Event.element(el).match(//);
I get a javascript error "selector.match is not a function". I