Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
* * * * * 1 votes

Need To Print My Webpages


6 replies to this topic

#1 aswath_t

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 20 October 2008 - 02:06 PM

i need to print all my five html pages in my website by clicking single button
and i used the javascript to print the current page. but i need to print all the five pages at a time. help me out.

#2 shadowx

    Live your life so that in death you may stand side by side with your gods. Not at their feet.

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,674 posts
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:36.41
  • Spam Patrol

Posted 20 October 2008 - 02:20 PM

I dont really write Javascript but could you do something like:

print page one
document.location = pagetwo.htm
print page two
document.location = pagethreee.htm
print page three

and so on?

#3 aswath_t

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 20 October 2008 - 02:34 PM

tanx buddy i'll try this method. whether this command will work in java script?. or shall i use PHP ?

#4 shadowx

    Live your life so that in death you may stand side by side with your gods. Not at their feet.

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,674 posts
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:36.41
  • Spam Patrol

Posted 20 October 2008 - 03:09 PM

You would have to use Javascript i think, but as i said i dont know much javascript so i cant do it for you. If you know javascript than make some code that does what i described and it should work i think. Im not sure though, it was just an idea!

#5 galexcd

    Trap Grand Marshal Member

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts
  • Gender:Not Telling
  • myCENT:89.24

Posted 20 October 2008 - 11:14 PM

Why don't you make single html webpage and put the content for all five pages on that webpage? You could space them out to actually print out on five separate pieces of paper. As a user I'd rather press print on the confirmation once than have to hit the print button 5 times to print it out.

#6 aswath_t

    Newbie

  • Kontributors
  • Pip
  • 4 posts

Posted 21 October 2008 - 08:51 AM

good idea.. but i can't do so.because the website is hosted and the user want the brochure means they need to take print out from the site itself. so i give one link that "print Brochure" on all the five pages and i gave the code to print current page. then any body click that link it will print only the current page. all i need to make a code to print all the five page by clicking that link in every page.. try to give me some solution.. your last idea is done.but its temp solution.. tanx for that. make some other idea to done for permanent solution.

#7 galexcd

    Trap Grand Marshal Member

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts
  • Gender:Not Telling
  • myCENT:89.24

Posted 24 October 2008 - 11:25 PM

I'm sorry but I don't see why my solution can't be a permanent solution. Why don't you make a link that runs a script in javascript to open a different page with the content of all five pages on it, prints it and closes that page.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users