I have an application that opens construction drawings, some are tifs and some are jpgs (total drawings, 40000+). When a tif is selected windows opens the local default tif viewing application (for me MO Document Imaging). When I open a jpg, my web browser is the viewer (IE7 or Firefox) not my local default viewer. Is there a way to force an application to open or maybe a way to bypass the web browser as a viewer. Thank you for any help that you can offer.
Here is my code...
<cfif FORM.searchtype IS "DPWProjectImages">
<cfset fileLocation = "\\dpw01\scannedimages\">
<cfif IsDefined("form.drawing_year")>
<cfif form.drawing_year is not "">
<cfif fileExists(fileLocation & form.drawing_year & "\" & form.actual_drawing_number & ".tif")>
<cfset fileExtension = "tif">
<cfelseif fileExists(fileLocation & form.drawing_year & "\" & form.actual_drawing_number & ".jpg")>
<cfset fileExtension = "jpg">
</cfif>
<body onload="win=window.open(' + screen.width + ',height=' + screen.height);setTimeout('win.document.title=\'test\'',50);return false">
Here is my code...
<cfif FORM.searchtype IS "DPWProjectImages">
<cfset fileLocation = "\\dpw01\scannedimages\">
<cfif IsDefined("form.drawing_year")>
<cfif form.drawing_year is not "">
<cfif fileExists(fileLocation & form.drawing_year & "\" & form.actual_drawing_number & ".tif")>
<cfset fileExtension = "tif">
<cfelseif fileExists(fileLocation & form.drawing_year & "\" & form.actual_drawing_number & ".jpg")>
<cfset fileExtension = "jpg">
</cfif>
<body onload="win=window.open(' + screen.width + ',height=' + screen.height);setTimeout('win.document.title=\'test\'',50);return false">