Unknown runtime error

R

RyanFoushee

Hello,

Here is my problem:

I have a span that contains all the content I want displayed. Then I
load in some other web page's HTML into an hidden iframe on my page.
After it has finished loading I try and set the span's innerHTML to
the hidden iframe's html.

IE 6.0 doesn't like this and I get an Unknown runtime error.

Things I have noticed when debugging:
1)I get the error when the new HTML contains <p> or <div> tags. Other
tags and text work just fine.
2)When I output the contents of the Content_Span without updating it's
HTML there is an extra </p> tag at the beginning that is not in my
page's source code.
3)Set Content_Span.innerHTML = "<xxx><b>test</b>". Then when I output
the Content_Span.innerHTML to an alert it gives "<b>test</b>".

History:
I have done this before using an applet to load the HTML and then
called a javascript function, via LiveConnect, that updated the
Content_Span.innerHTML just fine for all HTML. But an applet will no
longer work for my requirements. Also, IE is the only browser I that I
needs this to work on.

Any suggestions?

TIA,
Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top