Log in

View Full Version : Lytebox & 2 iframes on same page.



auroryx
10-17-2009, 01:31 PM
I checked the code multiple times and I dont seem to find the solution:
Im using lytebox on this site: http://inmadeltoro.com

index.html shows pages in iframe
pages show pics in iframe

I want to make the lytebox pic appear inside index iframe, what ive done with some pages, but for some reason the same code does not work in some other pages:

WORKS FOR "uñas acrílicas" and its "ejemplos", and "uñas naturales" (which have 2 iframes on the same page...)
DOESNT WORK FOR "pedicura" and "contactos" where the lytebox is shown at inside the same iframe as pics.

I was wondering if that has something to do with having 2 iframes in the same page, but in one page with 2 iframes is working.... so is driving me nuts!!
Anyone could help?
Tons of thanks!!

jscheuer1
10-17-2009, 03:31 PM
There could be other problems, but the iframe must have a name. This isn't well documented on the lytebox home site, but if you look at the example page (in its distribution archive) for using it with the thumbnails inside the iframe, that page's iframe has a name. The pages where it works on your site - the iframe has a name. The page where it doesn't work, no name for the iframe. Also, just in case this is an issue, each iframe name (if there are more than one iframe on a page) should be unique to the page that they're on.

Another thing you should fix, and this has nothing to do with this problem, is to resize and optimize your larger images. They are much too big (larger than the average screen) and take too long to load (way too many bytes).

auroryx
10-17-2009, 08:03 PM
Thank you so much, John, that fixed the problem immediately. I think i would had never found it myself alone. And i will not forget it anymore :)
Also thanks a lot for the advice, you are right about the pics, way too big, didnt realized that.
Your answer was really helpful indeed.
Many many thanks!