Solved

Please help! my images are gone!

Posted on 2004-09-28
9
162 Views
Last Modified: 2013-12-24
Hello,

I tried to change my code from

<img src="CCImages/FinalCCImages/yellowbutton.gif">

to

<img src="/CCImages/FinalCCImages/yellowbutton.gif">

so i change from "relative to document" to "relative to site" but my images are gone.  now it does not show up in the browser.

Thanks.
0
Comment
Question by:mdbbound
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 35

Expert Comment

by:mrichmon
ID: 12174974
is the document in the web root?  If not then the above will not work.

What is the address of the page you are changing?
0
 

Author Comment

by:mdbbound
ID: 12175012
Mrich

When you say web root do you mean this?:

C:\CFusionMX\wwwroot\MySiteName\CCImages\FinalImages\yellowbutton.gif

When I select the yellow button by clicking the  src folder, I go to the above path and once selected this is how it appears in the cfm page

/CCImages/FinalCCImages/yellowbutton.gif

I dont get this site and document relative stuff.  Please help!

0
 

Author Comment

by:mdbbound
ID: 12175066
Mrichmon

the page (one of the pages) where that image should appear is located here:

C:\CFusionMX\wwwroot\MySiteName\TheCFMpage.cfm

Thanks
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 17

Assisted Solution

by:Tacobell777
Tacobell777 earned 100 total points
ID: 12175838
if your domain is for example

http://www.domain.com

and your images are

http://www.domain.com/image/

then you can refer to it absolute like /image/image.gif

if your images are located in

http://www.domain.com/somedir/image/

then you can refer to it absolute like /somedir/image/image.gif

absolute is taken from the root, i.e. http://www.domain.com
0
 

Author Comment

by:mdbbound
ID: 12175909
Hi Tacobell777

I did this /somedir/image/image.gif

It did show up in IE but in DW it has that grey torn paper image.  Is this usually the case?

or i am not doing things right?

Thanks
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12176052
it depends, if DW can find the web root and how you have it setup.
also if part of the path is dynamic then DW will not find it, i.e. #webRoot#/image/
0
 
LVL 17

Accepted Solution

by:
anandkp earned 300 total points
ID: 12177543
what u've done indicates that "CCIMAGES" is a directory present in ur ROOT ... Followed by FinalCCImages & then with the yellowbutton.gif
<img src="/CCImages/FinalCCImages/yellowbutton.gif">
the key here is - ur travelleing from root - towards teh gif ...

& not from ur calling document towards teh gif [<img src="CCImages/FinalCCImages/yellowbutton.gif">]
as this wld have meant that u have a subfolder called CCImages in ur calling file directory

generally DW will set up links as relative to document ... but if u can figure out a way to set up a project or a root kinda stuff in DW [i dunno if this is possible] - then the same link wld work in both DW & IE.
0
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 100 total points
ID: 12180691
When I say the page address I mean on the web.

How do you access in Internet Explorer?

If you are using the DW preview then it is possible they will not show up.

Try pushing your files to the live server (both page and image) and then see if they are accessible directly from the browser.
0
 

Author Comment

by:mdbbound
ID: 12181566
Thanks Mrichmon and anandkp and tacobell777

I will do as Mrichmon suggested, right now i have bigger problems.  

I appreciate all your help and quick response.  I'll let you know when i can get back to this issue.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
URL redirect 4 67
Script 12 175
Website Test Question 6 128
Forbidden errors 5 152
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question