On Jan 26, 1:01 am, Remi Grumeau <[email protected]> wrote: > have you tried the Safari debugging mode on the iphone ? > Remi,
Thank you! That is really a nice little option that I hadn't seen before. It is reporting a javascript error in the console: TypeError: Result of expression 'document.forms[0]' [undefined] is not an object. I used the javascript code for hooking the beforeinsert as posted above. I have something like this going on in my html page: <form id="log" action="postit" method="post"> <input id="EntryDate" /> <input id="Amount" /> <input type="submit" /> </form> <script>document.forms[0].Amount.focus();</script> I'm actually trying to set the EntryDate to today's date, too, but the above should help show the problem easily without adding another js function to do that. Again, this works fine on Firefox on my desktop, but results in the above error on Mobile Safari on the iPhone. Any further ideas? Thanks again. Dan -- 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.
