Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/http image source #58

Merged
merged 10 commits into from
Apr 14, 2014
Merged

Conversation

aogilvie
Copy link
Contributor

About

This adds ability for localhost XHR requests.

Testing Code

  • Add a file named text.txt to the assets/www/ dir
  • Add the code below to the bottom of index.js
// test XMLHttpRequest
var request = new XMLHttpRequest();
request.onreadystatechange = function (aEvt) {
    console.log("Readystate: " + request.readyState);
    if (request.readyState == 4) {
        if (request.status == 200) {
            console.log("+++++++++++++++ " + request.responseText);
        } else {
            console.log("Error loading");
        }
    }
};
request.open("GET", "text.txt");
request.send();

@jrouault
Copy link
Member

🗽

aogilvie added a commit that referenced this pull request Apr 14, 2014
@aogilvie aogilvie merged commit f9fa71c into Wizcorp:develop Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants