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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfdocument problem on Mac

Status
Not open for further replies.

PushCode

Programmer
Dec 17, 2003
573
US
I have created several form pages that when submitted, create PDF documents using the cfdocument tag. They work on all of the Windows-based browsers I've tested them on, but they are not working on my client's Mac based IE and FF. Is anyone aware of any issues with cfdocument working on a Mac? The problem they have is that when they are given the option to Open or Save the document, it is trying to open/save a .cfm file, not the PDF file as it does in Windows.

Here's an example of one of my cfdocument pages:
Code:
<cfdocument format="pdf">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>Servant HR ~ New Worksite Employee Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
body {
	background-image: url(img/agreement_3.jpg);
	background-repeat:no-repeat;
}
input { font-size:12px; }
#Layer1 {
	position:absolute;
	left:388px;
	top:142px;
	width:163px;
	height:17px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	left:57px;
	top:616px;
	width:174px;
	height:18px;
	z-index:2;
}
-->
</style></head>

<body>
<cfoutput>
  <div id="Layer1">#client_location#</div>
  <div id="Layer2">#employee_name#</div>
</cfoutput>
</body>
</html>
</cfdocument>

You can test it live here:
Thanks for any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top