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

reference image in another folder

Status
Not open for further replies.

tinac99

Programmer
Jan 17, 2002
58
US
Hi,

I am trying to reference an image in another folder:

c:\dev
c:\dev\app1\app1\callingfolder.aspx
c:\dev\app2\blue.jpg

Callingfolder.aspx is trying to link to the blue.jpg file:

<img id="MainMenu" src="../images/menubar-small1.jpg" usemap="#menubar" border="none" />

<map id="menubar" name="menubar">
<area coords="743, 1, 856, 21" href="../../app2/blue.jpg" shape="rect" alt="Bulletin" target="_self" />
</map>

I'm running into error:

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Please help!

Thanks,

TinaC99
 
I'd check your folder structure very carefully.

Do you not have an image folder in the app2 folder?

Are you sure there's only one app2 folder inside dev, not 2 like app1?

If you address the image directly in the browser does it open?

Might there by a case difference in the actual file name, and the link in the application?





----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Why are you trying to traverse the directory tree across the boundaries of two sites?

Correctly setup webservers should have parent paths disabled to prevent directory traversal attacks and exploits.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Callingfolder.aspx is supposed to be the home page with a menu bar leading to different subsystems with different databases but sharing one session all across the systems.



I changed the folder structure and put folder app2 under the c:\dev\app1\app2\. It still didn't work with the ref
<map id="menubar" name="menubar">
<area coords="743, 1, 856, 21" href="../app2/blue.jpg" shape="rect" alt="Bulletin" target="_self" />
</map>

If you could give me leads in setting up a "home page with a menu bar leading to different subsystems with different databases but sharing one session all across the systems", I would greatly appreciate it.

Thanks for your help!
 
That is beyond the capabilities of HTML and you need to be asking in forum856

But having each "subsytem" in a subdirectory but NOT set as an application will simply allow "domain" cookies/sessions to be "shared"

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top