Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Images and CSS not displaying in browser output
Images and CSS not displaying in browser output [message #79955] Fri, 12 September 2008 07:59 Go to next message
Eclipse UserFriend
Originally posted by: shagy.someplace.com

Hi,

My Browser Output (tab) is not including my CSS file and my images are all
showing a Red X.

If I put the full path to my images; for example, <img
src="f:\web\images\theimage.jpg" />
it works, but if i put <img src="/images/theimage.jpg" /> it shows the red
x.

If I access the page directly from within firefox or IE the images and CSS
are displayed.

i'm using php 5 with pdt 1.0.3 on windows xp.

any help will be greatly appreciated.

Thanks.
Re: Images and CSS not displaying in browser output [message #79971 is a reply to message #79955] Fri, 12 September 2008 15:45 Go to previous message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Are you loading the page in the internal Eclipse browser as
file://path/to/file.php? Or http://localhost/path/to/file.php? Which one
works in your external browser?

And have you considered setting Eclipse to use a different browser for
previews?

Are you running some http server locally, eg., jetty, lighttpd, apache?
If not, you can't use http://localhost addresses, only file:// addresses.

(BTW, a new integration build of PDT 2.0 is out. If you're ready to move
up to Eclipse 3.4, I'd suggest trying the new PDT.)

Nick

Shagy wrote:
> Hi,
>
> My Browser Output (tab) is not including my CSS file and my images are all
> showing a Red X.
>
> If I put the full path to my images; for example, <img
> src="f:\web\images\theimage.jpg" />
> it works, but if i put <img src="/images/theimage.jpg" /> it shows the red
> x.
>
> If I access the page directly from within firefox or IE the images and CSS
> are displayed.
>
> i'm using php 5 with pdt 1.0.3 on windows xp.

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
Previous Topic:PDT2: code templates: indentation & comment templates
Next Topic:Eclipse PDT I20080909 Crashes When Saving
Goto Forum:
  


Current Time: Tue Apr 16 21:46:23 GMT 2024

Powered by FUDForum. Page generated in 0.08103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top