Good job. Very helpful. Have you given thought to updating the wiki with your info?
-= J On Aug 17, 2007, at 9:28 AM, rich_wagner <[EMAIL PROTECTED]> wrote: > > I used a modified version of the iPhone Event Tester found at > http://chomer.com/coding/iphone/eventtest/ to test for the event > sequences. > > For the onkey input test, I just used a very standard JavaScript val > routine: > > <html> > <body> > <script type="text/javascript"> > function noNumbers(e) > { > var keynum > var keychar > var numcheck > if(window.event) // IE > { > keynum = e.keyCode > } > else if(e.which) // Netscape/Firefox/Opera > { > keynum = e.which > } > keychar = String.fromCharCode(keynum) > numcheck = /\d/ > return !numcheck.test(keychar) > } > </script> > <form> > <input type="text" onkeydown="return noNumbers(event)" /> > </form> > </html> > > On Aug 17, 9:13 am, James Childers <[EMAIL PROTECTED]> wrote: >> How did you test this? >> >> -= J >> >> On Aug 17, 2007, at 4:12 AM, rich_wagner <[EMAIL PROTECTED]> >> wrote: >> >> >> >>> I have been testing out event support for iPhone Safari and, >>> unless I >>> am mistaken, the iPhoneWebDev event support list seems to be in >>> error. >>> First, I was able to trap onkeydown for input fields. Second, I am >>> able to trap all of the onkey events for textarea for any key, not >>> just the return key. Finally, here is the specific event sequence >>> I am >>> getting when working with both textarea and input fields: >> >>> onmouseover >>> onmousedown >>> onfocus >>> onmouseup >>> onclick >>> onkeydown >>> onkeypress >>> onkeyup >>> onblur >>> onmouseout >> >>> - Rich > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
