Solved

image won't display in iframe

Posted on 2010-11-13
4
442 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 82

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 82

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now