Professional Web Applications Themes

Javascript works in IE and FF preview but not on web - Macromedia Dynamic HTML

: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: // ...

  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 = doent.getElementById("caption");

    displayedCaption.firstChild.nodeValue = theCaption;

    doent.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. #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

Similar Threads

  1. Not able to preview javascript results in browser
    By Wynnefield in forum Dreamweaver AppDev
    Replies: 4
    Last Post: November 4th, 02:05 PM
  2. overprint preview setting in Javascript
    By ralph lindenfeld in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: September 15th, 07:19 PM
  3. PDF from scanner works in Acrobat but is blank in Preview
    By Rick_Orlina@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 8
    Last Post: September 2nd, 08:37 AM
  4. 4-state button behaviour: works in preview but not in browser
    By adrian.stock webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 0
    Last Post: August 30th, 11:43 PM
  5. Pop up Menu Works in fireworks preview but doesn't work when published.
    By nate_rules2002 webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 24th, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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