Dynamic renaming of files

liunx

Guest
I am having a bit of trouble with my web designing and haven't been working with Javascript for very long so my knowledge is quite limited. I am working with Dreamweaver 3.0. <br />
<br />
Basically, i have a page split into 2 frames, the top frame and the bottom frame. In the bottom frame there is a list of files that are linked to code files elsewhere on my h drive. I want these, when clicked on, to display the relevant code in the top frame. The problem is that the code files have extensions of .mod, .def, .ddf etc. and when the link is clicked Notepad is opened rather than the code being shown in the top frame. <br />
<br />
If i change the file extensions to .txt then at all works perfectly but the only problem there is that there are over 500 files and changing the extension to every single file isn't an option. Also the whole page needs to be maintainable, i.e. if the files were updated but kept the same file name then they would just replace the old files and the links would work. <br />
<br />
Can anyone help???:confused:<br />
<br />
Moderators Note<br />
Cross postings are considered rude.Please refrain from doing that.<br />
Thanks.<!--content-->ok well, dunno if youve got an answer, but i can suggest maybe having a temp file created with php<br />
<br />
copy the file from its location, to yoursite/temp, then rename to .txt, then open<br />
<br />
php.net .. post in the php forum<br />
<br />
you could prob do all this with asp too (?)<br />
<br />
good luck<!--content-->
 
Back
Top