• 0

IE 10 Bug?


Question

Hi, I am a web developer, I am facing some issues with the Internet Explorer 10. I have hosted a test module in the link given below.

http://54.247.103.19/index.html

The problem i'm facing is the issue with the text box. when i first enter the values the text box, it is accepting them but when i try to edit them the second time i am not able to enter values in the text box. You can find the same issue in the hosted link given above. Please let me know if you got a solution to sort this particular issue.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

add this to your iframe:

onload='document.getElementById(\"ifrmdocuments\").contentWindow.focus();'

Change your TextBox.html body:

<body onfocus="document.getElementById("first").focus();">

And first input:

<input type="text" id="first" value="first"/>

This will manually set the focus for your elements. The onload is necessary because IE can't focus on elements that are not loaded yet.

Is this what you're looking for?

Link to comment
Share on other sites

  • 0

By the way... My IE10 seems to like xhtml strict more than xhtml transitional:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>

And if you're writing a page for modern Browsers, you should use:

<!DOCTYPE html>

This is even supported by many older browsers and enables HTML5 features when available. Also, HTML5, the current upcoming standard, does not expicitly define a XHTML standard and it seems like XHTML will get a deprecated status in the near future. So try writing elements like: <element> and not <element />.

Link to comment
Share on other sites

  • 0

@Jones111 Thanks for the reply but still i have issues after changing the code . It preventing the text entry in the text box while opening the html again in the iframe

@XerXis In the actual scenario, i will replace different page in the iframe

i updated the code as Jones's suggestion, but still have the issues. please help

Link to comment
Share on other sites

  • 0

Quotation marks are magic. My version was:

onload='document.getElementById(\"ifrmdocuments\").contentWindow.focus();'

But your page is:

onload='document.getElementById('ifrmdocuments').contentWindow.focus();

Maybe your editor messed around with it :) .

Link to comment
Share on other sites

This topic is now closed to further replies.