Jump to content

AJAX problem showing ÆØÅ


kvnirvana

Recommended Posts

How do I get my ajax to output the danish ÆØÅ?

I'm sure it is my Ajax part, cause if I write out the date from mysql and not using AJAX it displays it like it should.

this is my AJAX

<script type="text/javascript">


function showUser(str)
{
if (str=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  } 
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","des.php?q="+str+"&navn=<?php echo $_GET['navn']; ?>"+"&pr=<?php echo $_GET['pr']; ?>"+"&id=<?php echo $_GET['id']; ?>",true);
xmlhttp.send("");

}
</script>

Link to comment
https://forums.phpfreaks.com/topic/203567-ajax-problem-showing-%C3%A6%C3%B8%C3%A5/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.