In order to open new Ajax content in
an open Ajax ThickBox, its code must
also contain the appropriate HTML
(class="thickbox") to launch an Ajax
ThickBox (see demo for example).
You may want to read & check the demos over at http://jquery.com/demo/thickbox/#sectionf-1
HTH
Edit:
Hey Tony, the above applies to new content links within a Thickbox, not to open a Thickbox. To go with the demo page above, the initial content contains a link:
<p>What is jquery? <a href="newTBcontent.html?height=200&width=300" class="thickbox">Answer</a></p>
so that content is loaded into the Thickbox.
To go with your question, when I do the following, it works pretty well. Maybe I misunderstood your question?
Somewhere on the initial Page:
<p><a href="atb.php?height=200&width=300" class="thickbox">Open AJAX Thickbox</a></p>
Thickbox content (File 'atb.php'):
<script language="javascript" type="text/javascript">
jQuery(document).ready( function()
{
jQuery.ajax(
{
type: "GET",
url: "atbd.php",
success: function(rsp)
{
jQuery( ".response" ).html(rsp);
}
});
});
</script>
<div id="container">
<div class="response">RSP 1</div>
<div class="response">RSP 2</div>
<div class="response">RSP 3</div>
<div class="response">RSP 4</div>
</div>
File 'atbd.php':
<?php
echo date('Y-m-d H:i:s', time());
?>