Click to See Complete Forum and Search --> : Print multiple page links w/ 1 button


timgilbert
11-15-2003, 10:05 PM
We use both Active Server Pages and standard HTML pages at our web site. We have a few thousand users who have to regularly print multiple pages. Right now, they go to one Table of Contents page and click on numerous links, open new pages and print each one individually.

I would like to be able to offer them the ability to go to the T.O.C. and print all of the page links (contained within a table) with the click of one button.

Is this possible? I wonder if putting the links into an array, and them printing everything within the array...???

My JS knowledge is minimal - any help would greatly be appreciated. If you don't know the answer, but have a thought and could point me in a different direction that would also be appreciated.

Thanks!
TGilbert
Middle of nowhere Illinois -

96turnerri
11-16-2003, 08:12 AM
Try this

<a href="javascript.Array.print();">Print T.O.C</a>

<script type="text/javascript">
new Array();
http://www.xx.com;
http://www.yy.com;
http://www.zz.com;
</script>

not sure if it will work tho :rolleyes:

Charles
11-16-2003, 08:28 AM
The print method is a property of Window objects, not Array objects. You will have to open each window, inturn, in a new window and print that window.

96turnerri
11-16-2003, 09:30 AM
ok thanks didnt think it would work but worth a try :)

timgilbert
11-16-2003, 06:58 PM
Thank you for the replies - it is most appreciated.

It seems that by todays advanced computing knowledge, we could print a page that isn't showing in the browser screen.

The easiest way would be to have our program combine all necessary items to print - into one html page. Either that, or open all the other documents into very small pop up windows which would show the title of the document and the print button only. Just line them up nice and neat for the users.

I appreciate the replies, thanks peeps :)

TG