470,604 Members | 2,014 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,604 developers. It's quick & easy.

document.write() problem

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()).document Element.outerHTML)
newWindow.document.close()
}

thanks again.

sean

Aug 25 '05 #1
2 1620


seans wrote:
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.
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()).document Element.outerHTML)
newWindow.document.close()


There does not seem to be anything wrong with the code as it is, perhaps
with data bound controls any content change is to reflected in
inner/outerHTML.
Can you post a URL where you try the above?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 25 '05 #2
Hi Martin. Thanks for your reply. I managed to overcome the problem.

thanks,

sean

Sep 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by James Marshall | last post: by
2 posts views Thread by Brett Baisley | last post: by
12 posts views Thread by *.* | last post: by
13 posts views Thread by Stumped and Confused | last post: by
12 posts views Thread by Sean | last post: by
136 posts views Thread by Matt Kruse | last post: by
11 posts views Thread by Michael Powe | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.