aspose file tools*
The moose likes General Computing and the fly likes ipad - keyboard opened on focusing textfield in iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "ipad - keyboard opened on focusing textfield in iframe" Watch "ipad - keyboard opened on focusing textfield in iframe" New topic
Author

ipad - keyboard opened on focusing textfield in iframe

sarath rachakonda
Greenhorn

Joined: Dec 17, 2007
Posts: 3
Hi Everyone,

I have strange problem with ipad - iframe textfield.

I have a iframe poinitng to google.com. And i defined document or body or parent level events on the html page. Now when i click google search textfield on ipad, keyboard is launched.After that if i touch anywhere on ipad to scroll webpage keyboard closes. Please find the html file in attachments - sample.html.

<html>
<head>

</head>
<body>
<iframe src="http://google.com
" width="700" height="700" scrolling="yes">

</iframe>
</body>
<script type="text/javascript">
function onF()
{
console.log('focus');
}
function onB()
{
console.log('blur');
}
document.ontouchmove = onF;
document.ontouchend = onB;
document.onmouseup = onB;
</script>
</html>


Interestingly if i remove document or body or parent level events and try the same scenario - touch anywhere on ipad will not close keyboard and it allows to scroll the web page. - sample1.html

<html>
<head>

</head>
<body>
<iframe src="http://google.com
" width="700" height="700" scrolling="yes">

</iframe>
</body>
<script type="text/javascript">
function onF()
{
console.log('focus');
}
function onB()
{
console.log('blur');
}
</script>
</html>


Can anyone explain me why it is behaving like this. Or provide a solution to stop keyboard not to close.

Thanks,
Sarath
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

sarath, please CarefullyChooseOneForum. Your other thread with the same question has been locked.

edit Also, you apparently abandoned your earlier thread
http://www.coderanch.com/t/446732/Servlets/java/Session

Bad form, that.

luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ipad - keyboard opened on focusing textfield in iframe
 
Similar Threads
not able to get width and height of another html file inside html
Triggering jQuery events without knowing the selector to trigger?
accessing iframes
ipad - keyboard opened on focusing textfield in iframe closes when we touch any where else in ipad
Refresh