Skip to main content
Known Participant
May 26, 2009
Question

lightbox and cfdiv

  • May 26, 2009
  • 1 reply
  • 543 views

Hi,

I am trying to bind with the following.

<cfdiv bind="url:showimages.cfm?eventID=#eventID#" >

This works fine, when it is in the main page however the lightbox functionality of the image fails to work when i remove the code to the eternal binding.

Can someone how cfdiv works with javascript and where the javascript files have to be in the relation the the cvdiv?

thanks.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 27, 2009

    Hi

    I.am not using Lightbox but Highslide. It is almost the same

    The link to the scripts I have put them in the header of the page where is the cfdiv.

    This is mine CFdiv:

    <cfdiv id="ad" bind="url:ad.cfm" />
    </div>

    And this the page with the picture's:

    <cfset getProds = application.roll.GetProductsAd()>

    <cfoutput>
    <cfloop query="getProds">
    <a href="#application.imageroot#/#getProds.p_foto2#" class="highslide" onClick="return hs.expand(this, {captionId: 'caption#getProds.currentrow#'})"><img src="#application.imageroot#/#getProds.p_foto1#" onClick="updateview('#getProds.p_id#')" alt="Highslide JS"
            title="header=[#left(getProds.p_id,6)# - #getProds.p_naam#] body=[#getProds.p_omschrijving#<br />Prijs: &##8364; #NEDCurrencyFormat(getProds.p_prijs)#]"" width="100" /></a> 
    <div class='highslide-caption' id='caption#getProds.currentrow#'>
                            <strong>#left(getProds.p_id,6)# - #getProds.p_naam#</strong><br />
                            #getProds.p_omschrijving#<br />
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                    <td>Prijs: &##8364; #NEDCurrencyFormat(getProds.p_prijs)#</td>
                                    <td align="right"><a href="addButton.cfm?id=#getProds.p_id#&naam=#getProds.p_naam#&maat=#getProds.p_maat#&prijs=#getProds.p_prijs#&aantal=1&sjek=1&page=index.cfm&cat=#getProds.p_cat#&menu=1">Bestel nu -> <img src="images/shopping_bag.gif" alt="voeg toe aan winkelwagen" border="0" /></a></td>
                                </tr>
                            </table>
              </div>
    </cfloop>
    </cfoutput>

    This is the webpage where you can see it works http://www.m-beads.nl

    Gr Frank