LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-08-2003, 07:55 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Website building question (javascript)


Hi all,

I am VERY new to making websites and only know the basics. Can you guys go to:

http://home.earthlink.net/~tenews/businesses.html

I know it's cheesy, but let's keep the laughter to a minimum! Anywho, you'll notice the javascript that prints the page. Basically, it is supposed to send the page to the printer (which it does), but it's ONLY supposed to send the text. It does that fine, but it also prints the printer icon and the words "Printer Friendly". I don't want it to do that. Print it out, you'll see what I mean. Anyone know why this is not working right? I'd really appreciate any help! Thanks a million!

Chris
 
Old 08-08-2003, 10:10 PM   #2
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
Hehe I click on your toolbar? For lack of better description and nothing happens!
The toolbar I'm talking about is to the left of the page. If I hover then the display at the bottom changes... but nothing else happens.
 
Old 08-08-2003, 11:28 PM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
What browser are you using? Actually, this is not my site. It's a friends, but she is having the printing problem and asked me to look at it. I can't figure it out, can you or anyone else? My site is not much better (as I am a ). Anyway, the problem is with the "printer friendly" thing described above. Anyone help out?

Chris
 
Old 08-10-2003, 12:43 AM   #4
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
i haven't tested this...(don't have a printer), but supposedly it prints certain sections of a page that would have been previously labeld as such....

Code:
<script>
function printStory(divId) {
  w=window.open('','newwin')
  w.document.write('<body onLoad="window.print()">'+document.getElementById(divId).innerHTML+'</body>');
  w.document.close();
}
</script>

<div id="story1">
this is section 1... of page 1....
</div><a href="#" onClick="printStory('story1'); return false">Print this story</a>
<div id="story2">
this is section 2... of page 1....
</div><a href="#" onClick="printStory('story2'); return false">Print this story</a>
...found that on expertsexchange.com ...url :
http://www.experts-exchange.com/Web/..._20671081.html

hope it helps

[edit]
i modified it a bit...the original text in the sections was long as hell and scrolled 10 feet to the right in the browser window :0

Last edited by jhorvath; 08-10-2003 at 12:47 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Website building? bigjohn General 3 08-16-2004 05:56 AM
website building with screem bigjohn Linux - General 0 03-05-2004 10:50 AM
Apache (website building) question WorldBuilder Linux - Software 2 09-15-2003 09:38 PM
learning html and website building watashiwaotaku7 General 27 08-03-2003 01:30 PM
Tools for building Website Sifvion Linux - General 7 07-08-2002 03:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration