javascript - Why doesn't this work on iPad? -


it works on browsers, on ipad safari. if emulate ipad user agent on browser, works fine.

http://jsfiddle.net/nmcuy/38/embedded/result/

the problem if type text (add text), keyboard in ipad shows, can press keys, doesn't show in draggable div. default text stays same.

i don't know problem :(

function newtext() { var note = new note(); note.id = ++highestid;  var text = document.createelement('textarea'); text.name = "text"; text.setattribute("onkeyup", "textareaadjust(this)"); text.setattribute("class", "text"); //text.innerhtml = initialtext; note.contentfield.appendchild(text);  note.name = note.id + "_text"; note.left = math.round(math.random() * 400) + 'px'; note.top = math.round(math.random() * 500) + 'px'; note.zindex = ++highestz; note.saveasnew(); } 

according research bug/(specific feature) in ios regarding focus (or delagating focus) events. dropped afterwards.

mobile safari autofocus text field


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -