[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 11-01-2005, 09:23 AM   #1 (permalink)
Account Suspended
 
LeetPCUser's Avatar
 
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,714
17.55 NP$ (Donate)

LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold

AIDS/HIV
A Print Redirect:PHP?

I am working on a page for a school site mainly created with Joomla. I know, I don't like it either. Well, they need to be able to update it. I need it so when a page is printed, it will not print the current page, but a different, specified page, on the server. I need this because our code hides the headers and everything but the disclaimer and menu still show on print. The nice thing is we loaded this file in a wrapper, so we have the original,with no menus, on the server. How can I tell the page to print a different page from the one the person is viewing?

Thanks,
LeetPCUser is offline  
Old 11-01-2005, 10:05 AM   #2 (permalink)
NamePros Regular
 
Join Date: Sep 2005
Location: Seattle, USA
Posts: 238
2,090.00 NP$ (Donate)

iDev has a spectacular aura aboutiDev has a spectacular aura aboutiDev has a spectacular aura about


Most of the time I see the CMS have a "print" page which is a different template with just/mainly the core content which the user would then print. Sometimes there is a print button on that page. I have not seen seen a web page that would print a different web page then the page that the user is currently on.
iDev is offline  
Old 11-01-2005, 10:25 AM   #3 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
you meanm like direct it to a confirmation page rather than the content they just input.

if so and you are brave enough you could try a header redirect but you would need to find where to add the code. I am not familiar with that system so can't really help at the moment.
Peter is offline  
Old 11-01-2005, 11:47 AM   #4 (permalink)
Account Suspended
 
LeetPCUser's Avatar
 
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,714
17.55 NP$ (Donate)

LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold

AIDS/HIV
What I did was made a seperate CSS file that hid different classes and id's.
LeetPCUser is offline  
Old 11-01-2005, 01:05 PM   #5 (permalink)
NamePros Member
 
Join Date: Nov 2003
Location: Ontario, Canada
Posts: 91
80.80 NP$ (Donate)

eagle12 is on a distinguished road


I agree with TheComputerGeek247.

Make a different css for just printing, and link it to the page. Set the media to print for the css you want to use for printing, and the other one to screen.

Then all you have to do is hide the portions of the page you don't want printed.
eagle12 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
README: What is a Logo? The difference between web and print? Tips on creating Logos. Sylense Design Contests 4 10-22-2005 07:36 AM
Problems with Print CSS Crashing IE in Windows mcdzinr Programming 2 10-08-2005 08:38 AM
Offline (Print) Advertising: Does It Work? Dave in Carthage The Break Room 5 10-03-2005 08:39 AM
CGI/Perl FormMail...Won't Work! CGYFlames03 CODE 4 06-29-2005 01:30 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:21 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85