View Full Version : no print source?

02-21-2003, 12:11 AM
i was surfing through the web awhile ago and i stumbled upon a website QuatraAssociates.com (http://www.quatraassociates.com) . when i went to print the information, it wouldnt print....how the heck did this programmer do that?:confused: if someone knows, please send me the source code ASAP please!!!:(

02-21-2003, 01:13 AM
??? /me just a printed® 1 of 4...mayyybe your 'printer' was still just a spoolin'® errr whatever its just a called® to memory n' you didnt give it enough just a time®???

just a ps®...
sooo happy /me told it NOT to just a print® the background tooo...hehehe

just a whispers®...
sorrry /me hadda call ya 'what'...:O((( 'cept wha is just a lready® taken by whammy...hehehe...

02-21-2003, 12:59 PM
lol, anyhow, why do you want the source code - all source can be ripped, apart from serverside scripts.

02-21-2003, 11:06 PM
methinks that source code was generated by microsoft... wouldnt touch it with a barge pole ;)

i guess you could use something like onbeforeprint="hideEverything();"...

or @media print { body{visibility: hidden;}}

dont have a clue if the above is valid... ive never used @media things before...

02-21-2003, 11:50 PM
what? whats that code you just gave me? will it work? my bosses just want to know how it is done. i know there is a way through to print it, but if there is a surce code that makes it so that when you click print, it doesnt, please send that. thanks.

Roy Sinclair
02-22-2003, 12:29 AM
@media print { body{display: none;}} works to prevent printing in modern browsers (Netscape 4 is not a modern browser).

02-25-2003, 03:33 AM
umm, where would you putthat in your source code? and what type of script is that? javascript or java or something? if it is, do i need to put it in a script tag or anything?

02-25-2003, 03:36 AM
Originally posted by whatsupyous
umm, where would you putthat in your source code? and what type of script is that? javascript or java or something? if it is, do i need to put it in a script tag or anything? Between teh <style></style> tags in your <head></head> section I'd have thought.

02-25-2003, 10:00 PM
thank you guys so much. i hope this will work and i will tell you guys how it turns out.:thumbsup:

02-26-2003, 02:54 AM
i think there are a few questions that still need answering here. when you say "it wouldn't print" do you mean that the printer wouldn't work for this page, but continued to work for other things, do you mean that the paper accepted this print job, but the paper came out blank? what exactly do you mean? also, which information were you trying to print out? was it on the main page, or did you follow a link first?

i checked through the code on the main page, and as far as i can tell, despite the fact that it uses a bunch of proprietary MS smarttag stuff, nothing it does should in any way effect printing.

02-26-2003, 11:57 PM
Alright, this is how it is: a guy that works with me was surfing the web for business reasons when he comes to this page. He went to the home page and tried to print all the information by clicking the printer in the top of his web browser, but to his dismay, it wouldnt print. When he clicked the printer, it brought up the print screen and when he clicked print, it closed the window and then just sat there and didnt print anything. Then he tried printing some other random page, and he could print it. When he went back to the page to try again, it still wouldnt print. Then our boss tried the same thing on his computer and it did the same thing. That is what happened. Does that help clarify anything?

02-27-2003, 12:57 AM
Originally posted by whatsupyous
Does that help clarify anything?

just a yup® it does...
n' like roy said...
"quote...(Netscape 4 is not a modern browser)...endquote"

n' /me just a proved® by bein' just a ble® tooo print it???

telll errr just a suggest® your just a guys® thattt works with you n' your boss to go n' get just a netscrap® 4...hehehe...n' thennn yas can just a print® your little cartridges out....hehehe...

02-27-2003, 01:31 AM
A URL to the unprintable page would help. :)

02-27-2003, 03:12 AM
Originally posted by meow
A URL to the unprintable page would help. :)

/me just a whispers® to meo...
ummm...twas in whats just a firrrst® post...

02-27-2003, 03:32 AM
You mean I should read the whole thing?! :rolleyes: :o

02-27-2003, 03:55 AM
ok, i've searched for any evidence of code that prevents printing, either intentionally, or as a bug, and i couldn't find anything after nearly 15 or 20 minutes of searching. this makes me think it may have been a fluke. trying going back to the page and see if you can print it now.

if you can't then, i suspect this an as-of-yet unknown bug, relating to smart-tags (doesn't surprise me that it's unknown, because this is the first i've ever seen smart-tags actually in use). in which case, the only way to get that code, would be to copy all of the code (not the content, just the code) from the quatra page, and go through it line by line until you figure out which one is responsible for the no-print bug.