I use perl as server-side language to generate webpages dynamically. The generated html page is as following: ############### html ################ <body> <a href="#">Hello World</a> <div id="box">How are you</div> </body> ############### html ################
the jquery file: ############### jquery ################ $(document).ready(function(){ $("a").click(function(){ $('<p id="name">peter</p>').appendTo('#box'); if($('#name').length){ $('#name').show("slow"); }else{ alert("It doesn't exist."); } }); }); ############### jquery ################ The question is if I use ==> print $q->header(-type=>'text/html', - charset=>'utf-8'); <== to generate the page, it works fine. But if I use ==> print $q->header(-type=>'text/xml', - charset=>'utf-8'); <== it can't work at all. I use MathML in my html pages, so I have to use "text/xml" to print out http header. Can anyone help me get through the problem? Thanks a lot.