Note that there are some explanatory texts on larger screens.

plurals
  1. POThickBox not working when data is from server side
    text
    copied!<p>I m using jQuery thick box to show an aspx page in a modal dialog This works fine in my page.In my page,I have some links on which when i click,using jQuery's Load method,I am getting some data from the server page and loading into it.(the data i m getting is a grid which contains some images).My problem is that my thickbox is working fine when it is hardcoded in my page,But when i am taking it from server and loading to a div,Its not working,Instead,of showing the new page in modal dialog,its redirecting the browser to load that page.</p> <p>I hard coded this line in my first page</p> <pre><code>&lt;a class='thickbox' href='../Home/CostMetrics.aspx?Model=6&amp;KeepThis=true&amp;TB_iframe=true&amp;height=300&amp;width=850'&gt;modal thick box link&lt;/a&gt; </code></pre> <p>and i am generating this tage from server when i load data from server to the div</p> <p>&lt;a class="thickbox" href="../Home/CostMetrics.aspx?Model=5&amp;KeepThis=true&amp;TB_iframe=true&amp;height=300&amp;width=850">modal thick box link&lt;/a></p> <p>Both are same.But my lightbox is not working.Any Ideas to solve this ? </p> <p>I have included the thickbox CSS and js in my first page.My server page which fills the div is return data like this</p> <pre><code>&lt;div&gt;&lt;div&gt;&lt;img src='abc.jpg' /&gt; &lt;a class="thickbox" href="../Home/CostMetrics.aspx?Model=5&amp;KeepThis=true&amp;TB_iframe=true&amp;height=300&amp;width=850"&gt;modal thick box link&lt;/a&gt;&lt;/div&gt;&lt;/div&gt; </code></pre> <p>Thanks in advance</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload