Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

image won't display in iframe

Posted on 2010-11-13
4
446 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:mattybrown
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34129416
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

0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 34129419
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.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 34129437
Never mind what I said above.  When I looked at the headers, I realized that 'imageLocation' is a complete URL so all you need is this:
var url = imageLocation;

Open in new window

0
 

Author Closing Comment

by:mattybrown
ID: 34130079
Thank you. Works perfectly now.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question