Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page is garbage

Status
Not open for further replies.

PGMR1998

MIS
Apr 10, 2001
29
US
this code opens 2 ms word docs into a single browser window. the 2nd document shows first and looks ok, but when i cick the back button on the browser to see the first document, it looks like garbage. anyone no why?

<!--
function submitforms()
{
var d1 = &quot;Test1.doc&quot;;
var d2 = &quot;Test2.doc&quot;;
myWindow = window.open(d1);
myWindow.location=&quot;}
// -->
</script>
 
My guess would be because loading the second page caused the first one to stop downloading before it was finished. Try using a loop to check if myWindow is complete before loading the second page.
 
By garbage what do you mean?

I ran your code as is, with one exception, and it worked fine! I opened a document on my home computer, and a second document from an &quot;Internet&quot; site. The back and forward options worked each time. The lone exception is that I am not on an &quot;Intranet.&quot;

The problem may be that the first document is not &quot;Intranet&quot; compatible. I believe that an Intranet system converts documents into a &quot;readable format&quot; from a variety of formats. So the problem may be the version of MS Word of the first document.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top