Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening .tiff outside of IE

Status
Not open for further replies.

jrshaw03

Technical User
Jan 14, 2005
18
US
As a part of a tech manual a js funtion calls a tiff file and attempts to open it inside Internet Explorer. If the users could install the AlternaTiff plugin for IE this wouldn't be a problem but security limitations prevent it. As a solution I would like to pass the file to Microsoft Office Document Imaging and have it opened there. This is the default program to open tiffs on our computers so...
Is there a command in javascripting that would simply open this tiff file without much of a fuss?
Something like:
open("filename")

Thank you for your time,
Jimmy
 
...Is there a command in javascripting that would simply open this tiff file without much of a fuss?
Nope. You would have to use javascript to instantiate an ActiveXObject (WSHShell) to achieve this (this will only work in IE for Windows browsers).

Here is a starting point over at MSDN:


Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Ok just so I understand.
I would create a WSHshell, Activate the Office Imaging program and then pass the .tif file to it.?
Does that sound semi-correct?

Thanks again,
Jimmy
 
Yeah... that's exactly how I would envision it. I'm not really up to speed on using ActiveXObjects so I can't really help you much further... I just knew the words to start you off [smile]

I'm sure someone in the forum will pick up on this soon and give you some more precise answers.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
After some playing around awhile I tried using:

document.location.href= "Target File"

I was scanning through .tif files so I used a variable for the target file, and it worked like a charm. Since the file associations were already correct, it turned out to be very little work.

Thanks for your help BabyJeffy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top