Results 1 to 7 of 7

Thread: CMotion Image Gallery & Facebox image and content viewer (v 1.1) not working together

  1. #1
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion Image Gallery & Facebox image and content viewer (v 1.1) not working together

    1) Script Title:
    CMotion Image Gallery


    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ebox/index.htm
    http://www.dynamicdrive.com/dynamici...iongallery.htm

    3) Describe problem:
    the CMotion Image Gallery scroll function dont work while on the same page as the Facebox image and content viewer (v 1.1
    basically made a facebox "popup gallery" with the Cmotion to scroll the thumbnails. you can click/enlarge thumbnail but cannot
    browse through them

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Cmotion will not initialize unless it's content is on the page and not CSS style display: none; at page load.

    Depending upon how you're using Facebox to deliver CMotion content, one or both of these conditions might not be being met. Probably in fact, it just depends upon how you're using Facebox, as to which or both that it is.

    There's a workaround regardless of what the problem is, though in some cases a different script than CMotion and/or Facebox might be advisable.

    Rather than guess at the particular Facebox method you are using (AJAX or on page div) and give general instructions for dealing with either, which would probably require me to make up demos for each:

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    you click a textlink that pops up Facebox(external page) with Cmotion on the page

    if post a link it will be to an adult site

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,999
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    12

    Default

    Then provide a simplified demo page with all the adult content removed
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    AJAX doesn't reliably bring along scripts from imported content. Even when it does, it doesn't fire onload events from that content without being told to. There is no onload event with AJAX and CMotion requires one. And it must not fire until the images in the CMotion 'train' are loaded. Without seeing it, I'd say the easiest way would be to use EasyBox instead of Facebox:

    https://code.google.com/p/easybox/

    With EasyBox you can use an iframe instead of AJAX to fetch the content. Then CMotion will work as expected.

    Even if I had it to play around with, I'm like 99% sure CMotion would need to be replaced in order to reliably work on AJAX import.

    If you were to use Facebox's on page div method, it could work out with some modifications to at least Facebox. But then, if you have more than one CMotion import, that would not work. If that could be overcome, there would be a load time issue with so many images on one page.

    All things considered, using EasyBox with its iframe option looks like the best choice.
    - John
    ________________________

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

  6. #6
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello, thank you two for the responses
    good point on AJAX, and yes i'll try the EasyBox

    thank you

  7. #7
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Lovely, thanx again
    yea the easyBox worked much much better

Similar Threads

  1. Resolved CMotion Image Gallery & Image Thumbnail Viewer combined
    By lio in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 02-14-2009, 06:33 PM
  2. CMotion Image Gallery/Image Thumbnail Viewer II
    By LThomas72 in forum Looking for such a script or service
    Replies: 2
    Last Post: 05-16-2008, 11:23 AM
  3. Replies: 4
    Last Post: 09-01-2007, 04:29 PM
  4. CMotion Image Gallery and Image Thumbnail Viewer II
    By fiona mcdonald in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-12-2006, 12:52 PM
  5. Image Thumbnail Viewer II & CMotion Image Gallery
    By Mikesimko in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-07-2005, 08:06 PM

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
  •