/irc-logs / w3c / #webapps / 2010-07-31 / end
Options:
- # Session Start: Sat Jul 31 00:00:00 2010
- # Session Ident: #webapps
- # [00:01] <dandaman> hey shepazu
- # [00:01] <dandaman> one more for you
- # [00:01] <dandaman> that site you linked me to gave this coed
- # [00:01] <dandaman> document.addEventListener('touchstart', function(event) {
- # [00:01] <dandaman> alert(event.touches.length);
- # [00:01] <dandaman> }, false);
- # [00:01] <dandaman> I want to tie it to a button
- # [00:02] <dandaman> not quite sure how to :\
- # [00:02] <dandaman> i tried touchstart="alert..."
- # [00:03] <shepazu> myButton..addEventListener('touchstart', someFunction );
- # [00:03] <dandaman> damn i tried that too
- # [00:03] <shepazu> or just get the event target
- # [00:03] <dandaman> let me try it again
- # [00:04] <dandaman> <td class="awesome" id="hellotoucher" name="hellotoucher"><div id="selectUS" value="United States" style="width:75px">United hates</div></td>
- # [00:04] <dandaman> that's my button
- # [00:04] <dandaman> $('hellotoucher').addEventListener('touchstart', function(event) {
- # [00:04] <dandaman> alert('nononon');
- # [00:04] <dandaman> }, false);
- # [00:04] <dandaman> that's my script
- # [00:04] <dandaman> i'm using mootools
- # [00:04] <dandaman> so $('hellotoucher') should refet to that td
- # [00:09] <dandaman> shepazu: does that look right to you?
- # [00:11] <shepazu> dandaman: looks okay to me
- # [00:11] <shepazu> note, however, that that's not a button, it's a div in a table cell
- # [00:14] <dandaman> yeah i know
- # [00:14] <dandaman> for my purposes its a button :p
- # [00:14] <dandaman> document.getElementById('hellotoucher').
- # [00:14] <dandaman> doesnt work either
- # [00:14] <dandaman> damnit
- # [00:15] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
- # [00:25] <dandaman> in case you were wondering
- # [00:25] <dandaman> for html its ontouchstart
- # [01:02] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
- # [01:17] * Joins: Nikunj (Adium@64.186.167.205)
- # [01:20] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
- # [01:35] * Quits: Lachy (Lachlan@84.215.59.50) (Quit: Leaving)
- # [01:35] * Joins: Lachy (Lachlan@84.215.59.50)
- # [01:54] * Joins: Nikunj (Adium@64.186.167.205)
- # [02:07] <dandaman> how do i make a <div> tag execute some javascript when the page loads?
- # [02:07] <dandaman> i tried onLoad=
- # [02:14] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
- # [02:47] * Parts: dandaman (Daniel.Sau@216.52.240.243)
- # [04:25] * Quits: timeless_mbp (timeless@88.115.8.36) (Quit: Leaving.)
- # [05:03] * Joins: paul_irish (paul_irish@76.21.40.62)
- # [05:10] * Joins: MikeSmithX (MikeSmith@111.188.29.155)
- # [05:11] * Quits: MikeSmithX (MikeSmith@111.188.29.155) (Client exited)
- # [05:13] * Quits: MikeSmith (MikeSmith@114.48.43.237) (Ping timeout)
- # [08:16] * Joins: MikeSmith (MikeSmith@114.48.93.226)
- # [08:25] * Disconnected
- # [08:26] * Attempting to rejoin channel #webapps
- # [08:26] * Rejoined channel #webapps
- # [08:26] * Topic is 'WebApps, Web Notifications, Web Timing, Oh My; This channel is logged: http://krijnhoetmer.nl/irc-logs/'
- # [08:26] * Set by ArtB on Tue Jun 29 12:53:08
- # [08:37] * Joins: Nikunj (Adium@67.188.172.4)
- # [08:38] * Quits: MikeSmith (MikeSmith@114.48.93.226) (Ping timeout)
- # [08:39] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
- # [08:46] * Joins: Nikunj (Adium@67.188.172.4)
- # [08:52] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
- # [09:15] * Joins: MikeSmith (MikeSmith@114.48.52.11)
- # [09:18] * Joins: Nikunj (Adium@67.188.172.4)
- # [09:35] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
- # [10:30] * Quits: MikeSmith (MikeSmith@114.48.52.11) (Quit: This computer has gone to sleep)
- # [10:52] * Joins: MikeSmith (MikeSmith@114.48.52.11)
- # [10:54] * Quits: MikeSmith (MikeSmith@114.48.52.11) (Quit: Till kicked and torn and beaten out he lies, and leaves his hold and crackles, groans, and dies.)
- # [12:01] * Joins: MikeSmith (MikeSmith@114.48.52.11)
- # [13:50] * Joins: Marcos (Marcos@84.215.169.13)
- # [14:20] * Joins: smaug (chatzilla@82.181.150.24)
- # [14:39] * Quits: MikeSmith (MikeSmith@114.48.52.11) (Ping timeout)
- # [14:45] * Joins: MikeSmith (MikeSmith@114.48.222.150)
- # [14:46] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Quit: Till kicked and torn and beaten out he lies, and leaves his hold and crackles, groans, and dies.)
- # [14:46] * Joins: MikeSmith (MikeSmith@114.48.222.150)
- # [15:47] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Quit: This computer has gone to sleep)
- # [15:51] * Joins: MikeSmith (MikeSmith@114.48.222.150)
- # [15:52] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Client exited)
- # [15:52] * Joins: MikeSmith (MikeSmith@114.48.222.150)
- # [18:36] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
- # [20:37] * Joins: MikeSmithX (MikeSmith@114.48.33.90)
- # [20:39] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Ping timeout)
- # [20:40] * Quits: MikeSmithX (MikeSmith@114.48.33.90) (Quit: Till kicked and torn and beaten out he lies, and leaves his hold and crackles, groans, and dies.)
- # [20:48] * Joins: MikeSmith (MikeSmith@114.48.33.90)
- # [23:23] * Joins: Marcos (Marcos@84.215.169.13)
- # [23:29] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
- # Session Close: Sun Aug 01 00:00:00 2010
The end :)