Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Printing a html file..

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  Strange letter from nominet  
Author Message
user543

External


Since: Jul 28, 2004
Posts: 36



(Msg. 1) Posted: Fri Aug 13, 2004 2:44 pm
Post subject: Printing a html file..
Archived from groups: alt>www>webmaster (more info?)

What would be the easiest way in html to print another html file that is
in the same directory?

I'm thinking of coding it in PHP, but can't help feeling I'm missing an
easier way....?

Basically, I've got this nice pop-up window that shows some details
about a product - The popup window loads the the included html file, by
way of php include and GET_$ parameter to specify the file that I want
to load in the pop-up. But I can't help thinking there is a way to print
it out without displaying it out, without it printing the whole root page?

Is this making sense?

No..Ok...

 >> Stay informed about: Printing a html file.. 
Back to top
Login to vote
user543

External


Since: Jul 28, 2004
Posts: 36



(Msg. 2) Posted: Fri Aug 13, 2004 2:48 pm
Post subject: Re: Printing a html file.. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stefan Walker blabbered somewhat inanely on 13/08/2004 11:44:

 > What would be the easiest way in html to print another html file that is
 > in the same directory?
 >
 > I'm thinking of coding it in PHP, but can't help feeling I'm missing an
 > easier way....?
 >
 > Basically, I've got this nice pop-up window that shows some details
 > about a product - The popup window loads the the included html file, by
 > way of php include and GET_$ parameter to specify the file that I want
 > to load in the pop-up. But I can't help thinking there is a way to print
 > it out without displaying it out, without it printing the whole root page?
 >
 > Is this making sense?
 >
 > No..Ok...

I forgot to explain that the popup window is actually a div layer - Not
another browser window - Hence my problem in printing just the contents
of the div - Not the whole page.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Printing a html file.. 
Back to top
Login to vote
spamblocked

External


Since: Sep 14, 2004
Posts: 588



(Msg. 3) Posted: Fri Aug 13, 2004 2:48 pm
Post subject: Re: Printing a html file.. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stefan Walker wrote:

 > Stefan Walker blabbered somewhat inanely on 13/08/2004 11:44:
  >> ...
  >> Is this making sense?
  >>
  >> No..Ok...
 >
 > I forgot to explain ...

URL?

--
William Tasso
Recommended reading ...
<a style='text-decoration: underline;' href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>
<a style='text-decoration: underline;' href="http://www.aww-faq.org/" target="_blank">http://www.aww-faq.org/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Printing a html file.. 
Back to top
Login to vote
user543

External


Since: Jul 28, 2004
Posts: 36



(Msg. 4) Posted: Fri Aug 13, 2004 2:57 pm
Post subject: Re: Printing a html file.. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

William Tasso blabbered somewhat inanely on 13/08/2004 11:51:

 > Stefan Walker wrote:
 >
 >
  >>Stefan Walker blabbered somewhat inanely on 13/08/2004 11:44:
  >>
   >>>...
   >>>Is this making sense?
   >>>
   >>>No..Ok...
  >>
  >>I forgot to explain ...
 >
 >
 > URL?
 >
The project is based on my local server php at the moment, I'll upload
later.

Hmmm...I might have the solution after reading back from some old forums.

I'll keep delving...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Printing a html file.. 
Back to top
Login to vote
usenet200408

External


Since: Aug 02, 2004
Posts: 145



(Msg. 5) Posted: Fri Aug 13, 2004 9:43 pm
Post subject: Re: Printing a html file.. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stefan Walker wrote:

 > I forgot to explain that the popup window is actually a div layer - Not
 > another browser window - Hence my problem in printing just the contents
 > of the div - Not the whole page.

<style>
@media print {
  div.noprint { display: none; }
  div.printme { display: block; }
}
</style>
<div class="noprint">This won't get printed.</div>
<div class="printme">This will get printed.</div>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Printing a html file.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]