Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Javascript printing multiple pages?

  • 20-12-2005 04:07PM
    #1
    Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭


    Does anyone know if it's possible to use javascript to print like 20 different html files without having to all of the documents open? I was thinking about a hidden frame, but that's out of the question.

    Any suggestions appreciated


Comments

  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    What, precisely are you trying to do?


  • Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭colm_c


    It's like a mini website that ships with an application, kinda like a set of help files.

    The client wants to be able to print it either section by section or print the whole thing - all 50 pages in one go...


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    This sounds like a job for.... CSS!!!

    Unfortunately, being but a poor, mad, programmer, I know little of such things. Others may be able to help you further tho.


  • Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭colm_c


    I don't really think CSS could do this unless I dumped all the contents of the help files into one master and did a show hide thing - but I don't really want to go down this route just for a print version of the files...


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    Well, you could have javascript pull in the data on demand, and put it in a handy div. This is, these days, called "AJAX", and is a popular buzzword, but it's also, rather unexpectedly, quite useful.


  • Advertisement
Advertisement