/irc-logs / w3c / #webapps / 2010-07-31 / end

Options:

  1. # Session Start: Sat Jul 31 00:00:00 2010
  2. # Session Ident: #webapps
  3. # [00:01] <dandaman> hey shepazu
  4. # [00:01] <dandaman> one more for you
  5. # [00:01] <dandaman> that site you linked me to gave this coed
  6. # [00:01] <dandaman> document.addEventListener('touchstart', function(event) {
  7. # [00:01] <dandaman>     alert(event.touches.length);
  8. # [00:01] <dandaman> }, false);
  9. # [00:01] <dandaman> I want to tie it to a button
  10. # [00:02] <dandaman> not quite sure how to :\
  11. # [00:02] <dandaman> i tried touchstart="alert..."
  12. # [00:03] <shepazu> myButton..addEventListener('touchstart', someFunction );
  13. # [00:03] <dandaman> damn i tried that too
  14. # [00:03] <shepazu> or just get the event target
  15. # [00:03] <dandaman> let me try it again
  16. # [00:04] <dandaman> <td class="awesome" id="hellotoucher" name="hellotoucher"><div id="selectUS" value="United States" style="width:75px">United hates</div></td>
  17. # [00:04] <dandaman> that's my button
  18. # [00:04] <dandaman> $('hellotoucher').addEventListener('touchstart', function(event) {
  19. # [00:04] <dandaman> alert('nononon');
  20. # [00:04] <dandaman> }, false);
  21. # [00:04] <dandaman> that's my script
  22. # [00:04] <dandaman> i'm using mootools
  23. # [00:04] <dandaman> so $('hellotoucher') should refet to that td
  24. # [00:09] <dandaman> shepazu: does that look right to you?
  25. # [00:11] <shepazu> dandaman: looks okay to me
  26. # [00:11] <shepazu> note, however, that that's not a button, it's a div in a table cell
  27. # [00:14] <dandaman> yeah i know
  28. # [00:14] <dandaman> for my purposes its a button :p
  29. # [00:14] <dandaman> document.getElementById('hellotoucher').
  30. # [00:14] <dandaman> doesnt work either
  31. # [00:14] <dandaman> damnit
  32. # [00:15] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
  33. # [00:25] <dandaman> in case you were wondering
  34. # [00:25] <dandaman> for html its ontouchstart
  35. # [01:02] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
  36. # [01:17] * Joins: Nikunj (Adium@64.186.167.205)
  37. # [01:20] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
  38. # [01:35] * Quits: Lachy (Lachlan@84.215.59.50) (Quit: Leaving)
  39. # [01:35] * Joins: Lachy (Lachlan@84.215.59.50)
  40. # [01:54] * Joins: Nikunj (Adium@64.186.167.205)
  41. # [02:07] <dandaman> how do i make a <div> tag execute some javascript when the page loads?
  42. # [02:07] <dandaman> i tried onLoad=
  43. # [02:14] * Quits: Nikunj (Adium@64.186.167.205) (Quit: Leaving.)
  44. # [02:47] * Parts: dandaman (Daniel.Sau@216.52.240.243)
  45. # [04:25] * Quits: timeless_mbp (timeless@88.115.8.36) (Quit: Leaving.)
  46. # [05:03] * Joins: paul_irish (paul_irish@76.21.40.62)
  47. # [05:10] * Joins: MikeSmithX (MikeSmith@111.188.29.155)
  48. # [05:11] * Quits: MikeSmithX (MikeSmith@111.188.29.155) (Client exited)
  49. # [05:13] * Quits: MikeSmith (MikeSmith@114.48.43.237) (Ping timeout)
  50. # [08:16] * Joins: MikeSmith (MikeSmith@114.48.93.226)
  51. # [08:25] * Disconnected
  52. # [08:26] * Attempting to rejoin channel #webapps
  53. # [08:26] * Rejoined channel #webapps
  54. # [08:26] * Topic is 'WebApps, Web Notifications, Web Timing, Oh My; This channel is logged: http://krijnhoetmer.nl/irc-logs/'
  55. # [08:26] * Set by ArtB on Tue Jun 29 12:53:08
  56. # [08:37] * Joins: Nikunj (Adium@67.188.172.4)
  57. # [08:38] * Quits: MikeSmith (MikeSmith@114.48.93.226) (Ping timeout)
  58. # [08:39] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
  59. # [08:46] * Joins: Nikunj (Adium@67.188.172.4)
  60. # [08:52] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
  61. # [09:15] * Joins: MikeSmith (MikeSmith@114.48.52.11)
  62. # [09:18] * Joins: Nikunj (Adium@67.188.172.4)
  63. # [09:35] * Quits: Nikunj (Adium@67.188.172.4) (Quit: Leaving.)
  64. # [10:30] * Quits: MikeSmith (MikeSmith@114.48.52.11) (Quit: This computer has gone to sleep)
  65. # [10:52] * Joins: MikeSmith (MikeSmith@114.48.52.11)
  66. # [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.)
  67. # [12:01] * Joins: MikeSmith (MikeSmith@114.48.52.11)
  68. # [13:50] * Joins: Marcos (Marcos@84.215.169.13)
  69. # [14:20] * Joins: smaug (chatzilla@82.181.150.24)
  70. # [14:39] * Quits: MikeSmith (MikeSmith@114.48.52.11) (Ping timeout)
  71. # [14:45] * Joins: MikeSmith (MikeSmith@114.48.222.150)
  72. # [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.)
  73. # [14:46] * Joins: MikeSmith (MikeSmith@114.48.222.150)
  74. # [15:47] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Quit: This computer has gone to sleep)
  75. # [15:51] * Joins: MikeSmith (MikeSmith@114.48.222.150)
  76. # [15:52] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Client exited)
  77. # [15:52] * Joins: MikeSmith (MikeSmith@114.48.222.150)
  78. # [18:36] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
  79. # [20:37] * Joins: MikeSmithX (MikeSmith@114.48.33.90)
  80. # [20:39] * Quits: MikeSmith (MikeSmith@114.48.222.150) (Ping timeout)
  81. # [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.)
  82. # [20:48] * Joins: MikeSmith (MikeSmith@114.48.33.90)
  83. # [23:23] * Joins: Marcos (Marcos@84.215.169.13)
  84. # [23:29] * Quits: Marcos (Marcos@84.215.169.13) (Quit: Marcos)
  85. # Session Close: Sun Aug 01 00:00:00 2010

The end :)