[Pro] Scriptylightbox Javascript Error-Help!

I had developed serveral lightboxes on my site and now - bam - they generate a javascript error. I clear it, but it pops right back. If it matters, the error is in the function addClassName(elm,strClassName)
I’ve tried many things, can’t seem to get it working again. Could I be having some contention issue? The lightboxes worked for a while and now don’t.
Thanks so much for any help.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It sounds like you may be missing one of the foundation libraries. Try holding down the Control key and choosing the hidden option Publish Everything from the File menu. Upload, and see if you get it to work again.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,
Hopes were high. Cleared the error and tried the Publish Everything option. Same error. I have: ScriptyLightbox.fwactionb and Protaculous.fwactionb actions installed. I took lightbox.fwactionb out of the library folder in case there was a contention issue. I am also using the lightbox action on a gif in a table. But it crashes on other uses as well. So mysterious - all of this worked before. I was thrilled with the multi-image lightbox from mootools. Thanks Walter for any help.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Are you trying to use MooTools and Prototype/Scriptaculous on the same
page? If so, that’s your problem right there. They are incompatible at
a very low level. MooTools forked away from Prototype quite a while
ago, and so they share common function names, but those sam-named
functions do different and incompatible things.

Walter

On Nov 21, 2009, at 9:24 PM, jan smoot wrote:

Walter,
Hopes were high. Cleared the error and tried the Publish Everything
option. Same error. I have: ScriptyLightbox.fwactionb and
Protaculous.fwactionb actions installed. I took lightbox.fwactionb
out of the library folder in case there was a contention issue. I am
also using the lightbox action on a gif in a table. But it crashes
on other uses as well. So mysterious - all of this worked before. I
was thrilled with the multi-image lightbox from mootools. Thanks
Walter for any help.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,
I thought MooTools might be the problem, as I said in my last comment, I took it - lightbox.fwactionb out of the library folder all together. I am using a carousel on the page with the scriptylightbox action. But, I thought that should work-but it didn’t. I then removed the carousel from the page, saved the file. Still get the same error.

Page is at: http://lyndacarter.com/reviews.html
I am also doing a page sequence action - perhaps that is the problem? Thanks again for your time & suggestions.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you applied the MooTools Action to the page in any way, then you
need to remove those applications of the Action – not the Action
itself. Removing the Action file from your Actions folder will simply
cause Freeway to switch to a cached version, leading to all sorts of
confusion.

Freeway caches the Action into your document when you first apply it,
as a sort of last-ditch backup should the site move to a machine
without that Action installed. With multi-file Actions like MooTools
and Protaculous, this leads to a state where the Action is cached, and
so Freeway believes that it can use it, but the support files are
missing. If you look in the Actions menu item and see the name of your
Action up at the top of the list, that’s a sign that you’re working
from a cached (in-document) backup of that Action.

Walter

On Nov 22, 2009, at 11:56 PM, jan smoot wrote:

Walter,
I thought MooTools might be the problem, as I said in my last
comment, I took it - lightbox.fwactionb out of the library folder
all together. I am using a carousel on the page with the
scriptylightbox action. But, I thought that should work-but it
didn’t. I then removed the carousel from the page, saved the file.
Still get the same error.

Page is at: http://lyndacarter.com/reviews.html
I am also doing a page sequence action - perhaps that is the
problem? Thanks again for your time & suggestions.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,
“leading to all sorts of confusion.” seems to be where I am!

I had the MooTool lightbox version working on: http://lyndacarter.com/alphasite/fanmailinc.shtml
The scriptylightbox was working on both:
http://lyndacarter.com/alphasite/reviews.html [with a carousel] and on http://lyndacarter.com/alphasite/newgallery.html [only implemented on the top row].

For the life of me, I can’t figure what I did to mess this up, I must have tried using the MooTool version on the reviews page - which had a carousel - where I get the error now. I do not use MooTools on the page now, I deleted the carousel, I have saved the site, tried the forced upload. Still get the error. Should I reimplement the page all together? Would it work to start with a blank page and copy over all the contents? Seems messy.
Thanks. Jan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

First try switching the Site pane in Freeway to Page view. (Click on the word Site at the top until it switches to read Page.) Look for anything in the list of items that has an Action cog badge on it and click on it to see which Action interface comes up in the Actions palette. Repeat this for each item in the entire page, and make sure you’ve found and removed every instance of the troublemaking Actions. Then save the document, quit Freeway, and open the document again. Publish the site, see if it works (albeit without any effects). Then re-add just one of the two (Moo or Prototype) and see what happens then.

If you really want to try copying things to a blank page, that would be the last thing to try. It will work, and it will not be a huge pain (because Freeway does such a nice job of copying everything about an object), but you should go through these steps first to make sure that there isn’t anything still clinging to the landing gear, because Freeway will copy that, too.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just did the action review. I am using 4 item actions on the page: scriptylightbox, graphiclinktofile, textlinkstyle, targetshow/hidelayer, and the sequencetimer page action.

I tried isolating the table with the scriptylightbox action on a blank page. Still got error. I had the action applied to both the table and the cells within the table. Removing the action from the table item seemed to be the fix. Oh my.

Can you recommend optimization for using scriptylightbox with many images on one page? I have a page with 40 jpg thumbnails and want to use the action on each one. How can I reduce load time? Will all 40 images be loaded at the same time, or one by one? Or would MooTools lightbox action - showing a gallery have better load time? Hard to tell how these actions really work. Or from your experience - how many is too many lightboxes?

I am having one other obscure bug with the scroll buttons. Works great - except in IE. See http://www.virginiapye.com/alphasite/index.html
If we remove both the background gif and the menu it works. Any ideas with this issue? We got rid of the scroll, but would like to understand the issue. Would be great to have a scroll bar as well.
Thanks so much. Jan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

ScriptyLightbox works by loading the target image / media through an Ajax call. The image isn’t loaded until the link is clicked, which is why you see the little spinning wheel graphic while it’s loading.

The best way to use ScriptyLightbox with lots of images is to apply the Action once to the parent of all the images. The way I usually do this is to place the images as inline graphic boxes (or inline DIVs with child graphic boxes if you want to have text aligned with the thumbnails).

Draw a large HTML box, double-click to get the text cursor, then Insert / Graphic Item to get a picture box. Select it, import your picture, set it to align left and give it some padding right and bottom so the next picture doesn’t crash into it. Apply the Link to Picture Action and link up the large version of the photo, and once you have the first one set up, use copy and paste to create more copies. Change the images and target images for each additional copy. One nice thing about this layout is that it can be flexible if you make the outer DIV a percentage-based size.

Apply the ScriptyLightbox to the outermost DIV just once, and you’re all set. If you apply it to each image, that will work too, but it’s just more work. (Only one instance of the JavaScript files will be added to your page, no matter how many times you use the same Action on the page.)

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,
Thank you for your patience and help through this. I even learned a few things!

Any known bugs with the scroll button and IE?
Until next time!
Jan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options