slide show

Page: 1

Author Post
Member
Registered: May 2009
Posts: 88
I see the demo is set up to show a slide show if the images are on the page (view as slideshow).. what i want to do is have 1 image on my page and when a user clicks on it the fb window opens and the slide show (of the other 10 or so images) begins...Do you have a demo for this?
THANKS
Steve
Administrator
Registered: Aug 2008
Posts: 3382
Empty anchors to the rescue.
Please see post #3 in this thread. For a slideshow, add doSlideshow:true into the clickable anchor's rev attribute.
Member
Registered: May 2009
Posts: 88
can this be done across same domain / different sub doman..

i.e. www1.somedomain.com/text.aspx the link on the page
(< a href='http://pictures.somedomain.com/pic_slideshow.aspx' class='floatbox linkwhite' rev='group:foo doSlideshow:true'><img src='imag.....)


as i am getting..
Error: str is undefined
Source File:www1.somedomain.com/floatbox/modules/core.js
Line: 829

this is ver 3.51..
Steve
« Last edit by compgod on Tue May 26, 2009 3:37 pm. »
Administrator
Registered: Aug 2008
Posts: 3382
The domain shouldn't be an issue here. We're not scripting across domain boundaries. And I can't conceive of a circumstance where str could be undefined at that location in the code.

Is there any chance of you giving me a password to your site through the contact form (under the Support menu) and showing me where the offending code is?
Member
Registered: May 2009
Posts: 88
ok this is what i have so far...

on the somedomain.com is this link...
a href="http://pictures.somedomain.com/pic_slideshow.aspx" id="fbtest" class="floatbox linkwhite" rev="doSlideshow:true infoPos:tc controlPos:tr">camera icon</a>

then on the pictures.somedomain.com/pic_slideshow.aspx page i have..
<a href="pictures/image_1.jpg" class="floatbox" rev="group:foo doSlideshow:true"><img border="0" style="border-color:#244368" id="img0" src="pictures/image_1.jpg"></a>
<a href="pictures/image_2.jpg" class="floatbox" rev="group:foo"></a>
<a href="pictures/image_3.jpg" class="floatbox" rev="group:foo"></a>

when i click on the 1st image (after the window popsup) the slideshow starts...i need it to start automaticly...
ALSO when i add in the somedomain link rev="group:foo doSlideshow:true.... that is when i get the str error..and no fb window...

make sense?
and again THANKS..
Steve..
Administrator
Registered: Aug 2008
Posts: 3382
Hey Steve,

No, I can't say that makes 100% sense to me. When you say you add in the somedomain link, I don't know what you mean. Add in where?

But I can comment that you want your empty anchors bundled with your slideshow anchor. All those anchors should be on "somedomain.com".

To autoStart a slideshow, put "autoStart:true" in the rev tag.

Damn, I wish I could see the pages in question.
Member
Registered: May 2009
Posts: 88
sent via the contact page..
steve
Administrator
Registered: Aug 2008
Posts: 3382
WooHoo!!!

It will have to be a little later today that I can look at this some more.
Administrator
Registered: Aug 2008
Posts: 3382
Here's what I see.

It looks like your languages folder is missing altogether. In the zip file there is a languages folder at the same level as modules and graphics. You've got those other two in place on your server. Get languages in there too. This might prevent the undefined str error you are reporting. However, I don't get that error, and it shouldn't happen even if the language files are missing. I'll have to look further into that and maybe put some bubble wrap around that code segment.

As mentioned previously, you definitely want your empty anchors to be on the same page as your "camera icon" anchor to get the grouped slideshow items grouped up. This is especially true because your are using framebox.js and framebox does not go across frame boundaries. It runs in isolation within its own document/window.

Lastly, you are serving up your images from an aspx page. This will be detected as an iframe source by floatbox unless you tell it differently. You need to add type:img to your rev attributes to get floatbox handling those as images (correct sizing, etc.).

Make those three adjustments and I think you will find lasting joy. But let me know if you don't.
Member
Registered: May 2009
Posts: 88
thanks..

1: lang not worried about as this was a stripped down page..

2: is there a way to call/have the .aspx page start as a slide show..as the page you saw was a stripped down version and the info box you saw is duplicated 20+ times on the page so this will add up to a lot of grouped items on that page when done..and my images are located on another server..

3: changed to floatbox...

or start a slide show from an "detected iframe"
Administrator
Registered: Aug 2008
Posts: 3382
2. You want to set up the slideshow in the standard way and then add autoStart:true to the first slideshow anchor. Setting it up in the normal way means having an anchor on your page for each image in the slideshow. If you have 20+ images in the slideshow, you will need 20+ anchors on your page. Of course, those anchors can be "empty" - that is, not display anything between their <a> and </a> tags.

Sorry, I don't know what a "detected iframe" is, but the description above is how you get your floatboxed slideshow going.
Member
Registered: May 2009
Posts: 88
i did get it going on the test page.... my problem is the initial page is on one server while the photos are on another.. is there a way to popup an fb window(from server 1 somedomain.com) and have the .apsx (on server 2 - pictures.somedomain.com) page run (in the fb window) as a slide show...
i may be tring to over complicate things.. 4give me...
Administrator
Registered: Aug 2008
Posts: 3382
I think you may be over-complicating things. The images don't have to be located on the same site/server/domain as the anchors that refer to them.

You can have <a href="http://darksideofthemoon.net/someImage.jpg"></a> as part of your slideshow set.
Member
Registered: May 2009
Posts: 88
gotcha.. just trying to keep code simple and not over work the test page i showed you.. wsa trying to pass the work of getting the images on the fly to another page..
thanks..
Administrator
Registered: Aug 2008
Posts: 3382
You could do that if both the main page and the iframe child page are from the same domain and you have floatbox.js included on both pages. Check out the iframes tab on my demo page and you'll see a gallery set that consists of images/anchors from different iframes.

Due to blocking of cross-site scripting, you can't do that when the pages are served from different domains, so I think in your case your hooped as far as that approach goes.

Page: 1