---------- Original Message ----------
To: jQuery (English) (jquery-en@googlegroups.com)
From: Ali ([EMAIL PROTECTED])
Subject: [jQuery] thickbox on a link from an ajax call
Date: 3/1/2008 16:41:46

Hey so basically heres the deal I have thickbox in index.cfm.

Index.cfm does an ajax call that loads in a product list
$.ajax({
  url: sendURL,
  cache: false,
  success: function(html){
    document.getElementById('contentBox').innerHTML = html;}
});

When one clicks a link from the ajax loaded HTML that has a thickbox
class associated though it doesn't open it as a thickbox and instead
just goes straight to the page. Below is the contents of the var html
above.

    <table width="100%">
      <thead>

        <tr>
          <th>Product Name</th>
          <th>AtlasID</th>
          <th>Primary Category</th>
          <th>Secondary Category</th>
        </tr>
      </thead>

      <tbody>


            <tr>
              <td><a href="productDetails.cfm?
height=300&width=300&notemplate=1" title="Report Details"
class="thickbox">Albumin</a></td>
              <td></td>
              <td>Emergency RH Kits</td>
              <td>Reproductive Health Kits</td>
            </tr>



      </tbody>
    </table>

Do I need to some how bind this link to the jquery thickbox script? If
so can anyone tell me how?

Thanks.




hi,

either you use livequery plugin, or you put, inside the called html, a script 
tag that reinitate the $('.thickbox').thickbox() call.

Reply via email to