Robai Posted April 18, 2009 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. Link to comment Share on other sites More sharing options...
fabs Posted April 18, 2009 Share Posted April 18, 2009 try more Link to comment Share on other sites More sharing options...
Trotun Posted April 18, 2009 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. Link to comment Share on other sites More sharing options...
Robai Posted April 19, 2009 Author 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. Link to comment Share on other sites More sharing options...
Trotun Posted April 20, 2009 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) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.