Hi,
The following is a portion of my template that would display links based a directory list, in this case, the files are all pdf document.
<CFDIRECTORY
ACTION="list"
DIRECTORY="#GetDirectoryFromPath(GetBaseTemplatePath())#\#RefDir#\#RefDirSelect#"
NAME="myRefSubDir"
SORT="name ASC, size DESC">
<CFLOOP QUERY="myRefSubDir">
<tr>
<td><A HREF="javascript:window.open('#RefDir#/#refDirSelect#/#NAME#')"><IMG SRC="images/rt_arrow_circle.gif" WIDTH=33 HEIGHT=33 BORDER=0 ALT="#NAME#"></A></td>
<td width="90%"><STRONG><A HREF="javascript:window.open('#RefDir#/#refDirSelect#/#NAME#')"><FONT face=Verdana>#NAME#</FONT></STRONG></A></td>
</tr>
</CFLOOP>
When clicking on the link, a separate window opens up to display the pdf document. But in the original directory list page, instead of still displaying the file list with link, the page became blank with a line of text:
[object]
As a result, I no longer have any links available to open a different pdf document.
What did I do wrong?
Thanks
Mike
The following is a portion of my template that would display links based a directory list, in this case, the files are all pdf document.
<CFDIRECTORY
ACTION="list"
DIRECTORY="#GetDirectoryFromPath(GetBaseTemplatePath())#\#RefDir#\#RefDirSelect#"
NAME="myRefSubDir"
SORT="name ASC, size DESC">
<CFLOOP QUERY="myRefSubDir">
<tr>
<td><A HREF="javascript:window.open('#RefDir#/#refDirSelect#/#NAME#')"><IMG SRC="images/rt_arrow_circle.gif" WIDTH=33 HEIGHT=33 BORDER=0 ALT="#NAME#"></A></td>
<td width="90%"><STRONG><A HREF="javascript:window.open('#RefDir#/#refDirSelect#/#NAME#')"><FONT face=Verdana>#NAME#</FONT></STRONG></A></td>
</tr>
</CFLOOP>
When clicking on the link, a separate window opens up to display the pdf document. But in the original directory list page, instead of still displaying the file list with link, the page became blank with a line of text:
[object]
As a result, I no longer have any links available to open a different pdf document.
What did I do wrong?
Thanks
Mike