Results 1 to 3 of 3

Thread: Lytebox & 2 iframes on same page.

  1. #1
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Lytebox & 2 iframes on same page.

    I checked the code multiple times and I dont seem to find the solution:
    Im using lytebox on this site: http://inmadeltoro.com
    1. index.html shows pages in iframe
    2. 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!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    auroryx (10-17-2009)

  4. #3
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •