<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Execute Event.observer inside other different event (with prototype)'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Thu, 21 Aug 2008 21:10:30 GMT</pubDate>
<item>
<title>zeroasterisk said on 7/23/08</title>
<link>http://snipplr.com/view/618/execute-eventobserver-inside-other-different-event-with-prototype/</link>
<description><![CDATA[ <p>Excellent example - thanks... what I needed was to see the syntax for the keypress event trigger on a specific object... simplified to:</p>

<p>Event.observe($("objid"), "keypress", function(e){
    var cKeyCode = e.keyCode || e.which;
    if (cKeyCode == Event.KEY_RETURN){
        alert("do something");
    }
}, false);</p>

<p>thanks for the example...</p> ]]></description>
<pubDate>Wed, 23 Jul 2008 17:50:56 GMT</pubDate>
<guid>http://snipplr.com/view/618/execute-eventobserver-inside-other-different-event-with-prototype/</guid>
</item>
</channel>
</rss>