Creating a photo gallery like the China Gallery in Adobe Labs. How?

I have photos in several categories (I'll use 2, "frank" and "wolfie" as examples here). What I'd like to do is build a photo gallery like the China Photo Gallery shown in the Adobe Labs site, where the user can switch between categories without going to a different page. Here's what I've done so far and how I'm stuck:
I created a photo gallery with the instructions in the tutorial "Building a photo album with the Spry Framwork". I then inserted a Tabbed Panels widget for navigating between the categories.
I set up an XML file as follows:
/* frank category */
<photo
path = "001p.png"
width = "467"
height = "467"
thumbpath = "001p.png"
thumbwidth = "85"
thumbheight = "85">
</photo>
/* wolfie category */
<photo
path = "001f.png"
width = "467"
height = "467"
thumbpath = "001f.png"
thumbwidth = "85"
thumbheight = "85">
</photo>
To create the div holding the thumbnails for the "frank" category, I entered the following:
<div class="thumbdiv" spry:region="dsGallery"><img src="thumbnails/frank/{@thumbpath}" spry:repeat="dsGallery" spry:setrow="dsGallery" class="thumbs" /></div>
To create the div where the full size images will be displayed, I entered the following:
<div class="mainpic" spry:detailregion="dsGallery"><img src="images/frank/{@path}" onload="MM_effectAppearFade(this, 1500, 0, 100, false)" /></div>
Then, in the tabbed panel set for the "wolfie" category, I did the same thing, substituting "wolfie" for "frank". However, since there is only one xml file, spaceholders for all of the thumbnails appear in the thumbnail div for the frank category. I realize that I'll probably need to create a separate xml file for each category, but how do I set it up so the correct xml file is accessed when the link in the tab is clicked? Or am I approaching this all wrong?
From reviewing the source for the China gallery, it appears that they set up links to different xml files instead of Tabbed Panels. How does that work? There are also some javascript files I can't find anywhere on Adobe's site.
Thanks

Hi,
If you have seperate XML file but with the same basic structure then you can change the XML a Spry dataset refers to and regenerate the spry region without reloading the full page.
So on my photo gallery page I can change the album the photos are shown from via the seturl sprydata function as below.  dsPhotos being my Spry dataset that points to the relevant XML dataset with my image references and captions etc.  My XML is actually dynamically generated from Picasa RSS feeds (and RSS feeds are XML) but the principle will be the same with your static XML.
First I add an event listener for when someone clicks on an album (the li tag within my div with the id "albums" holds a photo and title for each album.)
function Albums()
var myalbums = Spry.$$("#albums li", "TabbedPanels1")
var rows = dsAlbums.getData();
var setListener = function( element, value )
  Spry.Utils.addEventListener( element, "click", function(){ showAlbum( value ); },false );
for( var i = 0, length = myalbums.length; i < length; i++ )
  setListener( myalbums[i], i );
Then this is the code which changes the photo album to be shown. (when the user clicks the relevant album)
function showAlbum(i)
pauseShow();
pImage = 'No';
var rows = dsAlbums.getData();
var albumid = rows[i]["albumid"];
var url = "xml/PicasaAphotoFeed.asp?albumid=" + albumid;
dsPhotos.setURL(url);
dsPhotos.loadData();
var rowcount = dsAlbums.getRowCount() - 1;
var nextalbum;
var navnext;
var n;
The page is here www.thehmc.co.uk/photo5.html is you want to see it in context.
In your case showAlbum would switch between Frank.xml or Wolfie.xml depending on how you decide to name your xml datasets.
Regards
Phil

Similar Messages

  • Once I create a html5 animation using the 'Toolkit for CreateJS' in flash, how do I then insert it..

    Once I create a html5 animation using the 'Toolkit for CreateJS' in flash, how do I then insert it into a webpage via Dreamweaver:
    This has been sending me round in circles for over a week - can anyone let me know how I do this or can they point me in the direction of a tutorial?  Thank you in advance - d;-)

    There are some tutorials on Adobe site:
    <http://www.adobe.com/devnet/createjs/articles/getting-started.html>
    <http://tv.adobe.com/watch/adc-presents/toolkit-for-createjs-part-1-designing-game-assets/>
    <http://tv.adobe.com/watch/adc-presents/toolkit-for-createjs-part-2-adding-game-interactivi ty/>
    The parts 1 and 2 are videos about 10 minutes each while the first link is a detailed article that you can print and practice on your machine.
    Hope this helps.

  • I created an outline font and manipulated to create a new logotype. now i want to created a solid font from the outline as a single stroke -- how?

    i created an outline font and manipulated to create a new logotype. now i want to created a solid font from the outline as a single stroke -- how?

    g,
    As I (mis)understand it, you may have a look at the ways suggested in these threads, increasing the Stroke Weight as desired after creating the centre path:
    Re: How to make perfect thin inner outline of text?
    Typography effect

  • My school wants to purchase three copies of one of my photo books. The school is tax exempt. How can we make a tax exempt purchase using a school credit card?

    My school wants to purchase three copies of one of my photo books. The school is tax exempt. How can we make a tax exempt purchase using a school credit card?

    I don't believe Apple is setup for tax exempt purchases.  It's strictly comsumer oriented.
    Are you making a profit on your book sale?  If so just up the price to cover the tax and you purchase it and deliver to the school. If not then reimburse the school for the tax and write it off as a deduction.
    OT

  • My LR4 has suddenly stopped importing photos. Reinstalling the program didn't help. How do I correct

    My LR4 has suddenly stopped importing photos. Reinstalling the program didn't help. How do I correct this application error?

    Does it not work either way? Sending and receiving? Did you check the settings and make sure that nothing has changed? If you can receive email, but not send it, check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • I have a website done using CS3. Can I create galleries with CS6 like the one I do using CS3?

    I have tried to use CS6 to create galleries like the on CS3 can create to update my website but I cannot reproduce what I do in CS3 can somebody help me?
    Thank you very much.
    Regards
    Francesco

    fsveltophoto wrote:
    I have tried to use CS6 to create galleries like the on CS3 can create to update my website but I cannot reproduce what I do in CS3 can somebody help me?
    The answer is maybe. I do not know if you can on a Mac I know MAC is 64 Bit only and the was no 64bit Picture Package Plug-in for the Mac CS5. I do not know about Mac Web Photo Gallery.
    If your using windows and have the perpetual version of  CS6  version 13.0.1.2 for windows you can install the CS5 optional plug-ins for Photoshop into that version of CS6.   Web Photo Gallery (WebContactSheetII) plug-in will function if you install the necessary files.  However if your a subscriber to CC some plug-in support has been removed from CS6 version 13.1.2 and CC.  A Feature that old plug-ins like Web Photo Gallery and Picture Package used is no longer available in Photoshop.
    Adobe did add a poorer web gallery feature into the Bridge's output module but the new galleries can not be customized as well as  Photoshop old Web Photo Gallery can be customized..

  • Load a new gallery from the main gallery

    have a question about loading new photos into a already populated image gallery.
    So I have my gallery set up so first loads my stage pics. What I would now like to do is load different set of images via the click of a button.
    So for example the loaded gallery already has all thumbs loaded and the user can click on them to view the full size image. next instead of the user having to close this gallery to allow a new gallery to open with a different set of pictures I would like to have a button. This button will unload the existing thumbs from the gallery and load in new ones.

    I didn't see a specific question so I'm guessing you have not tried anything. Your ability to do what you want and how you might go about it depend on how your existing gallery is done.  If you look up the loadMovie function or MovieClipLoader.loadClip() method you'll see that when you target the loading into a specific movieclip, the loaded object replaces whatever was already there and assumes all of the properties of that movieclip.  So you should think along those lines in the way you have your file designed and how to go about replacing the contents of one gallery with another's.

  • I still need help. i am technically challanged.  i up graded my phonr to a 5 s.  i backed up my phone on icloud.  i cAn not get my notes or photos.   it looks like the icloud email address is wrong. how can i change it or get my missing items

    I need help. I am not good with technology. I upgraded phone today to 5 s I am missing notes and photos  it looks like the cloud address is not correct. Any suggestions

    Have you forgotten your password? - if so, you have a problem if the email address has gone dead.
    If you know your password, go to the iTunes Store, click on Account. log in and you can change the associated email address.
    If you don't know your password, and have no email address, you are going to have problems because it's difficult to see how Apple are going to identify you as the authorised owner of the account. Contact iTunes Support: go to http://www.apple.com/support/itunes/ - click on 'Other iTunes Store Features' in the list and then on 'Podcasts'. You will see a link to either 'Express Lane', which will guide you eventually to some contact options, or you may see a link to email them.

  • Creating Hirarchal/ Recursive report like the Balance Sheet in Quickbook in rdlc

    Hi All Experts,
    I am creating an Account Software FMS, here I facing a problem to create a Hirarchal report with drill through report in RDLC. the problem which i facing is to create a Trail Balance in the Hirarchal / Recursive form where there are Parent and more child
    accounts are oriented and I want to see it in the Parent/Child for like in Tree view. Kindly help me in this regards you can give me example on the Employees table of Northwind database where managerID and ReportsTo fields link it.
    thanks in Advance.

    Hi Afridi_ALAMDAR,
    According to your description, you want to have a hierarchy structure in your rdlc report. Right?
    In Reporting Services, if you want to have a tree view to navigate to corresponding fields, you can use a document map to achieve your goal. A document map provides a set of navigational links to report items in a rendered report. We just need to set the
    document on group level so that it will create tree nodes within this group. For more information, please see:
    Create a Document Map (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to create a service partition like the original from lenovo

    hey their, i have installed windows 7 on my x200. afore i have cleaned up all partiton incl. the service partition. now my question: how can i create a service partiton with the same behaviors like the original one (access the partition via the thinkvantage button and so on). i hope, someone can help me.

    You need a set of recovery disks to re-create the partition.
    If you haven't burned them when you first got the machine, they can be purchased directly from Lenovo or other online sources.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Is it possible to create a custom header on the summary report in Adobe FormsCentral?

    Hello,
    I was wondering if I can create a custom header in the Adobe FormsCenteral Summary Report section? If so, then how is that accomplished?
    Thank you,
    Brian

    Sorry this is not supported.
    Gen

  • How to create a Photo slideshow to the beat of the Music?

    How do I create an upbeat slideshow where each picture changes right at the beat of the music?   I know how to add markers and insert my photos one my one, but is there an easier more effective way to do this?  It is very difficult to try to just listen to the music and guess where the beats are, I wish there was a sure way to know where the beat of the music is.  Once you even have all the markers placed, is there a way to insert all the photos at once right where the markers are?  I have been researching and trying to do this for the past few days, and feel like there must be a better way to do it.  Any advice would be appreciated.

    Hi Brookeshanae,
    Check out this link: Premiere Pro Video Adrenaline: Edit to the Beat : Adobe Premiere Pro Tutorial
    Thanks,
    Kevin

  • Creating a Photo Album through the Fireworks CS3

    I'm trying to create myself a photo album in dreamweaver and
    it says I need Fireworkds 4 or GREATER, so I click the download
    trial button and I downloaded thhe Fireworks CS3, but dreamweaver
    doesn't recognize it and keeps saying "I need a fireworks 4 or
    greater"
    Any help please, thanks.

    quote:
    Originally posted by:
    Newsgroup User
    Sounds like you're not using Dreamweaver CS3. It that's the
    case, it doesn't
    recognize a program written in it's future.
    If you ARE using DW CS3, I can't really help without a little
    more
    information.
    I have Dreamweaver 8. So what fireworks program would I need
    for the photo album to work. Can I get a trial of Fireworks 4 or
    some other fireworks program somewhere else??

  • How to create a repeating region like the attachements in Gmail

    I don't even know how to begin Googling or searching here for
    this topic. But I've got a form and I want to have two fields show
    up for inputting the fabric type and then the pattern name. This
    site will allow them to request fabric swatches to see in person
    how they look and make a decision for their furniture. And if
    customers want to ask for more than one sample, I want to be able
    to have a link that says, "Request another" and when clicked, it
    creates another instance of those two fields automagically, just
    how the attachments in Gmail work.
    Is this something possible with Spry? I'd like to think it
    is, but it might need some jury rigging to ensure that the ids for
    those text inputs are all unique and such. But like I said, I don't
    even know how to begin searching for this topic since "repeating
    area" or "repeating region" brings back 1000s of unrelating
    results.
    Anyone have any experience doing something like this and
    could shed some light on it and/or point me toward some resources
    that could help out?
    Thanks!

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

  • Creating new photo album on the iPhone.

    How do i add a new photo album on my phone?

    Mac or Windows PC?
    If a Mac, are you using iPhoto for photo storage and management, or are you manually managing photo storage on your computer?
    If a Windows PC, do you manually manage photo storage on your computer or are you using an application for this?
    Creating photo albums for photos is done on your computer and transferred to your iPhone via the iTunes sync process.

Maybe you are looking for