Troubleshoot Main Image for spry photo gallery
Hello, I am modifying some spry files to see if I can get the
hang of it using my images. I have taken the photo gallery files
gallery.js
SpryData.js
SpryEffects.js
xpath.js
The folder structure contains images and thumbnails on the
root folder as well as the ap.css sheet and photos.xml
The page is
http://www.proximita.com/learning/index.html.
Since I only have 1 photo gallery (and I did the getting
started tutorial and worked fine I wanted to add the slideshow
effect in the spry demo functionality) I only have one xml doc and,
as mentioned, the both image folders and the css sheet are on the
root, and the all the js files are in an includes folder.
The thumbnails show up fine, but, the main image does not
show up at all. I am almost sure this is a bad reference somewhere
or a begginners mistake but I cant find it.
I did modify the gallery.js because it referenced 2 or three
variables (like dsPhotos and dsGalleries that are used for the demo
I only have dsGallery) and I cahnged all of the other refrences to
dsGallery.
I think I am having problems here:
function ShowCurrentImage()
var curRow = dsPhotos.getCurrentRow();
SetMainImage("galleries/" +
dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"],
curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
you can check out the whole code here:
http://proximita.com/learning/includes/gallery.js
Im unconcerned with appearance for the moment, and would just
like to see the main image and the slideshow functionality.
If you can help, please do. Thanks, Mario.
yes, I suspect that is because the tutorial talks about
building this from scratch and uses that name for the "thumbnails"
div rather than what they actually use in the demo files...
confusing, to say the least.
It would be nice if there were a simple document with demo
files that didn't include other stuff unrelated to JUST the slide
show (gallery)... and if the whole layout were more simple,
css-layout-wise...
or, if the demo files were commented with what each bit is
for and how to modify it.
quote:
Originally posted by:
Dragos GEORGITA
Hi Mario,
I took a look at your sample and I've noticed you change the
ID of the container that holds the thumbnails (it was called:
"thumbnails". now it's "thumbContainer").
You need to open gallery.js and change the observer to point
to the new container:
Change
Spry.Data.Region.addObserver("thumbnails", function(nType,
notifier, data) {
To
Spry.Data.Region.addObserver("
thumbContainer", function(nType, notifier, data) {
Regards,
Dragos
Similar Messages
-
Making Main Images Links in Photo Gallery
Hello.
I've made an image gallery and it works great. What I want to do is make the main image a link to a certain part of the site. The first link works great, but then I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Rockit_Front_Ad_fla::MainTimeline/frame1().
Basically, I made an invisible button on each main image for the link.
Can anyone help? Just want the links to work and can't get it. Any help is greatly appreciated. My AS3 is below:
Mike
stop();
Button1.addEventListener(MouseEvent.CLICK,showPic1);
Button2.addEventListener(MouseEvent.CLICK,showPic2);
Button3.addEventListener(MouseEvent.CLICK,showPic3);
Button4.addEventListener(MouseEvent.CLICK,showPic4);
Button5.addEventListener(MouseEvent.CLICK,showPic5);
Button6.addEventListener(MouseEvent.CLICK,showPic6);
Button7.addEventListener(MouseEvent.CLICK,showPic7);
IMG1.addEventListener(MouseEvent.CLICK,IMG1ClickHandler);
IMG2.addEventListener(MouseEvent.CLICK,IMG2ClickHandler);
IMG3.addEventListener(MouseEvent.CLICK,IMG3ClickHandler);
IMG4.addEventListener(MouseEvent.CLICK,IMG4ClickHandler);
IMG5.addEventListener(MouseEvent.CLICK,IMG5ClickHandler);
IMG6.addEventListener(MouseEvent.CLICK,IMG6ClickHandler);
IMG7.addEventListener(MouseEvent.CLICK,IMG7ClickHandler);
function showPic1(Event:MouseEvent):void{
gotoAndStop("Pic1");
function IMG1ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=31"));
function showPic2(Event:MouseEvent):void{
gotoAndStop("Pic2");
function IMG2ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/proddetail.asp?prod=BOOGIETA15"));
function showPic3(Event:MouseEvent):void{
gotoAndStop("Pic3");
function IMG3ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=61"));
function showPic4(Event:MouseEvent):void{
gotoAndStop("Pic4");
function IMG4ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/proddetail.asp?prod=MM25THANN"));
function showPic5(Event:MouseEvent):void{
gotoAndStop("Pic5");
function IMG5ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=14"));
function showPic6(Event:MouseEvent):void{
gotoAndStop("Pic6");
function IMG6ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=27"));
function showPic7(Event:MouseEvent):void{
gotoAndStop("Pic7");
function IMG7ClickHandler(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=49"));That error usually means that some object doesn't exist in the frame where the Actionscript is located, or, that some object does not have an instance name. So, for instance, if your Actionscript is in frame 1, then Button1 through Button7 and IMG1 through IMG7 also need to be on frame 1.
-
Spry Photo Gallery Widget with filmstrip
The main image in the photo gallery doesn't appear but the thumbnails do.
http://www.woodsphotography.org/AbstractSlideshow1.html
I'm using Dreamweaver CS5 and everything works fine when previewed in firefox or safari but once uploaded to the server this happens.
Any help would be greatly appreciated.
KeithHi,
please have a look here to this thread, where we had a similar question (hope it's similar to your gallery):
http://forums.adobe.com/message/3398072#3398072: "Spry Widget Slideshow works in Firefox/Safari but not in Explorer"
Hans-G.'s demand:
BUT I have to ask me/you why the same command, listed in the "SpryImageSlideShow.css" is not running.
gramps answer:
The red coloured lines are not included in the original; but will make it work for IE6/7
<style>
#ImageSlideShow .ISSSlide {
position: absolute;
top: 0;
left: 0;
text-align: center;
width: 100%;
height: 100%;
</style>
Hans-Günter -
Spry Photo Gallery Image Size via CSS
Hello!
I´ve been customizing the spry photo gallery for a couple of time, but got my little problem when viewing it on a mobile phone. When you load up the pictures with a size of 450 x 300 px for example, put up the right xml file with it´s width and height, so the gallery shows the pictures in that size. So what I want to do is that you can specify the image size with css depending on the device you´re watching the site with. There is div in the css called "mainImage" where the size is in %. When you change it to 75% for example. The pictures are correctly shown with 75% of it´s original size, but the outline (grey background) is still in 100%. When you make this grey background transparent it´s still there and moves the caption down. I guess there have to be done some changes within the SpryImageViewer.js, but I just know very little things about JavaScript. Do you have any clues how to change this to specify the image size via CSS?
Thank you for your help!!!
Kind regards,
JoergI see you are still using Spry 1.5. Have you considered upgrading to
Spry 1.6.1?
Also your XML is broken, if you open up your xml in a normal standards
complaint browser such as firefox, you will see that it doesn't render
a normal tree view as it would do with other xml files. So i suggest
checking those errors out.
Its mainly because you forgot to close your starting tag of the
gallerys node. (<gallery
base = ""
background = "#FFFFFF"
banner = "#F0F0F0"
text = "#000000"
link = "#0000FF"
alink = "#FF0000"
vlink = "#800080"
before your xml starts. -
Tutorial for a Spry photo gallery with thumbs and buttons ???
Anyone know of a a tutorial for building a Spry photo gallery with both thumbnails and next, previous, stop and play buttons(functions) ???
Like the ones on Adobe's Photo Gallery demos; http://labs.adobe.com/technologies/spry/demos/pe_gallery.html
Adobe show the source for their Photo Gallery Demos, but that doesn't help me much ... I need a prober tutorial that tells me how to do : )
The only tutorial that I've been able to find, is one for Dreamweaver 8, without buttons - I'm looking for a updated version.
I appreciate any help very much. Thank you.Just Google for the Spry photo gallery and you might find
http://cates-associates.net/tutorials/Tutorial-CS3-Spry.html
or even a few others.
Happy Sprying
Ben -
Spry Photo Gallery - How to add links to images
I was wondering if any one knew how I could add individual
links to images on the spry Photo Gallery—An XML-based photo
gallery. I need each image to have its own individual link when
clicked on. Any assistance would be most helpful.Hi,
In the dashboard --> edit option u can see dashboard object here u can see folder ...by this folder u just include dashboard page other wise in the catalog share folder u need create each and evry module pre planned folder then save it each dashboard pages to relevent module folder.
THanks
Deva -
Spry Photo Gallery “Controls”
Hi Don Booth, David Powers, Kinblas et al,
Thank you all for your commitment, and I hope Spry isnt dead?!
I am years behind but I antē d up for the CS4 Master Collection at the beginning of the year and have been plowing through the many written and tv.adobe tutorials on the various programs. Some confuse so it was a pleasure to come to the straight forward instructions in Don Booth’s Photo Gallery that worked first time!
Forgive me however but although I have spent the last week perusing the forums (getting to know you all so well!) I can’t find any thread to help me to correctly add the “transport” “controls” div’s and bind them so that I get a better response to next/play/pause. I did find one detailing how to de activate the SlideShow Navigation - by deleting the container!! V1 Oct ’07.
As it seems to me there is nothing out there (in the Forum(s)) I assume this must be a simple case of ignorance on my part, and,- I feel stupid - I must be lagging way behind - for which I humbly apologize and ask for your help, thank you in anticipation.
http://www.portofinobayside.com/Gallery.html# (simpleTest - your images)
TunedupI've set up the photo gallery demo -china,paris,egypt- and
made a swap of a couple of my photos from in Dreamweaver's property
box src for thumbs, and link for the large pic. It works in Safari
and Opera but not in firefox and I don't know about IE as I'm on a
MAC and not that for into it yet.Is there something to look for in
the code? It shows no browser issues when I test for compatability?
I'd really like to use the xml version but I have tried and had no
luck except in Safari. -
Can anyone point me to a free download of all the files for
the fancy Spry Photo Gallery demo that is on adobe's website. The
basic tutorial is good but I am stuggling to add the fancy
fade/appear and hover elements and also the ability to load
multiple galleries.
ThanksYou might find what you are looking for in the demos/gallery
folder of the downloaded Spry 1.6 code. This is the same gallery
you can find at
http://labs.adobe.com/technologies/spry/demos/gallery/
Let me know if that is not what you wanted... -
Spry Photo Gallery not viewing
am new to web design and followed this tutorial to make a
Spry Photo Gallery:
http://www.adobe.com/devnet/dreamweaver/articles/spry_photo_album.html
I am using Dreamweaver CS3 and when I preview my files,
everything is perfect and in place. When I upload everything and
view it on the server, no photos show up, and all of my div layers
are out of whack or missing even.
Any ideas, suggestions?? I feel like I am missing something
really simple.. THANKS!
http://www.summerinchicago.com/photoGallery/gallery.html
http://www.summerinchicago.com/photoGallery/photos.xml
http://www.summerinchicago.com/photoGallery/includes/SpryData.js
http://www.summerinchicago.com/photoGallery/includes/xpath.js
http://www.summerinchicago.com/photoGallery/imagesI've set up the photo gallery demo -china,paris,egypt- and
made a swap of a couple of my photos from in Dreamweaver's property
box src for thumbs, and link for the large pic. It works in Safari
and Opera but not in firefox and I don't know about IE as I'm on a
MAC and not that for into it yet.Is there something to look for in
the code? It shows no browser issues when I test for compatability?
I'd really like to use the xml version but I have tried and had no
luck except in Safari. -
Searching for Flash Photo Gallery with numbered navigation menu.
I'm looking for a photo gallery with a numbered navigation
menu. I've seen this gallery on several flash web pages. Is this
type of photo gallery a template that comes with flash? Has anyone
come across a tutorial for a photo gallery similar to the link
below.
http://www.rockcreeksm.com/index.php/work/portfolio/i made this one:
http://www.goldbergphotography.com/
but there are quite a few simpler photogalleries. use google
to search for some tutorials or templates. -
Dynamic Spry Photo Gallery Thumbnails
I'm implementing the XML version of the Spry Photo Gallery. I
need to edit the size of of the thumbnails and make them larger,
roughly 100x130 or maybe a little smaller. Since I have so many
photos, I was planning to use CSS to handle the overflow with a
scrollbar. I noticed sizing occurs in the Index file, Gallery.js,
and in the XML file. Are there any others that im missing? I'm
having a problem with resizing them, they dont resize when I adjust
the size in those places. Any suggestions would be appreciated.
Thanks
link (select Tattoo from the dropdown):
http://www.bugsartwork.com/beta/gallery/index.htmlI overlooked screen.css, there was some css that was setting
the thumbnail img tag. -
I’m new to Aperture and neglected to mark RAW+JPEG pairs when I imported (from iPhoto). Now I have two images for each photo. Help!! How can I change this?
How did you import from iPhoto? If you saw the Import panel with raw -jpeg pairs, then you probably did not import your iPhoto library as library, but as files, and then you will see plenty of duplicates - previews, thumbnails, originls, edited versions. If that should be the case, it would be better to delete the import from iPhoto and to import your iPhoto library again, but this time using "File > Import > Library".
Only that would require compatible versions of iPhoto and Aperture. What are your Aperture and iPhoto version numbers? -
Spry Photo Gallery Broken Image Link
I have attempted to merge the spry photo tutorial with our church's website. The images simply won't show up. It shows a broken image icon, but I can't understand why. I am wondering if the menu bar's javascript is interfering. Here's the code:
Photo Gallery Page:
http://gtcdunn.org/GTWebsite/HTML/Gallery1.html
XML
http://gtcdunn.org/GTWebsite/photos.xml
Spry Assets:
http://gtcdunn.org/GTWebsite/SpryAssets/xpath.js
http://gtcdunn.org/GTWebsite/SpryAssets/SpryData.js
Thanks so much for your help!
~ChrisI see you are still using Spry 1.5. Have you considered upgrading to
Spry 1.6.1?
Also your XML is broken, if you open up your xml in a normal standards
complaint browser such as firefox, you will see that it doesn't render
a normal tree view as it would do with other xml files. So i suggest
checking those errors out.
Its mainly because you forgot to close your starting tag of the
gallerys node. (<gallery
base = ""
background = "#FFFFFF"
banner = "#F0F0F0"
text = "#000000"
link = "#0000FF"
alink = "#FF0000"
vlink = "#800080"
before your xml starts. -
No Thumbs or Main Image with Spry Gallery Demo
Hi everyone, DW CS3 newbie here.
I hope this topic hasn't been beaten into the ground yet.
I'm trying to put together a site
(members.cox.net/rangersbu9/gallery.html) for my son's soccer team
and am running into a wall getting the original, dynamic Spry
gallery demo to work. I've done my best to collect and modify the
required files and place them appropriately but, when the files are
loaded on the live server (the wrap div contents are all but
invisible when I view with IE7 locally, apparently due to the PC
not be set up as local server) the thumbs are 'x's and the main
image is a 1px x 1px dot.
The controls will highlight between the empty thumbs and the
gallery pull-down will select between the two options I've put in
the XML file but that's about it. Perhaps it is my ignorance, but
it seems like a ( src= ) tag is missing in the 'mainImageOutline'
div because I cannot understand where the main picture is coming
from otherwise.
Any insight from the source at the link above? Please keep in
mind I have two week's experience with DW and website building but
do have a programming background (from a few decades ago :->). I
believe I have the un-updated CS3 Spry version, if that matters.
Many thanks to Don and others here for posts that have helped
me get this far.
-KurtUpdate:
Got the thumbs to appear. Had them physically sized larger
than the XML fields stated. However, they will not grow/shrink. In
digging through gallery.js, I see that those two functions call
Spry.Effects.SizeAndPosition() - I cannot find that function in any
of the includes (i.e. SpryEffects.js). Spry.Effects.Size yes, but
not SizeAndPosition. Wondering if this gallery.js calls a later
version of SpryEffects.js than I currently have installed (it's
Spry 1.4). I will download 1.6 and check it out but if anyone has
any other input, please let me know.
Still no main image. In gallery.js I found ShowCurrentImage()
which had a hardcoded path to the images that did not match mine.
Corrected the path but no change.
Any suggestions?
Thanks.
-Kurt -
SPRY photo gallery and photo captions
Has anyone experimented with adding captions to the photos?
Was looking at different gallery examples, and saw that lightbox
does captions, but the transitions, and AJAX approach with spry are
much nicer...
Thanks!Thank you for your tip. I have tried it Katiebird but it
didn't work.
Here is my doc:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Copyright (c) 2006. Adobe Systems Incorporated. All
rights reserved. -->
<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=ISO-8859-1" />
<title>Gallery</title>
<link href="includes/screen.css" rel="stylesheet"
type="text/css" />
<script type="text/javascript"
src="includes/SpryEffects.js"></script>
<script type="text/javascript"
src="includes/SpryDOMUtils.js"></script>
<script type="text/javascript"
src="includes/SpryImageLoader.js"></script>
<script type="text/javascript"
src="includes/SpryNotifier.js"></script>
<script type="text/javascript"
src="includes/SpryThumbViewer.js"></script>
<script type="text/javascript"
src="includes/SpryImageViewer.js"></script>
<script type="text/javascript"
src="includes/SprySlideShowControl.js"></script>
<script type="text/javascript"
src="includes/gallery_init.js"></script>
<script type="text/javascript"
src="includes/xpath.js"></script>
<script type="text/javascript"
src="includes/SpryData.js"></script>
<script type="text/javascript"
src="gallery_xds.js"></script>
</head>
<body>
<div id="wrap">
<p id="galleryLinks"><a href="fall08.xml">Fall
2008</a> | <a href="egypt.xml">Egypt</a> | <a
href="paris.xml">Paris</a></p>
<div id="gallery" class="gallery">
<h1 class="galleryName"
spry:region="dsPhotos">{sitename}</h1>
<div id="previews">
<div id="controls">
<ul id="transport">
<li><a href="#" class="previousBtn"
title="Previous">Previous</a></li>
<li><a href="#" class="playBtn" title="Play/Pause"
id="playLabel"><span
class="playLabel">Play</span><span
class="pauseLabel">Pause</span></a></li>
<li><a href="#" class="nextBtn"
title="Next">Next</a></li>
</ul>
</div>
<div id="thumbnails" spry:region="dsPhotos">
<div class="thumbnail" spry:repeat="dsPhotos"><a
href="{path}"><img alt="" src="{thumbpath}"
/></a></div>
<p class="ClearAll"></p>
</div>
</div>
<div id="picture">
<div id="mainImageOutline"><img id="mainImage"
alt="main image" src=""/></div>
</div>
<p class="clear">dave</p>
</div>
<div style="color:#FFFFFF:" align="center" id="caption"
spry:detailregion="dsSlides">{@caption}</div>
</div>
</body>
</html>
AND HERE IS the xml:
<gallery
base = ""
background = "#FFFFFF"
banner = "#F0F0F0"
text = "#000000"
link = "#0000FF"
alink = "#FF0000"
vlink = "#800080"
date = "8/01/2008">
<sitename>Fall 2008</sitename>
<photographer></photographer>
<contactinfo></contactinfo>
<email></email>
<security><![CDATA[]]> </security>
<banner font = "Arial" fontsize = "3" color =
"#F0F0F0"> </banner>
<thumbnail base ="gallery/fall08/thumbnails/" font =
"Arial" fontsize = "4" color = "#F0F0F0" border = "0" rows = "3"
col = "5"> </thumbnail>
<large base ="gallery/fall08/images/" font = "Arial"
fontsize = "3" color = "#F0F0F0" border = "0"> </large>
<photos id = "images">
<photo
path = "1_28_04snow154.jpg"
width = "500"
height = "375"
thumbpath = "1_28_04snow154.jpg"
thumbwidth = "75"
thumbheight = "56"
caption="A Leaf">
</photo>
<photo
path = "arts.jpg"
width = "500"
height = "333"
thumbpath = "arts.jpg"
thumbwidth = "75"
thumbheight = "50"
caption="A Leaf">
</photo>
</photos>
</gallery>
If you could Help I would appreciate it.
Maybe you are looking for
-
HT5266 best resolution in windows 8.1 on macbook pro retina 15 ?
Hi which resolution is the best in windows 8.1 on macbook pro retina 15 ? for software Like SolidWorks or the other? because the recommended resolution is good but some software like SoliWorks not optimized for retina resolution !!! Thanks
-
Message VF041 after System refresh - Billing document doesn't exists
Hi , We recently refreshed our QAS system and from then on we are having a strange problem . The issue is whenever I create a billing document ,it gives me a document number ,but when I try to view this in Vf02/03 it says "Document doesn't exists" wh
-
how to calculate overhead cost? i used KGI2. it did not work any idea may help
-
How to settle the sales orders
Hi experts, Can anyone tell me how to settle the sales orders? What is the transaction code? regards vk
-
'Lo Do someone can help, for 3 days now i try to make € symbol work under pdf reports générated under linux server. I have try metalink notes 291999.1 and 376775.1 But no way ! I alway got a glyph symbol¤ for exemple in place of € Any idees are welco