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

Relative file reference not working in Interdev

Status
Not open for further replies.

MartinDurant

Programmer
Jan 25, 2002
41
GB
I'm using Interdev and PWS under Win98. When I run my new project, none of the references to files (images or other html pages) work unless I specify the full path.

This doesn't work
Code:
<FRAME SRC=&quot;menu.htm&quot; NAME=&quot;menu&quot;>

This does work
Code:
<FRAME SRC=&quot;D:\Web Development\PhotoArtOnline\PhotoArtOnline_Local\menu.htm&quot; NAME=&quot;menu&quot;>

If I use Windows Explorer and simply double click my html file, all the links work. If I load up another project into Interdev all the relative references work.

I am guessing that I have done something wrong in PWS, but cannot see what. Any ideas?

Thanks in advance,

Martin.
 
To use a relative path you need to set up a virtual directory (eg. InetPub) in PWS and publish your pages there. This might be your problem.
 
I already had a virtual folder set up in PWS for this project and Interdev seemed to be communicating with it quite happily. I will now delete this virtual folder as well as the Interdev project, reboot and start again.

There's something about PWS and Interdev that leaves me wanting to commit computercide - I want to tear my PC's innards out with a spoon and hang it's bloody and lifeless corpse from the bird table for the starlings to peck at.

That's my frustration vented...for now.
 
For the last 2 years I have been programming ASP but never faced such a funny problem..
Really surpricing..
 
I've never used Interdev, so haven't experienced similar. However, Visual Basic occasionally throws up some wierd, inexplicable problem that makes no sense and is rectified by doing the exact-same-thing from scratch. Maybe it's a Microsoft thing.
 
Even not using Virtual directory,you can have it right.
you don't have to mention absolute path.Relative path is ok.
 
I have started again and used a different project name, and all seems OK for now. Despite deleting all folders, files and registry entries relating to my old project, it didn't work. So I've learnt my lesson now. Never try to re-use an old project name - always use a fresh project name for each project!.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top