Can't get photo gallery to work

Hello,
Whatever help anyone can give me, is very much appreciated.
I'm a novice to Dreamweaver and coding, and just can't get the
photo gallery to work. I've printed out and studied a lot of Adobe
Spry tutorials & samples but still can't figure out what I did
wrong. When I try to preview the gallery from Dreamweaver, nothing
happens.
This is a sample from the dwsync files automatically created
in the images & thumbnails folders and beneath that is the
coding for the gallery file. Thanks very much.
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="27-golfer-redshirt-wtrophy.jpg"
local="128160701243750000" remote="128165836800000000" testing="0"
/>
</dwsync>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>2006 Golf Tournament Photos</title>
<script type="text/javascript"
src="../../includes/xpath.js"></script>
<script type="text/javascript"
src="../../includes/SpryData.js"></script>
<script type="text/javascript"
var dsGallery = new Spry.Data.XMLDataSet("photos.xml",
"gallery/photos/photo");
</script>
<style type="text/css">
<!--
img.thumbs {
float:left;
height:60px;
width:60px;
margin-right:2px;
margin-bottom:2px;
border: solid black 1px;
#main {
position:absolute;
left:476px;
top:128px;
width:491px;
height:315x;
z-index:2;
#thumbContainer {
left:23px;
top:127px;
width:437px;
height:430px;
z-index:1;
position:absolute;
-->
</style>
</head>
<body>
<div id="thumbContainer" spry:region="dsGallery">
<img src="thumbnails/{@thumbpath}"
spry:repeat="dsGallery" class="thumbs"
onclick="dsGallery.setCurrentRow('{ds_RowID}');" />
</div>
<div id="main" spry:detailregion="dsGallery"> <img
src="images-2-23-07/{@path}"/>
</div>
</body>
</html>

The XML file in the "_notes" folder is generated by DW for
synchronizing your local and remote copies of the website. You can
ignore this completely, as it has nothing to do Spry, and only has
to do with DW managing your site. You can even delete _notes or
turn them off in your site profile and it will have no effect.
However, if you have your testing server set up in the site
profile, you'll need to "put" all your files to the testing server
before hitting F-12 or "preview in browser" as all the files might
not be over there.
There are too many variables as to guess why it might not be
working for you, but it's going to be a more simple set up issue,
and likely not your Spry work.
Can you navigate directly to the folder where your files sit,
and let IE or FireFox open the HTML file? That might just show you
that your files are working correctly by removing DW from the
equation.
Again, there are many things that might not be set up
correctly in DW that could cause a site or page to appear to be not
working. I strongly suggest finding some tutorials on site profiles
in DW so you can get them to work with you, not against you. The
dwsync.xml is part of DWs site management power.
Doug

Similar Messages

  • Can't get photo gallery slide show to work

    Hello,
    If anyone could help, I'd appreciate it. This is for a
    non-profit I work for. After getting the gallery to work, I can't
    get the slide show to work.
    from my gallery.html:
    <title>Photo Gallery</title>
    <link href="../css/screen.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="includes/xpath.js"></script>
    <script type="text/javascript"
    src="includes/SpryData.js"></script>
    <script type="text/javascript"
    src="includes/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGallery = new Spry.Data.XMLDataSet ("photos.xml",
    "gallery/photos/photo");
    var dsData = new
    Spry.Data.XMLDataSet("photos.xml","gallery");
    </script>
    <script src="gallery.js" type="text/javascript">
    </script>
    <script src="SpryMenuBar.js" type="text/javascript">
    </script>
    <style type="text/css">
    #main (I'm not incl. details for these - to save space)
    #thumbContainer
    #controls
    #header
    </style>
    </head>
    <script type="text/javascript">
    </script>
    </head>
    <body>
    <div id="header" spry:region="dsData">
    <p>{sitename}<br />
    </div>
    <div id="thumbContainer" spry:region="dsGallery">
    <img src="thumbnails/{@thumbpath}"
    spry:repeat="dsGallery" class="thumbs"
    spry:setrow="dsGallery"/> </div>
    <div id="main" spry:detailregion="dsGallery">
    <img src="images/{@path}" class="images"/>
    </div>
    <div id="controls">
    <ul id="transport">
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage(true);"
    title="Previous">Previous</a></li>
    <li class="pausebtn"><a href="#" onclick="if
    (gSlideShowOn) StopSlideShow(); else StartSlideShow();"
    title="Play/Pause" id="playLabel">Play</a></li>
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage();" title="Next">Next</a></li>
    </ul>
    </div>
    <div id="thumbContainer" spry:region="dsPhotos
    dsGallery">
    <p class="ClearAll"></p>
    </div>
    </div>
    <p class="clear"></p>
    </div>
    </body>
    </html>
    Here's the gallery.js file: (didn't include the global vars -
    to save space)
    dsGallery.addObserver(function(nType, notifier, data) {
    if (nType == "onPreLoad")
    StopSlideShow();
    Spry.Data.Region.addObserver("thumbContainer",
    function(nType, notifier, data) {
    if (nType == "onPostUpdate")
    ShowCurrentImage();
    if (gAutoStartSlideShow)
    StartSlideShow(true);
    function SetMainImage(imgPath, width, height, tnID)
    var img = document.getElementById("mainImage");
    if (!img)
    return;
    CancelBehavior("mainImage");
    Spry.Utils.SelectionManager.clearSelection("thumbnailSelection");
    if (tnID)
    Spry.Utils.SelectionManager.select("thumbnailSelection",
    document.getElementById(tnID), "selectedThumbnail");
    if (gImageLoader)
    gImageLoader.onload = function() {};
    gImageLoader = null;
    gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
    Spry.Effect.getOpacity(img), 0, { duration: 400,
    finish: function()
    gBehaviorsArray["mainImage"] = new
    Spry.Effect.Size(img.parentNode,
    Spry.Effect.getDimensions(img.parentNode), { width: width, height:
    height, units:"px"}, {duration: 400,
    finish: function()
    gImageLoader = new Image();
    gImageLoader.onload = function()
    img.src = gImageLoader.src;
    gImageLoader = null;
    gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
    0, 1, { duration: 400,
    finish: function()
    gBehaviorsArray["mainImage"] = null;
    if (gSlideShowOn)
    SetSlideShowTimer();
    gBehaviorsArray["mainImage"].start();
    gImageLoader.src = imgPath;
    gBehaviorsArray["mainImage"].start();
    gBehaviorsArray["mainImage"].start();
    function CancelBehavior(id)
    if (gBehaviorsArray[id])
    gBehaviorsArray[id].cancel();
    gBehaviorsArray[id] = null;
    function SizeAndPosition(id, toX, toY, toWidth, toHeight,
    callback)
    CancelBehavior(id);
    var effectCluster = new Spry.Effect.Cluster( { finish:
    callback } );
    var ele = Spry.Effect.getElement(id);
    var moveEffect = new Spry.Effect.Move(ele,
    Spry.Effect.getPosition(ele), { x: toX, y: toY, units: "px" }, {
    duration: 400 });
    var sizeEffect = new Spry.Effect.Size(ele,
    Spry.Effect.getDimensions(ele), { width: toWidth, height: toHeight,
    units: "px" }, { duration: 400 });
    effectCluster.addParallelEffect(moveEffect);
    effectCluster.addParallelEffect(sizeEffect);
    gBehaviorsArray[id] = effectCluster;
    gBehaviorsArray[id].start();
    function GrowThumbnail(img, width, height)
    Spry.Utils.addClassName(img, "inFocus");
    img.style.zIndex = 150;
    var id = img.getAttribute("id");
    var twidth = Math.floor(width * .75);
    var theight = Math.floor(height * .75);
    var tx = (gThumbWidth - twidth) / 2;
    var ty = (gThumbHeight - theight) / 2;
    SizeAndPosition(id, tx, ty, twidth, theight,
    function(b){gBehaviorsArray[id] = null;});
    function ShrinkThumbnail(img)
    Spry.Utils.addClassName(img, "inFocus");
    img.style.zIndex = 1;
    var id = img.getAttribute("id");
    SizeAndPosition(id, 0, 0, gThumbWidth, gThumbHeight,
    function(b){gBehaviorsArray[id] = null;
    Spry.Utils.removeClassName(img, "inFocus");});
    function ShowCurrentImage()
    var curRow = dsGallery.getCurrentRow();
    SetMainImage(dsGallery.getCurrentRow()["@base"] + "images/"
    + curRow["@path"], curRow["@width"], curRow["@height"], "tn" +
    curRow["ds_RowID"]);
    function AdvanceToNextImage(moveBackwards)
    var rows = dsGallery.getData();
    var curRow = dsGallery.getCurrentRow();
    if (rows.length < 1)
    return;
    for (var i = 0; i < rows.length; i++)
    if (rows
    == curRow)
    if (moveBackwards)
    --i;
    else
    ++i;
    break;
    curRow = rows;
    dsGallery.setCurrentRow(curRow["ds_RowID"]);
    ShowCurrentImage();
    function SetSlideShowTimer()
    function KillSlideShowTimer()
    function StartSlideShow(skipTimer)
    gSlideShowOn = true;
    if (!skipTimer)
    SetSlideShowTimer();
    var playLabel = document.getElementById("playLabel");
    if (playLabel)
    playLabel.firstChild.data = "Pause";
    function StopSlideShow()
    gSlideShowOn = false;
    KillSlideShowTimer();
    var playLabel = document.getElementById("playLabel");
    if (playLabel)
    playLabel.firstChild.data = "Play";
    function HandleThumbnailClick(id)
    StopSlideShow();
    dsGallery.setCurrentRow(id);
    ShowCurrentImage();
    Thank you.

    Hi,
    I will gladly help you with your problem but please give me a
    link to your gallery wither as a private message or by email
    ([email protected]). The files here pasted are incorrect, look to
    the SetSlideShowTimer() or the StartSlideShow() functions above
    that are incomplete. Not mentioning that the CSS are really make
    the difference.
    It will take me more time to try to reconstruct your
    structure, not having all the files you reference and probably not
    being able to duplicate your problem because the deployment
    failure.
    Cristian

  • TS4006 Can't get photo stream to work on my iPad 2

    I can't get my iPad photo stream to work

    Welcome to the Apple community.
    Are you sure it is enabled properly in settings > iCloud. Is photo stream working on other devices. Have you tried disabling it and then enabling it again.

  • HT4906 How can I get Photo Stream to work in iPhoto on my iMac?

    Photo Stream folder acts as if it has never been used. Yellow box shows directions on how to get started. Even though I have had it working successfully in the past, I tried each of the methods. No luck.
    I have gone through the process of verifying that photo stream is turned on properly on all devices (iPhone 5, iPad (original), and iMac (2011). If I download from my camera, all pictures show up on iPhone and iPad, but not in Photo Stream folder on iMac iPhoto. The date after the title "Photo Stream" shows December 5, 2011. (That's probably when I started using this iMac).

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    Then check the iPhoto/Photo Stream preference pane to make sure the necessary checkboxes are checked.

  • How can I get Photo Mail to work to send pictures?

    I have just purchased Photoshop 11 and have been trying to send photos by Photo Mail but it is not working. Any suggestions on how to make it work?

    michael261905
    As John T. Smith mentions, Photoshop Elements questions should be placed in the Photoshop Elements Forum at Adobe. I believe he has given the appropriate links for doing that.
    Here are some of the questions that will need answers:
    1. How have you set up the Sharing in Elements Organizer 11, Edit Menu/Preferences/Sharing/Email Settings? What do you have set for your Email Client? Have you tried to use Adobe Email Service as the Email Client and successfully gotten an verification code via an email from Adobe?
    2. Specifically where along the process is the feature not working? Please give that in detail when you post in the Photoshop Elements Forum.
    3. If you get to the point where the email is prepared and it just will not send, then check the taskbar for what looks like a double entry when you place your mouse cursor over the Elements Organizer thumbnail there.. On the second, click Maximize.
    But the answers are in the details.
    ATR

  • How can I get elements 11 to work with 16 bits photos?

    In the expert mode of Photoshop Elements 11, I can only work with 8 bits photos. How can I get Elements 11 to work with 16 bits photos?

    No, you can still buy photoshop cs6 (perpetual license) if one doesn't want to subscribe to the cloud version (photoshop cc version 14)
    Either way is expensive compared to photoshop elements.
    http://www.adobe.com/products/cs6.html?promoid=JOLIS

  • HT4623 I can't get my camera to work, or my Photo Booth. Any sugestion

    I can't get my camera to work,or my Photo Booth.  Any sugestion

    Close all apps on your iPad and reset the device.
    To close an app, drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Photos tells me it is connecting to Library for shared photos. It's been saying this for about ten hours. I can't stop it from searching or get it to do anything else. I can go back to my photos but I can't get Photos to find the shared items.

    Photos tells me it is connecting to Library for shared photos. It's been saying this for about ten hours. I can't stop it from searching or get it to do anything else. I can go back to my photos but I can't get Photos to find the shared items.

    Be sure Safari does not have the Block Pop-Up Windows preference set.
    Where I work now there are several unencrypted VLANs that require authentication, and Safari promptly pops up a window for me to register every time.

  • How can I get my ipod to work with itunes?

    When I connect my ipod classic into my new computer it seems that itunes does not recognize it. How can I get my ipod to work with itunes? I'm afraid to disconnect my ipod because the display is saying Do Not Disconnect.

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • Cannot get photo stream to work on MAC, it does work on iPhone and pad.  All are turned on and settings correct

    I have a new MAC desktop 10.9 OSX Since I purchased I have not get photo stream to work, it is correctly on i believe.  I have the latest iphone, and an older i pad and they are streaming my pics, Help?

    Hello, 9914. 
    Thank you for the question.  If the Apple ID used for your iOS devices matches what is being used on the computer, try disabling Photo Stream and enabling it again.  Next, try the steps in the article below. 
    I don't see any photos in the My Photo Stream view of iPhoto or Aperture.
    Make sure your Mac has an active Wi-Fi or Ethernet connection. If you can't connect to the Internet, updates to My Photo Stream will not appear in iPhoto or Aperture. If necessary, review the instructions for troubleshooting your Internet connection on your Mac.
    From your Mac, choose System Preferences > iCloud. Make sure that the Photo Stream checkbox is selected and you're signed in to the same iCloud account that you're using on your other supported devices.
    Open iPhoto or Aperture, then choose Preferences > iCloud (or Photo Stream).
    If you're using iPhoto 9.4 or later, or Aperture 3.4 or later, make sure that the My Photo Stream checkbox is selected. If you'd like all new photos that you've uploaded to your iPhoto or Aperture library to be uploaded to My Photo Stream, make sure that the Automatic Upload checkbox is selected as well.
    If you're using iPhoto 9.2.2 through 9.3.2, or Aperture 3.2.3 through 3.3.2, make sure that the Enable Photo Stream and Automatic Import checkboxes are selected.
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/ts3989
    Cheers,
    Jason H. 

  • Migration Assistant: Problems transferring data from PC (XP SP3) to new Mac Pro 2012 - can not get Migration Assistant to work as PC will not display verfify passcode

    Migration Assistant: Problems transferring data from PC (XP SP3) to new Mac Pro 2012 - can not get Migration Assistant to work as PC will not display verfify passcode
    Hello, I am having problems migrating data from my old PC running XP (SP3) to my new Mac Pro 2012 using the Migration Assistant.
    - I downloaded and installed the Windows Migration Assistant from Apple
    - My Mac recognized PC and displays passcode
    - The sasscode does not show / display on my PC
    - My Mac is then stuck in "authenticating" loop and the PC is stuck "waiting for Mac to connect."
    - Both computers are connected on same network (have connected PC on WIFI and using ethernet to Reuter)
    I have looked on support site and only response I saw says to reinstall Windows Migration Assistant (which I have done)
    Any ideas?  If cant get this to workare there instructions for manually bring across relevant data eg itunes music and apps, photos, picasa data etc?

    Why not turn off the Windows firewall and uninstall any other firewall software you have installed?
    If you are using a Norton product uninstall it and discard it. To fully unistall most Norton products you have to go to the Norton website and download a soecial program to completely get rid of it. The normal uninstall feature built into the program will not remove all of it.

  • Can not get my cam to work on skype

    I can not get my cam to work when using skype - any ideas? cam is working when in photo booth....

    Then you have a problem with Skype. Check their forums for input.

  • Can't get photos on to itunes

    somehow i can't get photo files to appear on the itunes library. i've tried changing the photo format but still doesn't work. can someone help??

    You will have to go to settings when your iPod is connected and then go to Pictures. Here you call up the folder where you have your pictures on the computer. Then after that you update your iPod again and the pictures should then transfer to your iPod.

  • I just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP Please

    i just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP Please

    Hey I've been all over and can't get any help. I'm well aware its not an Apple product but its an app for Mac OS so I thought I'd try here. I bought 2 new iMacs yesterday for my parents (5K) and I'm just trying to get them some help as there in their 70's and AOL is all they know.
    But hey thanks for your help,

  • My iPhone is using my work email to sign in to the cloud, but my apple id and password are with my "personal" email address.  I can't get rid of my "work" email address on my iPhone 4S

    My iPhone is using my work email to sign in to the cloud, but my apple id and password are with my "personal" email address.  I can't get rid of my "work" email address on my iPhone 4S

    Hi Sister Kate,
    If you change the Apple ID you are using on an iPhone or other iOS device, there are several places you need to change it on the device. See this article -
    Apple ID: What to do after you change your Apple ID
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

Maybe you are looking for

  • Is it possible to pick up an existing PDF without permissions and give it permissions?

    There is a product in the field that will convert JES2 output from the mainframe to a PDF. However, the product does not have the abilility to set permissions correctly for comment and markup features to be used in Adobe Reader. The plan was to have

  • Constant Connection Drops

    I'm Panther (10.3.9), RCN cable, no wireless, no router. My connection drops 5-10-15 times a day. Hitting "renew DHCP lease" brings it back. I work at home and am often up/downloading large graphics files, and this is destroying my productivity. I tr

  • Photos in Catalog missing after update

    After the latest update my catalog seem to be missing.  My photo's are in Collections, but as soon as I want to work with them ; I get message Photo missing.  (See attached. If I try and find missing folder and check box - DON'T IMPORT SUSPECTED DUPL

  • My MBP runs hot in the boot volume selection menu

    I noticed that when I start my MBP holding shift to get to the boot volume selection menu and leave it there for 15 minutes or so (might be shorter, I was gone both times that it's happened so far) the MBP gets unusually hot (almost too hot to touch

  • Multiple LDAP directories ...

    Another day, another Livecycle bug ... I have added a new domain/directory to Livecycle. The synchronization works and the users are correctly added to edcprincipalentity. Yet whenever i try to logon to workspace i get An error occurred during the op