<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DanaAlcala</title>
    <description>The latest articles on DEV Community by DanaAlcala (@danalovesvidya).</description>
    <link>https://dev.to/danalovesvidya</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F66388%2F8bc0db8c-ba8d-4ffa-bda9-2cc63e5c0216.png</url>
      <title>DEV Community: DanaAlcala</title>
      <link>https://dev.to/danalovesvidya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danalovesvidya"/>
    <language>en</language>
    <item>
      <title>Hit a wall with AJAX basics</title>
      <dc:creator>DanaAlcala</dc:creator>
      <pubDate>Sun, 08 Apr 2018 06:55:20 +0000</pubDate>
      <link>https://dev.to/danalovesvidya/hit-a-wall-with-ajax-basics-j62</link>
      <guid>https://dev.to/danalovesvidya/hit-a-wall-with-ajax-basics-j62</guid>
      <description>&lt;p&gt;I want to learn netcode for Javascript games and my googling lead me to AJAX.  I tried an example that pulled text from a .txt file and displayed it in an HTML paragraph, but it didn't work at all for me.&lt;/p&gt;

&lt;p&gt;After quitting in frustration (I think I might have ADHD), I came back and googled some more, and it turned out my problem was that Chrome doesn't allow local AJAX calls.  It was recommended to install XAMPP and try again.&lt;/p&gt;

&lt;p&gt;I don't have a lot of experience with Apache or XAMPP, but I have worked on web pages before so I was a little bit at-home with the basic folder system.  I created a http/ folder and placed my index.html, main.js code, and simple .txt file in it.  When I tried to run the code from the server, it gave me a different error.&lt;/p&gt;

&lt;p&gt;Another bout of frustration hit me but I came back.  I returned to google and I found references to CORS and Comet, which I don't 100% understand, but I did glean that the file in question (the .txt file) needed a header.  But the problem is .txt files don't really have headers as they are just text and not read as code files.  Also, just about everything I could find mentioned adding the header to a PHP file, which isn't relevant for me because I'm using Javascript.  I tried adding the header to my .js file for just in case but that did nothing.&lt;/p&gt;

&lt;p&gt;Does anyone here have any suggestions for how I can get this simple AJAX code to run locally on my computer so I can move on with my learning objective?  Thank you for your time!&lt;/p&gt;

</description>
      <category>ajax</category>
      <category>javascript</category>
      <category>xampp</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
