0
燈箱我使用jQuery做一個POST,它返回HTML,我怎麼能在我的燈箱中使用這個HTML?現在我正在使用這個:http://buckwilson.me/lightboxme/但我可以使用任何。燈箱與PHP的jquery
PHP:
$string = "<p> Number:".$num."</p>";
$string .= "<p>Date:2012 Number: 123</p>";
$string .= "<table>";
$string .= "<thead><tr><th>Category</th><th>Status</th><th></th></tr></thead>";
$string .= "<tbody>";
foreach ($categories as $cat){
$string .= "<tr>";
$string .= "<td>$cat[C]</td>";
$string .= "<td>$cat[S]</td>";
$string .= "<td><a href='#'><img src='/images/1.png' /></a></td>";
$string .= "</tr>";
}
$string .= "</tbody>";
$string .= "</table>";
echo json_encode($string);