More in this section

Forums / Developing with Sitefinity / sflb.ashx and fancybox implementation

sflb.ashx and fancybox implementation

6 posts, 0 answered
  1. Roberto
    Roberto avatar
    146 posts
    Registered:
    08 Feb 2008
    17 Feb 2010
    Link to this post
    Hi All,

    I am currently implementing my own set of gallery controls for a specific project.  I am running into an issue when using fancybox.  The code is all implemented and working as when i am clicking the thumbnail i am recieving the modal window. The problem, is when this modal opens, instead of getting the image i am recieving a load of what looks like windings characters instead.  I am not sure what i am doing wrong, or why the images wont show up, when i turn javascript off and the normal link is followed the image is resolved and output to the screen, just doesnt do it in the modal window of fancybox??

    The generated html is below, any help would be greatly appreciated

    <div class="gallery-list">
        <div class="gallery-row clearfix">
               
            <div class="gallery-item">
      
                <a href='/Libraries/Gallery_Modika_Treasure_Hunt/Stock.sflb.ashx' rel="gallery">
                <img src='/Libraries/Gallery_Modika_Treasure_Hunt/Stock.tmb.ashx' alt='Stock' /></a>
            </div>
          
            <div class="gallery-item">
                <a href='/Libraries/Gallery_Modika_Treasure_Hunt/Stairs.sflb.ashx' rel="gallery">
                <img src='/Libraries/Gallery_Modika_Treasure_Hunt/Stairs.tmb.ashx' alt='Stairs' /></a>
            </div>
          
             </div>
    </div>
  2. Roberto
    Roberto avatar
    146 posts
    Registered:
    08 Feb 2008
    17 Feb 2010
    Link to this post
    I have found a solution :)  if anyone else runs into this issue you can read the following:

    http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-use-the-real-extensions-for-the-items-in-the-images-and-documents-module.aspx

    the images load with no problems at all now :)

    Rob
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    17 Feb 2010
    Link to this post
    Hi Roberto Modica,

    You do not have to use the real extensions KB to get the fancybox working with Images and Documents module.

    Modify jquery.fancybox-1.3.0.js

    var ajaxLoader = null, imgPreloader = new Image, imageRegExp = /\.(jpg|gif|png|bmp|jpeg|ashx)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i;

    you should change the same line for jquery.fancybox-1.3.0.pack.js

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Roberto
    Roberto avatar
    146 posts
    Registered:
    08 Feb 2008
    17 Feb 2010
    Link to this post
    Thanks Ivan,

    that is noted now :)

    Rob
  5. Brian
    Brian avatar
    3 posts
    Registered:
    17 Apr 2007
    10 Mar 2010
    Link to this post
    I tried the kb approach and it is not working for me.  Any thoughts?  Images in my image library are showing the "x" image.  When clicking "View Original" I get a 404 error.

    I went looking for the jquery.fancybox-1.3.0.js file and was unable to find it.

    Thanks in advance,

    Brian
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Mar 2010
    Link to this post
    Hello Brian,

    You can take a look at http://fancybox.net/howto from where you can download jquery.fancybox-1.3.0.js. I am  not having problems with the real extension files.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
6 posts, 0 answered