Hi Team,
input id=login type='submit' value='login' /
Event.observe(login, click, function(){
alert(t2);
});
Why don't work?
Thanks
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To unsubscribe from this
Assuming that you put script tags around the JavaScript, and include
prototype in your page head, it does. One thing you may be overlooking is
source code order. If your script tag (containing this handler) occurs in the
page head, then the input#login will not exist yet at the time that the
But it does work
See this fiddle http://jsfiddle.net/4MUZ4/
also make sure you are running the observe method after the DOM has
finished loading and is ready to be manipulated
Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com
On Sun, Jul 13, 2014 at 11:33 PM, Иван Иванов
I've a problem with Event.observe on the following site:
http://www.seminardmc.at/de/menu10/seminare21/?termin=65
Sorry, the website is in German only. The problem occurs when I'm clicking
the button Jetzt anmelden / vormerken on the left side of the page. In
Hey all,
I will preface this with the fact that I am a new user of both
prototype and javascript, so I am learning (slowly) as I go. I am
currently working on a blog interface and I was going to use this as
my opportunity to learn prototype and some more dynamic ways to handle
form data.
That
so normally you can use
Event.observe(window, 'load'
to fire some js after loading, secure in the knowledge that all
external js files have been loaded and all elements have been set up.
Whats the equivalent for firing an event after an
new Ajax.Updater('modal-ajaxdiv', url, { evalScripts:true
Is there a way to listen for the user cancellation of a form
submission. IE they press ESC or click 'Stop' in the browser after
having initiated submission?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
I'm using keyboard short cuts with Event.observe document. I do not
want these to be activated when using certain input fields on the
site. So my question is how I temporarily disable these document
shortcuts when these input fields are in focus.grateful for tips.
As the subject says I have the follow js:
Event.observe('events', 'change', function (e) {
new Ajax.Updater('event_details',
'URL',
{ method: 'post',
parameters: 'event=' +
e.element().id.gsub('event', '') });
});
Hello,
I'm new to Prototype development, and love the power it gives.
What I don't get is why the Drop Down change event fires only once,
for a dynamically created Select Drop Down, in my example below (using
1.5 of Prototype).
Any thoughts on this would be greatly appreciated by a ruby /
10 matches
Mail list logo