Jump to content



Photo

IE 10 Bug?

html

  • Please log in to reply
6 replies to this topic

#1 funny_bala

funny_bala

    Neowinian

  • Joined: 30-August 05

Posted 05 March 2013 - 07:07

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.


#2 Jones111

Jones111

    Neowinian

  • Joined: 30-October 08

Posted 05 March 2013 - 09:00

add this to your iframe:
onload='document.getElementById(\"ifrmdocuments\").contentWindow.focus();'

Change your TextBox.html body:
<body onfocus="document.getElementById(&quot;first&quot;).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?

#3 XerXis

XerXis

    Neowinian Senior

  • Joined: 13-February 06
  • Location: Belgium

Posted 05 March 2013 - 09:12

why are you constantly replacing the entire iframe instead of reloading it?

#4 Jones111

Jones111

    Neowinian

  • Joined: 30-October 08

Posted 05 March 2013 - 09:47

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...tml1-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 />.

#5 OP funny_bala

funny_bala

    Neowinian

  • Joined: 30-August 05

Posted 05 March 2013 - 10:28

@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

#6 Jones111

Jones111

    Neowinian

  • Joined: 30-October 08

Posted 05 March 2013 - 18:46

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 :) .

#7 OP funny_bala

funny_bala

    Neowinian

  • Joined: 30-August 05

Posted 06 March 2013 - 10:47

Thanks very much Jones! that quote mark does magic! :rolleyes:



Click here to login or here to register to remove this ad, it's free!