Jump to content


Dreamweaver or IIS problem?


2 replies to this topic

#1 pizzaboy

    Young Padawan

  • Members
  • Pip
  • 22 posts

Posted 18 November 2005 - 01:04 PM

I'm having a problem accessing files which are not part of the actual webpage (images, css etc.) and I don't really know whether its a Dreamweaver, Internet Explorer or IIS problem? :P

What I do know is that its not the page design (coding - javascript or just plain HTML) thats the problem... maybe using site root directory to reference the files is? :wacko: I'm running Dreamweaver MX 2004 on a XP system BTW.

I'm simply dragging images onto my webpage via the Files Panel and everything seems fine in the Dreamweaver design window, but not when I try to preview it in Internet Explorer. The same applies to style sheets which are externally linked to the page - the styles show fine in DW, and there isn't a problem when I embed the actual css code into my header to get the web browser preview displaying correctly. :D

Has anyone else had this problem or is it just me? :o

I would appreciate any help at all with this, as I've already formatted and re-installed XP once... Is this an Service Pack 2 issue?

Thanks. :D

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 November 2005 - 04:37 PM

You actually formatted your computer because your webpage wasn't working? Wierd...

Anywho, it's dreamweaver. First word of advice, NEVER use a WYSIWYG editor to create a web site for you. It rarely works, and when it does, it's really sloppy.

And since you didn't post any code, my first assumption would be that when you're adding external objects, dreamweaver formats the souce as "file:///path/to/something.gif"
If that's the case, you need to go and manually code the path to each file (which really isn't hard).

If not, then it probably has the root confused. Make sure the paths to the files are relative to where your HTML file is.
i.e. If your index is in "/joe/" and joe is the root direcotry, then a path would look like "/images/file.gif". "/joe/images/file.gif" is not the same, because it would be looking for "/joe/joe/images/file.gif" (bear in mind, by root directory, i mean the name of the directory that the browser would access files from, and refered to the browser as "/").

If none of these things help, post some code (not an entire page, just a portion that deals with some external objects).

#3 pizzaboy

    Young Padawan

  • Members
  • Pip
  • 22 posts

Posted 19 November 2005 - 09:16 PM

I formatted the drive cos Dreamweaver did actually work originally when I setup another website, so I presumed there was something conflicting with the IIS services, like the Anti-virus software or the Ad-blocker or just plain Service Pack 2.

Anyway, the code is very straight forward - in the header I have declared my css link <link href="/_css/academy.css" rel="stylesheet" type="text/css" /> and simply I've inserted an image onto the page <img src="/_images/logo.jpg" />. In both cases, neither display when I open the page via the browser (just in case you ask, the files do exist and are in there folders...).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users