 (window.DOMParser){
    parser = new DOMParser();
    xmlDoc = parser.parseFromString(xhr.responseText,"text/xml");
   }
   else{ // Internet Explorer
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async=false;
    xmlDoc.loadXML(xhr.responseText); 
   }

   //do some stuff
     }
     else {
         alert('Request failed.  Returned status of'+ xhr.status);
     }
 };
 xhr.send();


I have also uploaded it to my web server and hosted it with IIS 6.  I added a web config, with these settings.


<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
  </system.web>
  <system.webServer>
   <httpProtocol>
     <customHeaders>
       <add name="Access-Control-Allow-Origin" value="*" />
     </customHeaders>
   </httpProtocol>
    <defaultDocument>
      <files>
        <add value="rss.html" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>


I found an article about setting Handler Mappings in IIS.  Suggesting to set the OPTIONSVerbHandler to ISAPI... however I don't have that setting.
Anyone that can shed some light on this. I would greatly appreciate it.


A: After more research.  It seemed that the easiest solution was to create my own proxy.  


*

*Convert the static site into a blank ASP.Net Web Application

*Create a generic handler in the project that contacts the bbc feed from the server

*Call that handler from the client side JS


Here is my handler for anyone interested
using System;

using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Xml;
namespace Feed
{
    /// 
    /// Summary description for rss
    /// 
    public class rss : IHttpHandler
    {
    public void ProcessRequest(HttpContext context)
    {
        string locationsRequest = CreateRequest();
        context.Response.Write(locationsRequest);
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

    public static string CreateRequest()
    {
        return XmlHttpRequest("http://feeds.bbci.co.uk/news/rss.xml", "");
    }

    public static string XmlHttpRequest(string urlString, string xmlContent)
    {
        string response = null;
        HttpWebRequest httpWebRequest = null;//Declare an HTTP-specific implementation of the WebRequest class.
        HttpWebResponse httpWebResponse = null;//Declare an HTTP-specific implementation of the WebResponse class

        //Creates an HttpWebRequest for the specified URL.
        httpWebRequest = (HttpWebRequest)WebRequest.Create(urlString);

        try
        {
            byte[] bytes;
            bytes = System.Text.Encoding.ASCII.GetBytes(xmlContent);
            //Set HttpWebRequest properties
            httpWebRequest.Method = "POST";
            httpWebRequest.ContentLength = bytes.Length;
            httpWebRequest.ContentType = "text/xml; encoding='utf-8'";

            using (Stream requestStream = httpWebRequest.GetRequestStream())
            {
                //Writes a sequence of bytes to the current stream 
                requestStream.Write(bytes, 0, bytes.Length);
                requestStream.Close();//Close stream
            }

            //Sends the HttpWebRequest, and waits for a response.
            httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();

            if (httpWebResponse.StatusCode == HttpStatusCode.OK)
            {
                //Get response stream into StreamReader
                using (Stream responseStream = httpWebResponse.GetResponseStream())
                {
                    using (StreamReader reader = new StreamReader(responseStream))
                        response = reader.ReadToEnd();
                }
            }
            httpWebResponse.Close();//Close HttpWebResponse
        }
        catch (WebException we)
        {   //TODO: Add custom exception handling
            throw new Exception(we.Message);
        }
        catch (Exception ex) { throw new Exception(ex.Message); }
        finally
        {
            httpWebResponse.Close();
            //Release objects
            httpWebResponse = null;
            httpWebRequest = null;
        }
        return response;
    }
}

}
Whan meaning in Urdu is Chamray kay tasmay maarna. Similar words of Whan are also commonly used in daily talk like as Whanged, Whanging, and Whangs. Pronunciation of Whan in roman Urdu is "Chamray kay tasmay maarna" and Translation of Whan in Urdu writing script is چمڑے کے تسمے مارنا.
Whan is an English word that is used in many sentences in different contexts. Whan meaning in Urdu is a چمڑے کے تسمے مارنا - Chamray kay tasmay maarna. Whan word is driven by the English language. Whan word meaning in English is well described here in English as well as in Urdu. You can use this amazing English to Urdu dictionary online to check the meaning of other words too as the word Whan meaning.
Finding the exact meaning of any word online is a little tricky. There is more than 1 meaning of each word. However the meaning of Whan stated above is reliable and authentic. It can be used in various sentences and Wh Whan, you can check other words' meanings as well by searching it online.Sour rebounds are something everyone has experienced. The condition has many names. The medical term is GERD (gastroesophageal reflux disease), others call it heartburn. The symptoms are a burning pain in the upper abdomen and behind the sternum. The problem is caused by abnormal leakage of acid from the stomach into the esophagus. The lining of the stomach can withstand the acid, but the lining of the esophagus is not made to withstand such strong substances. The acid gives a burning and burning sensation, and in some it can lead to inflammation of the esophagus mucosa.
Acid reflux is especially common in pregnant women, especially during the latter part of pregnancy. This is because an ever-larger uterus presses the stomach contents upwards, which can cause acid reflux. Hormone fluctuations in pregnancy also increase the risk of acid reflux.
Heartburn has not been shown to have any effect on the outcome of a pregnancy.
Avoid fatty, smoked or spicy foods.
Sometimes, the advice above is not enough to get enough control over the acid reflux. Then there may be a need for drugs that cushion the problems. It is a good rule that all drug intake during pregnancy should first be discussed with a doctor, midwife or pharmacist. This also applies to non-prescription drugs.
Drugs like omeprazole can be prescribed to pregnant women with major heartburn problems. According to the knowledge available today, it is safe to use the drug even in early pregnancy.Results 1 to 5 of 5
Hey, I'm not sure how to install knoppix and format my drive for it. (currently ntfs) can someone please guide me through? I don't have much time! thanks in advance,...
- Join Date
- Jul 2005
- 1
How do I install?
can someone please guide me through? I don't have much time!
thanks in advance,
fische
- Join Date
- Jun 2005
- 24
fische,
Knoppix is a boot from cd operating system. You do not need to install anything or format your hard drive. In fact, you can have another OS on the hard drive and boot Knoppix from the cd.
To get Knoppix to work:
1. Go to and download the.iso file for Knoppix.
2. Use image burning software such as Alocohol 120% to burn the image onto a cd.
3. Change the boot order in your BIOS settings so that your computer first checks the cd-rom drive for a bootable disk. Do this by pressing [delete] or whatever the screen says to enter the BIOS settings (When the computer first starts up).
And this is all you need to do to get Knoppix running on your machine. Just restart the computer with the cd in the drive and it will boot up linux from the cd. This is why Knoppix is great to find out if you will like Linux or not. Because you can still keep a Windows machine while you are test driving it.
I hope this helps.
Though Knoppix is designed as a live cd distrobution of linux. you can also install it on your hard drive. You might want to