- see footer for list info -<
I just don't seem able to get cfcontent to work with SVG files .....

I am unsure about some of the code with CFheader etc .. as to exactly what it does ....!

I was thinking of copying the file from the folder on the server to a place where I could link to it with a simple <a href ... as this seems to work ok.

However I am unsure of how to write the code to do this. I'm sure it must be possible ...

Can anyone help me please ...?

Heres how it works at the moment ....

The user copies files to a know FTP directory. I then look at that directory to see if there is a file there. If there is show a link to it and load a page that does the cfcontent....

Here's the code for the first page ....



<cfloop query="get_years">
<cfset filetoget="#get_years.date_year#\#menuPath#\#pathName#\#reportID##doctype#"> <cfset path="d:\perform\reports\#get_years.date_year#\#menuPath#\#pathName#\#reportID##doctype#">
                                <cfset report="#reportID#">
                                <cfset DocType="#docType#">
<!---<cfset path="svg\#get_years.date_year#\#menuPath#\#pathName#\#reportID##docType#">---> <td valign="left" align="left" width="35" style="font-family: Arial; font-size: 10pt">
                                        <cfif (FileExists(#path#)) AND (#url.test# 
neq 1)>
<a href="fetch_maps.cfm?document=#filetoget#" target="_blank" class="hyperlinkNORMAL"> #get_years.date_year#</a>
                                        <cfelse>
                                                <cfif #url.test# eq 1>
<a href="fetch_maps.cfm?document=#filetoget#" target="_blank" class="hyperlinkNORMAL"> #get_years.date_year#</a>
                                                <cfelse>
<font color="##999999" size="2" face="Arial, Helvetica, sans-serif">#get_years.date_year#</font>
                                                </cfif>
                                        </cfif>
                                        <!---
<a href="reports/#get_years.date_year#/#menuPath#/#pathName#/#reportID##docType#" class="hyperlinkNORMAL">#get_years.date_year#</a>
                                        --->
                                </td>
                        </cfloop>


Aghhh please ignore that nasty font tag ..!


And the code for the second bit ....


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<!--- Is user logged in ? --->
<cfif not isdefined("session.loggedin")>
<cflocation url="loggedin/password.cfm?page_id=maps.cfm">
</cfif>

<cfcontent file="d:\perform\reports\#url.document#" type = "image/svg+xml">
</body>
</html>


Regards - Paul


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to