Comments (17)
+1, this is causing problems for me also.
from browser-request.
@jhs if you add me as a collabo to this repo i'll fix junk
from browser-request.
@maxogden Thanks very much!
I believe you already have access, since you are a member of the iriscouch/colleagues group. Please let me know if that is only read-only or something like that.
from browser-request.
OH!
On Fri, Jul 5, 2013 at 5:04 PM, Jason Smith [email protected]:
@maxogden https://github.com/maxogden Thanks very much!
I believe you already have access, since you are a member of the
iriscouch/colleagues group. Please let me know if that is only read-only or
something like that.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-20544448
.
from browser-request.
I fixed this by changing the line in XMLHTTPRequest from:
var XHR = xmlhttprequest.XMLHttpRequest
to
var XHR = xmlhttprequest.XMLHttpRequest || XMLHttpRequest
but there are issues:
- the submodule for xmlhttprequest in this repo is old and needs to be updated
- I don't know how to run the tests
- I don't know how to build a new version of the library
it would be nice if npm test
and npm run build
were implemented to do these
from browser-request.
I fixed the submodule. Building is now available via npm run build
.
The tests require CouchDB running on localhost:5984. Me, I would rather go out in public with no pants on than not have couch at localhost:5984; but perhaps that is not a broadly-held opinion.
@maxogden what is your sense of Ender? Are people using it anymore? Is it worth continued support? It was the dog's bollocks when I wrote this but I don't follow browser JS trends much. Thanks.
from browser-request.
im pretty sure nobody uses ender anymore
On Sat, Jul 6, 2013 at 5:59 PM, Jason Smith [email protected]:
I fixed the submodule. Building is now available via npm run build.
The tests require CouchDB running on localhost:5984. Me, I would rather go
out in public with no pants on than not have couch at localhost:5984; but
perhaps that is not a broadly-held opinion.@maxogden https://github.com/maxogden what is your sense of Ender? Are
people using it anymore? Is it worth continued support? It was the dog's
bollocks when I wrote this but I don't follow browser JS trends much.
Thanks.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-20563758
.
from browser-request.
Thanks. Also, if var XHR = xmlhttprequest.XMLHttpRequest
fails then that is a bug in my building or packaging. The intention is that xmlhttprequest
is a global variable (or that it is correctly in browserify, etc.)
The whole point of using the xmlhttprequest project as a submodule is that it standardizes the API and behavior across all browsers.
from browser-request.
Glad to see that progress is being made on this.
Note: I am one of many (I assume) who would rather go into public without pants than require a local couchdb server for a JS library's tests.
from browser-request.
We will have to agree to disagree that CouchDB provides a feeling of warmth, comfort, and security.
I respect your opinion, and I support diversity; so I will work on removing couch as a test dependency. Really, all that is needed is a static file server, which Node itself can do.
from browser-request.
That sounds like a good plan, especially if all that is required is to be able to serve static files. There are several modules that will do that (quickserve, serve, paperboy...).
Also, I have nothing against couchdb! Only that an external tech is a impediment to others contributing.
from browser-request.
@jhs i'm pretty sure that something about the way you're loading the xmlhttprequest polyfill is broken because I cant get it to work in firefox without adding || XMLHttpRequest
to the end like I said above
from browser-request.
ok I have a pretty radical fork https://github.com/maxogden/browser-request
on the plus side it has testling tests
from browser-request.
@jhs do you approve of my house cleaning here?
from browser-request.
+1 I'm not a browser expert these days, but "browserify ftw" seems like a good approach!
from browser-request.
made a pull req #17
from browser-request.
This still seems to be a problem in the latest version from npm (0.2.1). Works in Chrome, but not in Firefox.
from browser-request.
Related Issues (20)
- Not support bearer authentication HOT 1
- Content-Type is application/json,application/json
- request module work in browser HOT 1
- Request works in Chrome, fails in Firefox with "CORS request rejected" error HOT 2
- default baseUrl is not working
- formData not supported HOT 4
- IE11 InvalidErrorStatus HOT 2
- Unexpected end of JSON input - Offline mode HOT 1
- Does your library support cookies?
- Refused to set unsafe header "User-Agent"
- Typescript support HOT 1
- Uncaught error, no options given
- Simple way to make a request sync? HOT 1
- window.request is undefined
- Support proxy option
- Is anyone still maintaining this library? HOT 4
- Sending an image file using the form? HOT 1
- Promise to obide by project guidelines
- ### Description of the bug:
- ### Description of the bug:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-request.