Robai 0 Posted April 18, 2009 Report Share Posted April 18, 2009 Herehttp://www.w3schools.com/htmldom/prop_ifra...entDocument.aspI looked at this example:http://www.w3schools.com/js/tryit.asp?file...contentdocument1) if I press Get text button I get this error:http://i41.tinypic.com/1692agz.jpg2) if I press Edit and Click Me button then I get this errorhttp://i41.tinypic.com/2ufvp0n.jpg3) if I press Get text button again I get this error:http://i42.tinypic.com/1179wdh.jpgSometimes I get no error when I press Edit and Click Me button, but clicking it several times gets an error again and clicking it more times error dissapears etc.But I always get error with Get text button. Quote Link to post Share on other sites
fabs 0 Posted April 18, 2009 Report Share Posted April 18, 2009 try more Quote Link to post Share on other sites
Trotun 0 Posted April 18, 2009 Report Share Posted April 18, 2009 I had no problems with either buttons. I could edit and view the text.I dunno about the first error. There might've been a mistake in the page's code.The second screenshot still may be because of an error in the code. But just in case check again. It might be alright for you now. If not I think maybe your browser might be out of date. Quote Link to post Share on other sites
Robai 0 Posted April 19, 2009 Author Report Share Posted April 19, 2009 Just found the problem:http://i40.tinypic.com/wmibly.jpgI.e. Frame object doesn't have the property contentDocument in IE at all (even in IE7).I checked it with Firefox (3.0.5) and GoogleChrome (1.0.154.53) and both buttons perfectly worked.So, actually it was false alarm, sorry. Quote Link to post Share on other sites
Trotun 0 Posted April 20, 2009 Report Share Posted April 20, 2009 Ah there yah go! Looks like you did your research good job (not even sure if research is the word to use....but whatev I learned something new from you) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.