Javascript works in IE and FF preview but not on web

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Javascript works in IE and FF preview but not on web

    :frown;
    I've modified a photo gallery from Foundation Dreamweaver MX 2004.
    The user clicks on a thumbnail and the picture appears in a larger photo area.

    It was working fine until I added some more thumbnails. When I preview it in
    either IE or Firefox, it works fine. When I upload it (including all of the
    dependent files), the larger photo area blanks out when a thumbnail is clicked.
    I've gone over the javascript code character by character and can't find any
    difference between it and the sample. I've got javascript enabled.

    The site is [url]www.connoisseurslateandtile.com/gallery.html[/url]

    The javascript is:

    // swap image and caption

    function swapPhoto(photoSRC,theCaption,thePrice) {

    var displayedCaption = document.getElementById("caption");

    displayedCaption.firstChild.nodeValue = theCaption;

    document.images.imgPhoto.src = "pictures/" + photoSRC;
    }

    I'm tearing my hair out. Any help would be greatly apreciated.

    DennyA

    [url]http://www.connoisseurslateandtile.com/gallery.html[/url]

    DennyA Guest

  2. Similar Questions and Discussions

    1. Not able to preview javascript results in browser
      i have inherited a web site with several -- <script language="Javascript" src="../scripts/xxxx.js"></script> -- statements in each page, and i...
    2. overprint preview setting in Javascript
      Hello- I'm trying to control Acrobat 7's preferences through a javascript, specifically, the overprint preview checkbox. In the past I've used...
    3. PDF from scanner works in Acrobat but is blank in Preview
      The subject just about says it all. I'm creating a PDF from Acrobat 6.0.1 Pro, scanning in basic 8-1/2x11" pages using an Epson Perfection 3170...
    4. 4-state button behaviour: works in preview but not in browser
      Hi, all, I have created a navbar with four-state buttons in Fireworks MX. It works all right in Preview of Button Editor. I saved the file,...
    5. Pop up Menu Works in fireworks preview but doesn't work when published.
      When I put my pop up menu in dreamweaver the menu doesn't appear. It works in fireworks but when inserted in dreamweaver it doesn't work. Someone...
  3. #2

    Default Re: Javascript works in IE and FF preview but not on web

    :embarrassment;
    Uhh, nothing wrong with the javascript. I made the mistaken assumption that
    when I uploaded gallery.html that the photos I was going to swap would go with
    them as dependent files. Oops.

    My apologies to anyone who looked at the site and scratched their head.

    DennyA

    DennyA Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139