When I use JQuery to load data into a div
$.post("ajax/ajax_make.php", {
type: $('#type').val()
}, function(response){
setTimeout("finishAjax('make', '"+escape(response)+"')", 100);
});
It works, but when I add a line of script, it will not reload the visibility, though it still does load the content.
<script type="text/javascript"><?PHP
$query = mysql_query("SELECT * FROM `title` WHERE notlisted='1' && NOT bookid = 'title'
") or die(mysql_error());
while($row = mysql_fetch_assoc($query))
{
if (!isset($green)){
$green=array();
}
$books = $row['booktitles'];
array_push($green, $books);
}
foreach ($green as $value){
echo "$('#".$value." a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})";
}
?> </script>
you can see it in action at http://www.biblenice.com/completebible/