I know this was working before and can't figure out for the life of me why it isn't working anymore.  I didn't write the code and am very new to CF, so I'm having trouble trying to figure it out.  Here's the situation.

Users will be able to search for a property based on its address. The result will be a list of properties matching the street name they entered. From that list, they will click on a particular property and get a report. In the report will be a link to the associated PDF document for the property.

The problem is that now I always get a "page not found" error when I click on the document link. The new window pops up, but it just says page not found.  I'll post some of the code for the various steps below...

First of all, each property has an ID and this, combined with the date the property is entered, makes the unique identifier for the property. Each property has a folder and inside the folder are the PDFs for all the documents associated with that property. Make sense? Each document in the folder has its own unique ID, which is just a number.

here is the code for the link to the document...

<a href=""> #PropDate#&did=#DocID#', 800, 600)"  title="#application.cost_doc_download# points">Download this document</a>

Then it goes to the page confirm_DocDownload.cfm and the code is as follows...

<cfoutput><frame name="f2" src=""> #DateFormat(PropDate,'mm-dd-yyyy')#&PropDate=#url.PropDate#&did=#url.did#" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0"></cfoutput>

Then it goes to the page confirm_DocDownload1.cfm and the code is as follows...the part where it sets the filename also sets the folder name.

<cfset suffixappend = ".pdf">
<cfset filename = "DATA/#NumberFormat(url.PropID)#-#DateFormat(url.PropDate,'mmddyyyy')#-#TimeFormat(url.PropDate,'hhmmsstt')#/#suffixappend# ">

<script Language="_javascript_">
title="doc"
location="#filename#"
</script>

Can anyone help me understand why this isn't working?  If you need any more information, please let me know!

THANK YOU!!!!
Christy
:)
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to