Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Mini lightbox/greybox? Inside a div and not entire page?

  1. #1
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default Mini lightbox/greybox? Inside a div and not entire page?

    Looking for a script to fade out the rest of the containing div and display whatever content in a box on top, just like lightbox and greybox - but just for that container and not for the entire page.

    Any links/tips greatly appreciated!

  2. #2
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    Well thanks to anyone who looked and found nothing like myself. >_>

  3. #3
    Join Date
    Apr 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    Hello

    I would like to do the same thing , run an external lightbox page in a DIV

    until now i was using this : http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    but it's not working with lightbox ... (not working without deep modification i think)

    sorry , no answer, but also expect someone can help...

  4. #4
    Join Date
    Apr 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    support of lightbox2 says , we should better watch lytebox , for an iframe call purpose.

    from lytebox : iFrames: If you plan to use Lytebox in an iFrame environment, then you need to include lytebox.css in the parent document, while including lytebox.js in the iFrame document.

  5. #5
    Join Date
    Apr 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    Ok so now it is better working with Lytebox

    but it seems there is a problem due to PHP generating on the fly JavaScript ...
    I explain ...

    Here are the full details :
    i got an php page composed with iframes ;
    In this page i have a main container (an iframe), where i display some external pages using this : AjaxContent ...
    until today i had no problem with this.

    When i try to load lytebox in the iframe, it display the thumbs correctly, but if i click on one of them , the image display in a white page which replace the main one ;
    I had no effects, and the full path to the image is displayed in the URL bar...
    (like if it loaded a new page).

    Some more information : As i want my slideshow list to be dynamically created, the page containing Lytebox call, is a php page which auto-generate the html and javascript code, after getting a directory content.

    When i save this auto-generated code on a static html page, it works great.
    but when i want it to be run on the fly, it fails...

    any help is welcome

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    It would be better if you uploaded your page somewhere, if it's not already up, so we could see the problem. It will make finding the problem a lot easier.

  7. #7
    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 are really two different issues here in this thread:

    • Getting a lightbox type display in a small area like a division on your page.
    • Getting lightbox to work with its triggers inside an iframe and yet still cover the entire page with its overlay and enlarged image display.


    To get the first result, simply place the ordinary lightbox on a page in an iframe. It will be confined to that iframe.

    For the second result, you should use lytebox (with a y, not i). It is a little tricky, and as Medyman asks, if you are having trouble setting it up, we can best help you if you provide a link to your problem page. From your description it sounds like the script is simply not running.
    - John
    ________________________

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

  8. #8
    Join Date
    Apr 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    Sorry , i forgot to mention that i'm using lytebox and not lightbox.

    so i'll try to upload something for you to check as fast as possible.

  9. #9
    Join Date
    Apr 2008
    Posts
    58
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Default

    ok i made some more tests !

    the problem is not coming from the fact that code had been dynamicaly generated...
    If i do not access directly to the slideshow page, and if i try to load it through ajax in an iframe, it fails (mean does not work correctly)...

    problem should come from this script 'Ajax Content'

    Maybe someone have an alternative to load a page in iframe ?

  10. #10
    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

    AJAX doesn't load scripts. But, if you are using the iframe method of an 'ajax' script, it should work, unless the script is using AJAX to populate the iframe. Or unless the lytebox script needs to load onload of the top page.
    - John
    ________________________

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

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
  •