document.write() problem

S

seans

Hi, please can somebody help me with this? I have a HTML document
displayed in an iframe. Controls on the HTML page are data bound to an
XML file. I use a drop-down list to move between the different
recordsets in the XML file and hence change the text displayed in the
HTML page.

I use JavaScript to display the contents of the iframe in a separate
window. The new window displays the HTML page. The problem is that
contents of the HTML page are always for the first recordset in the XML
file even when I change to a different recordset.

I found that if I omit the document.write from the code then it works
OK. Am I doing something wrong?

Here's the JS code:

function displayFullScreen() {

newWindow = window.open("", "newWin",
"toolbar=yes,location=no,scrollbars=no,resizeable=yes,width=screen.width,height=screen.height,left=0,top=0")

newWindow.document.write((getRframedoc()).documentElement.outerHTML)
newWindow.document.close()
}

thanks again.

sean
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top