Browse Source

prepared the class HTMLWrapper for usage with AJAX

replace/c24a8d1de403113542ba0936e844151de2785013
Martin Monperrus 15 years ago
parent
commit
eea2522e85
  1. 3
      bibtexbrowser.php

3
bibtexbrowser.php

@ -2488,6 +2488,9 @@ class HTMLWrapper {
*/
function HTMLWrapper(&$content,$metatags=array()/* an array name=>value*/) {
// when we load a page with AJAX
// the HTTP header is taken into account, not the <meta http-equiv>
header('Content-type: text/html; charset='.ENCODING);
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
?>

Loading…
Cancel
Save