Link to home
Create AccountLog in
Avatar of mattybrown
mattybrown

asked on

image won't display in iframe

Please see http://www.livingthreadstextileartists.com/dev/textile-artists-test2.html and try clicking on Jean Allton or Pam Curtis. The birdcage should change to a different image but doesnt. Unstead I get an error message saying:

The requested URL /devhttp://www.livingthreadstextileartists.com/dev/images/artists-images/jeanallton.jpg was not found on this server.

However, the image is on the server. For some reason that I do not understand, /dev has been added to the start of the URL which is why it can't be found. Can anyone tell me why and suggest a fix?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Because you put it there in the javascript....  Try removing the '/dev from the end of that string.
var url = 'http://www.livingthreadstextileartists.com/dev' + imageLocation;

Open in new window

You cannot have a subfolder like 'dev/'  BEFORE an HTTP designation -- it is an INVALID PATH.

Change your HTML code to access the file locally (it the webpage is local to your own server) os that the path reads ONLY THIS --
dev/images/artists-images/jeanallton.jpg

If you don't know how to change that path, open the HTML file with notepad and search for the JPG name, and edit the path to what I have above, save the file and re- upload it.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of mattybrown
mattybrown

ASKER

Thank you. Works perfectly now.