This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2004 > Broken Image links?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Broken Image links?
|
|
| Gavitron 2004-03-08, 4:29 pm |
| I have made a few sites in DW3 and for some reason this last one, If I upload
it none of the page graphics show up. Even if I use preview in browser it will
show me the ones for that file but if I click on one of the other pages in the
site the images go to a red x.
The images are in the root directory, I have tried puting them in a file and
re linking them but that doesn't help either. It seems so simple I don't know
what it could be... any ideas??
Just strange because I am not doing anything different then I have done while
making other pages...
| |
| Murray *TMM* 2004-03-08, 5:28 pm |
| This is how DMX will work if you are using ROOT RELATIVE links, *and*
temporary files to preview.
Here's an example -
* I create a page with a link to an image -> <img src="/images/foo.gif">
(note that the image link is a root relative link)
* I preview that page with DMX (since I am using temp files, DMX is kind
enough to realize that root relative links won't work in a preview, and so
it converts them to document relative links when it builds the temporary
file for the preview) -> <img src="../images/foo.gif"> (I'm assuming that
your document is one level below the root of the site). In the preview,
this page looks fine because the browser has no trouble with the document
relative link - it knows where the file it just opened is, and can follow
the path to the image).
* I then click on a link in the previewed page to another page that also has
ROOT relative linked images --> <img src="/images/bar.gif"> and suddenly
the image does not load.
Why? Because when you click away from the temp file DMX just built for you,
you have lost the benefit of the automatic conversion that DMX does with
root relative links, and the browser looks for this new image starting from
the root of the hard drive, not the root of your site.
The solution is to not use root relative links, and to change all your
existing ones to document relative.
To read more about this, go here -
http://www.macromedia.com/support/d...te_root_rel.htm
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"Gavitron" <webforumsuser@macromedia.com> wrote in message
news:c2il7j$kij$1@forums.macromedia.com...
> I have made a few sites in DW3 and for some reason this last one, If I
upload
> it none of the page graphics show up. Even if I use preview in browser it
will
> show me the ones for that file but if I click on one of the other pages in
the
> site the images go to a red x.
>
> The images are in the root directory, I have tried puting them in a file
and
> re linking them but that doesn't help either. It seems so simple I don't
know
> what it could be... any ideas??
>
> Just strange because I am not doing anything different then I have done
while
> making other pages...
>
| |
| Gavitron 2004-03-08, 5:29 pm |
| ack NM I see now that in preview it does the same on all my pages. The reason
it wasn't working on the web is because I hadn't added my hotlink protection
for that domain so it was blocking all of my pics because of that =D
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|