Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Writing selected information from one html file to a new document and print the new document without displaying it


Message #1 by "sara" <fillet70@h...> on Thu, 21 Nov 2002 16:54:40
> What zone is this in? Are you sure the security settings are for the 
correct 
one?
Joe

>From: "sara" <fillet70@h...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] Re: Writing selected information from one html file 
>to a new document and print the new document without displaying it
>Date: Wed, 27 Nov 2002 17:29:02
>
>Volker,
>    I tried doing what you suggested. The sample piece of code that you
>gave me works in a html file(i got rid of the timeout as i didn't need 
it).
>When i try to create the ActiveXObject in a javascript function in my ASP
>file, i get an error "Automation server cannot create object".
>The security settings on the browser match what you said.
>Any idea, what the problem could be ?
>
>Regards,
>Sara
>
>
> > > Volker, I have a question ? What you said may work if i have the url
>for
>a>
>a> >  document that is static. I'm generating this document dynamically
>and
>t> > he only way i know to write to the document is by opening a new
>window.
>
> > > newwindow=window.open
>(> > "","","left=0,top=0,scrollbars,alwaysLowered,fullscreen")
>n> > ewdocument=newwindow.document;
>n> > ewdocument.write(message);
>
Yes, it's the internet zone

> > > I hope u understand what i'm trying to say.
>
> > Hi Sara,
>a> ctually we use these scripts for printing dynamic content, but the
>c> ontent is created dynamically on the server and the url includes the
>p> arameters needed.
>B> ut you still can access the document as Sh.Document and you should be
>a> ble to write on it, as in your example
>
> > -Volker
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or
>to unsubscribe send a blank email to 


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


  Return to Index