It's Mr. but call me purple... You can do this, but the page jumps a bit ... very hacky ..
<input type="url" id="tiUrl" onfocus="blur()"/> Cheers, Jesse On Tue, Nov 2, 2010 at 6:36 AM, Brian McMillin <[email protected]> wrote: > Mr/Ms Cabbage - > > Unfortunately, on the iPhone4 and iPad I tested, constructs like > > document.getElementById("xx").onfocus=function(e){e.preventDefault();}; > > have no effect on the popup keyboard. > > ----- > > Please note that the Javascript CamelCaps spelling for "onfocus" is > unexpected. (Obviously, in the HTML, the capitalization does not matter.) > > Things like "onClick" are correct as documented in places like > w3schools.com. Different pages in the docs use "onload" and the incorrect > "onLoad", for example. This is problematic since setting the misspelled > function is an error-not-caught in JavaScript - the function just never gets > invoked. > > Does anybody have a definitive list of the correct spellings for the > JavaScript names of these DOM features? > > Brian > > ------------------------------ > *From:* Purplecabbage <[email protected]> > *To:* "[email protected]" <[email protected]> > *Cc:* "[email protected]" <[email protected]> > *Sent:* Tue, November 2, 2010 2:47:22 AM > *Subject:* Re: Disable popup keyboard via javascript > > > Or can't you preventDefault onfocus? > > Untested. > > Sent from my iPhone > > On 2010-10-30, at 2:59 AM, Remi Grumeau <[email protected]> wrote: > > Le 30 oct. 2010 à 09:09, Jordan Dobson < <[email protected]> > [email protected]> a écrit : > > It seems to me that you would just not use a text-field and detect a touch > on an element that looks like a text field. After each key, on your custom > keyboard, is entered you add or subtract that character to your html element > depending on if they delete or add characters. > > If you need to send to a server by form submit, send the data to a hidden > text field perhaps? > > > Agree ! > Only way not to have the native keyboard is not using input as a touch > element, but as an hidden container. > > > On Fri, Oct 29, 2010 at 11:53 PM, crankshaft < > <[email protected]><[email protected]> > [email protected]> wrote: > >> Hi all; >> >> Been googling this for an hour or so and can't seem to find an answer. >> >> Is it possible to prevent the ipad keyboard from popping up >> programatically, either on a field by field basis, or switch it on and >> off via javascript. >> >> I have an application which needs to use my own on-screen keyboard,but >> whenever a user focuses on a text field the keyboard pops up. >> >> Of can it be fooled into thinking that an external keyboard is >> connected ?? >> >> Many Thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "iPhoneWebDev" group. >> To post to this group, send email to >> <[email protected]><[email protected]> >> [email protected]. >> To unsubscribe from this group, send email to >> <iphonewebdev%[email protected]><[email protected]> >> [email protected]. >> For more options, visit this group at >> <http://groups.google.com/group/iphonewebdev?hl=en> >> http://groups.google.com/group/iphonewebdev?hl=en. >> >> > > > -- > Jordan Dobson > Designer + Developer > (425) 444-8014 > <http://JordanDobson.com>http://JordanDobson.com | > <http://MadeBySquad.com>http://MadeBySquad.com | Glue.Pro > > Follow me on twitter at <http://Twitter.com/JordanDobson> > http://Twitter.com/JordanDobson > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to <[email protected]> > [email protected]. > To unsubscribe from this group, send email to > <[email protected]> > [email protected]. > For more options, visit this group at > <http://groups.google.com/group/iphonewebdev?hl=en> > http://groups.google.com/group/iphonewebdev?hl=en. > > -- > 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. > > -- > 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]<iphonewebdev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > > -- > 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]<iphonewebdev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > -- 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.
