Results 1 to 3 of 3

Thread: javascript and iframes

  1. #1
    Join Date
    Nov 2010

    javascript and iframes

    Please see http://www.livingthreadstextileartis...sts-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 the javascript is generating an incorrect URL and suggest a fix?

  2. #2
    Join Date
    Nov 2006
    Please take a look at the URL because obviously the /dev is appended to the target URL.

    Here is the script causing the issue:
    <script language="javascript">
    function updateImage (imageLocation)
    //alert (location);
    var url = 'http://www.livingthreadstextileartists.com/dev' + imageLocation;
    document.getElementById("frameID").src = url;

    You should remove the "dev" in the var url.... statement.

  3. #3
    Join Date
    Nov 2010
    Thank you. I tried removing the dev, and that didn't work. But when tried this code, it did:

    var url = '' + imageLocation;

    ie - take out the URL completely

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center