User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,618 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,687 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1551 | Replies: 0
Reply
Join Date: Feb 2005
Location: England
Posts: 91
Reputation: NuGG is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Help Javascript printing

  #1  
Oct 23rd, 2006
I want a ".doc" file to be printed when you click on a hyperlink, however so far all i have been able to print is the page on which the link is situated, and not the doc file.

Im using this script:

<!-- Begin
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
//  End -->

In the page header:...

<link rel=alternate media=print href="file.doc">

Now as far as im aware this should work in all browsers apart from netscape, however it doesnt work at all.

Does anyone know what i have done wrong here?

Thanks for your time,

NuGG
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 12:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC