// JavaScript Document
  var Xml_Http_Object = false;
    try {
        Xml_Http_Object = new XMLHttpRequest();
    } catch (trymicrosoft) {
        try {
            Xml_Http_Object = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (othermicrosoft) {
            try {
              
                Xml_Http_Object = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (failed) {
              
              Xml_Http_Object = false;
            }
        }
    }
    
  
    if (!Xml_Http_Object)
        alert("Det gick inte att skapa ett XmlHttpRequest objekt!");

    function talkToServer(){
 
 
 
  
 

     var url = "http://www.rssportalen.se/ppnews.php" ;

      Xml_Http_Object.open("GET", url, true);
	 

      Xml_Http_Object.onreadystatechange = updatePage;
	 


      Xml_Http_Object.send(null);
    }
	
	

    function updatePage(){
	
		
      if (Xml_Http_Object.readyState == 4) {
		  

	
        if (Xml_Http_Object.status == 200) {
        
           var response = Xml_Http_Object.responseText;
        

		   document.getElementById("info").innerHTML = response;
		
        }
        else{
           alert("Något var fel med förfrågan." +str);
        }
      }
    }

 

