javascript thread: pesky error message...
I had this error too with IE4 when using document.write(). If you put
window.location.reload(); directly after the write then its OK.
Phil
> Right now I'm trying to get this page I created to work on my many
> different types of browsers. I initially created the page in Internet
> Explorer v5.0, and am currently trying to make it available in IE 4.x,
NN
> 4.x, and NN6.x. Right now I am having problems with the IE 4.x. When
> trying to change the HTML between two <DIV> tags using the innerHTML
> property, I get an error message similar to this:
>
> A Runtime Error has Occured
> Do you with to Debug?
>
> Line: 333
> Error: The data necessary to complete this operation is not yet
available.
>
> :and I have no idea what to do at this point. It works just fine in IE
> 5.0, and I figured it would work OK in 4.0, but apparantly it doesn't.
> here is the source right here:
>
> ...
> <DIV ID='example'>This is the original text...</DIV>
> <SCRIPT TYPE='text/javascript' LANGUAGE='JavaScript1.2'>
> document.all.example.innerHTML = "...please change it to this text!!";
> </SCRIPT>
> ...
>
> I have also tried it with "NAME=" instead of "ID=", I have tried a
> "<SPAN>" instead of a "<DIV>" and I have also tried removing the
> "document.all"...only to get the same results each and every time. Does
> anyone know what I'm doing wrong? If so, thanks in advance for you help.