Welcome Guest, Not a member yet? Register   Sign In
fancybox jquery codeigniter
#1

[eluser]joeizang[/eluser]
hi,

I have a small situation. I am preparing a sample for a client and I cannot understand this. I have a div with 7 jpg's and a list item that is a link that if I click should fireup fancy box and show some pics in gallery format. Now this doesn't work so I remembered that I must add the '#' to the list of accepted characters in ci but still no problem, is there something I am doing wrong? here is my code.
Code:
$(document).ready(function(){//js to handle fancybox

    $('a#inline').fancybox({
        'overlayshow': true,
        'zoomSpeedIn': 400,
        'zoomSpeedOut': 400
    } return false;);
});
//list link to fireup fancybox
    <li><a id="inline" href="&lt;?= ">PhotoGallery</a></li>

then will several `<img />` that hold the images.
any clues guys?
#2

[eluser]mattpointblank[/eluser]
A # symbol in a link shouldn't produce a CI error - are you sure it's not the fancybox plugin not working?

You can use this instead of <a href="#"> to prevent 'anchoring' when clicking:

Code:
<a href="javascript//">
(need to add a colon before the //, the CI forum strips this out)




Theme © iAndrew 2016 - Forum software by © MyBB