HighDots Forums  

Viewing page locally is showing X for image

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Viewing page locally is showing X for image in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
droog
 
Posts: n/a

Default Viewing page locally is showing X for image - 08-06-2004 , 04:27 PM






Im sure im missing somthing obvious, I have my site set up, and when i 'put'
the files on the server, the images show up fine, but if I hit F12 and view it
locally the images arent showing up.

I have the local directory for example c:\mywebsite\inventory/itemcatagory/
if i look at the properties of an image its showing:
file:///C:/inventory/itemcatagory/item.jpg

Got any clue? it's missing c:\mywebsite which i have set up as local root
folder.
help, its no biggy, but its driving me nuts.
thanks



Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 04:36 PM






Quote:
I have the local directory for example
c:\mywebsite\inventory/itemcatagory/
if i look at the properties of an image its showing:
file:///C:/inventory/itemcatagory/item.jpg

Got any clue? it's missing c:\mywebsite which i have set up as local root
folder.
You need to define a site folder in DW, and then make sure all images you
link to are located inside that site folder.

The link above is linking to your hard drive...which won't work at all on
the internet on anyone's computer except yours.

-Darrel





Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 04:36 PM



Your site definition is wrong then.

If you browse to and insert an image with a root relative link you can see
where DW thinks your site root is.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"droog" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Im sure im missing somthing obvious, I have my site set up, and when i
'put'
the files on the server, the images show up fine, but if I hit F12 and
view it
locally the images arent showing up.

I have the local directory for example
c:\mywebsite\inventory/itemcatagory/
if i look at the properties of an image its showing:
file:///C:/inventory/itemcatagory/item.jpg

Got any clue? it's missing c:\mywebsite which i have set up as local root
folder.
help, its no biggy, but its driving me nuts.
thanks





Reply With Quote
  #4  
Old   
droog
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 06:30 PM



Sorry for my ignorance, but what am I missing then?
Local root folder is c:\example
All of my images and html are inside that directory.
If I look at the actual html code, it doesnt have that file:///C:/
im lost.


Reply With Quote
  #5  
Old   
Alan
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 06:34 PM



What is the url address to the page on your server, so the code can be seen,
please.


Quote:
Sorry for my ignorance, but what am I missing then?
Local root folder is c:\example
All of my images and html are inside that directory.
If I look at the actual html code, it doesnt have that file:///C:/
im lost.



Reply With Quote
  #6  
Old   
darrel
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 06:36 PM



Quote:
All of my images and html are inside that directory.
If I look at the actual html code, it doesnt have that file:///C:/
im lost.
What is the actual URL in the IMG tag in your source code?

Can you show us some code or the page in question?

-Darrel




Reply With Quote
  #7  
Old   
droog
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 07:20 PM



www.mtpdist.com

looks all fine there, its when i hit f-12 the x's come up.

Reply With Quote
  #8  
Old   
Alan
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 07:35 PM





Quote:
www.mtpdist.com

looks all fine there, its when i hit f-12 the x's come up.
All the images i see are full absolute paths.

<img src="http://www.mtpdist.com/inventory/bikes/mini_bike_OT-207.jpg"
width="283" height="313" border="0">

Were you off-line when you were viewing the page locally?

Also- check the site definition in Dreamweaver.
dw menu-->Site-->Edit or Manage Sites
Pick that site, Edit button.
Click the Advanced tab at top of window to find things quicker.
Local info pane, put

http://www.mtpdist.com

into the box marked http Address.



Reply With Quote
  #9  
Old   
Alan
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 08:30 PM




Quote:
a
href="/inventory/button_maker_and_badge_parts/1_and_a_quarter_badge_a_minit_bu
tt
on_maker.jpg"

The leading / slash in the path means that is a Site Root relative path.

See this older message:

canned letter #7

it's because you are using Site Root relative paths {they always start with
a leading / slash }, and then either trying to directly view the files from
your hard drive, which is happening when clicking a link on a dreamweaver
"Preview in Browser" page, or you are hosted in a subfolder of a domain like
http://myhost.com/~mysite/

Site Root relative paths won't work in those cases- in the first case
because site root is different than drive root, in the later because the
domain is the site root, not your subfolder.

If that's the reason- change to Document Relative paths if you want the
pages to preview when viewing directly from your hard drive.

*Also- if this site is hosted in a subfolder of a domain, like
http://myhost.com/mysite/ you should Not use site root relative paths with
dreamweaver- they will come out wrong when the files are uploaded.

The point to file and Insert image uses the Last linking method you have
chosen.

******To change linking methods********
select an existing image or link on the page.
in the Property inspector, click the folder icon, to open the "Browse to
File" dialog box. On the lower part of that dialog box is a pulldown, to
choose "Site Root Relative" or "Relative to Document"
Put it on "Relative to Document"
Finish picking the correct file, and click okay.

That setting will now stay that way until it's changed.
When you use the point to file tool, it will use that method of linking.

If you want to quickly change links to a different linking method- install
the Relativity Extension.
http://e7x.com/dw/ Relativity ext.
or here
http://www.microwaved.plus.com/dw/




Reply With Quote
  #10  
Old   
droog
 
Posts: n/a

Default Re: Viewing page locally is showing X for image - 08-06-2004 , 10:00 PM



OK, that was it. thanks for all the help.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.