Go Back   CodingForums.com > :: Client side development > General web building > Site reviews

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-24-2002, 01:59 PM   PM User | #1
murphyz
Regular Coder

 
Join Date: Jun 2002
Location: London
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
murphyz is an unknown quantity at this point
Dreamweaver Preview - missing images

I have recently updated to Dreamweaver MX and find a few problems with viewing images in my preview.

When I preview a page from Dreamweaver it shows fine with the pictures (with the exception of pages with a 'random image' javascript in it). However, whenever I follow links it takes me to the right page but the images are missing.

I assume everything will be fine when I upload the site, but it's still annoying as I am in the development stage and also as some links are actually through image maps.

Any idea why this is happening (perhaps the links are sending me to cached pages instead of the actual pages) and how I can make it so images are viewable when previewing?

Thanks again

Mxx
__________________
"Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'
murphyz is offline   Reply With Quote
Old 11-24-2002, 02:40 PM   PM User | #2
ionsurge
Senior Coder

 
Join Date: Aug 2002
Location: A 4D universe
Posts: 1,337
Thanks: 0
Thanked 0 Times in 0 Posts
ionsurge is an unknown quantity at this point
I have no idea what you have done, but while someone else who does know posts the answer, open the index.html file in your browser, or what have you, and save the page in dreamweaver, and refresh the page in your browser.


Ionsurge.
__________________
http://www.mudsplat.com - Web design, print, and marketing solutions.

Last edited by ionsurge; 11-24-2002 at 02:43 PM..
ionsurge is offline   Reply With Quote
Old 11-24-2002, 03:05 PM   PM User | #3
murphyz
Regular Coder

 
Join Date: Jun 2002
Location: London
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
murphyz is an unknown quantity at this point
I've no idea what's happened either.

I am working from a folder on the desktop and when I preview the index page the url is shown as
C:\WINDOWS\Desktop\www.murphyz.co.uk\TMP97j9r635qb.htm
instead of
C:\WINDOWS\Desktop\www.murphyz.co.uk\index.htm

If I dismiss dreamweaver altogether and browse for the file through IE it has the right URL but the pictures still don't work!

grrr

Mxx
__________________
"Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'
murphyz is offline   Reply With Quote
Old 11-25-2002, 03:29 AM   PM User | #4
JustAsking
Regular Coder

 
Join Date: Jun 2002
Location: -27° 28' 22" , 153° 1' 22"
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
JustAsking is an unknown quantity at this point
OK! Dreamweaver can sometimes be a pain in the butt, agree...

Anyway, I'm not exactly sure what the problem is but what I suggest you do is check the code in dreamweaver where you have your images. Sometimes if you insert an image using dreamweaver it causes an error in the absolute address to link to the image.

(e.g. file:///C|\WINDOWS\Desktop\www.murphyz.co.uk\images\image1.gif)

See where I have bolded, dreamweaver sometimes replaces the colon sign : with a more | sign, and this causes the image to not been displayed outside of dreamweaver. Check to see whether that | (more) sign is used, if so open file using notepad or something and change it to a colon.

Hope that fixes the problem.

If you are using a relative address to link to images, then I'm stumped. e.g. <img src="../images/image1.gif">

Quote:
I am working from a folder on the desktop and when I preview the index page the url is shown as
C:\WINDOWS\Desktop\www.murphyz.co.uk\TMP97j9r635qb.htm
As for this, that's just the name of the temporary file dreamweaver assigns it when you preview the page through dreamweaver (F12). That's why when you open the page in IE it shows the correct address (index.htm).
__________________
"Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

Last edited by JustAsking; 11-25-2002 at 03:32 AM..
JustAsking is offline   Reply With Quote
Old 11-25-2002, 12:33 PM   PM User | #5
murphyz
Regular Coder

 
Join Date: Jun 2002
Location: London
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
murphyz is an unknown quantity at this point
It seems that images are working from a 'root site' so only the preview is available in the browser. This means DW is just using paths such as /images/egypt/pyramid.jpg when inputting the code instead of ../../../images/egypt/pyramid.jpg

Not sure why it's doing this as it never has previously, although I re-defined my site this weekend so perhaps there was an option I highlighted when setting it up.

As long as it works when uploaded that's all that really matters, although I would prefer to preview it first.

DW Answers suggests setting up a local server - any ideas on this?

I used to have DNS2GO but it's now cancelled and deleted from my machine - could this be a reason why it's now different?

Mxx
__________________
"Imagination is more important than knowledge" A. Einstein's 'Twin Paradox'
murphyz is offline   Reply With Quote
Old 07-15-2009, 03:54 AM   PM User | #6
scruffus
New to the CF scene

 
Join Date: Jul 2009
Location: portland oregon usa
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
scruffus is an unknown quantity at this point
bumping this ancient post up

because i have run into this exact same problem, and i am hoping i will have better luck than the original poster. i recently bought a pc with mx on it, and am in the process of building my first website, my own, and learning as i go. the problem was explained pretty well by murphyz but the main thing is that the images are there if i preview the page directly, but not if i link to it from its source page in preview. i am afraid of putting any more work into it only to find that its defunct when i publish it. any body have any ideas?
scruffus is offline   Reply With Quote
Old 07-15-2009, 04:17 AM   PM User | #7
scruffus
New to the CF scene

 
Join Date: Jul 2009
Location: portland oregon usa
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
scruffus is an unknown quantity at this point
just found the answer on another forum. i here copy in the answer for any future searchers:

Remove the first backslash from the file path if you have images in subfolders.

So

img src="/taco/layout/headerleft.gif"

becomes

img src="taco/layout/headerleft.gif"

This is one of DW's quirks and something that really bugs me too


YAY!

Last edited by scruffus; 07-15-2009 at 04:22 AM..
scruffus is offline   Reply With Quote
Old 02-03-2010, 05:49 AM   PM User | #8
gurlzcode2
New to the CF scene

 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gurlzcode2 is an unknown quantity at this point
Smile

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I recently took on maintenance of an absolutely awful web page. One thing led to another and I gradually started to build one... VERY gradually.

Now that it's almost done, I decided to organize everything into the proper folders, including placing my images and css in their respective folders.

Needless to say, when I opened in Dreamweaver it was a mess, as I expected. I spent an entire night (tonight) adding /img/ and /cssfiles/ to the appropriate code. I ended up creating a whole new page and just copying and pasting the css files because for the LIFE of me I couldn't figure what I was doing wrong. Well that fixed the CSS, but the images were nowhere to be found outside of Dreamweaver!!!

If it wasn't for this thread, I would still be sitting her, eyes glazed over, and properly twitching... not knowing to just remove one bloody slash!

BLESS YOU!
gurlzcode2 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 12:37 PM.


Advertisement
Log in to turn off these ads.