www.quircksmode.com
specifically
for starters
http://www.quirksmode.org/js/introevents.html
Sam, no
offense, but read up please.
-Andrew Martinez
-----Original
Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Ryan Gahl
Sent: Tuesday, July 11, 2006 9:47
AM
To:
rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs]
Hiding an event to launch a debug window
Lol... "Ajax Joe"... hey if you
don't have a blog yet that's a great name for a blog.
On 7/11/06, Bauser, Joseph (Joe)
< [EMAIL PROTECTED]>
wrote:
Not only did someone beat me to it, but my name is apparently ajax
now... way to go me... :\
Cheers
Joe... not Ajax
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]]On Behalf Of
Bauser, Joseph (Joe)
Sent: Tuesday, July 11, 2006 9:42 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Hiding an event to launch a debug window
The okClick event handler will pass an Event into your function which means the
reference page you're looking for is here:
http://www.w3schools.com/htmldom/dom_obj_event.asp
Cheers
Ajax
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Sam
Sent: Tuesday, July 11, 2006 8:40 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Hiding an event to launch a debug window
I appreciate your help. I'm still at a loss. Let me ask
again with specifics.
I had in mind adding an onClick event handler to an image. I wasn't able
to field keypress events on the image (if I ) and I was wondering if I could
interrogate the CTRL and ALT keys during the onClick event?
Sam
Sure can... inspect the event object... i forget the exact names of the
properties you want, but http://www.w3schools.com
is great for looking this stuff up...
and instead of Ctrl Alt, might i suggest something harder to guess, like: up,
up, down, down, left, right, left, right, b, a, select, start? Oops, maybe
you're not making AjaxContra, huh? :-O
On 7/10/06, Sam < [EMAIL PROTECTED]>
wrote:
I'd like to leave some debug code on a website, the debug window made visible
with an onClick event on some object, but requiring CTRL-ALT or some
combination to be held down.
Is it possible to check state of keyboard keys in an onClick handler, or can
anyone suggest some other technique which casual visitors would not stumble
upon?
Sam
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs