Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Display MongoDB data in raw JSON with only jQuery
Post Body

So I have been googling but I can't find a way to easily connect a mongo database with jquery without the use of Node or any other server-esque thing. Eventually I'll get to Node but I want the simplest lightweight way first. I should add that I don't need to POST data, just GET so I think it's possible...seems like it should be a simple ajax call but I'm not very experienced with that yet and I can't seem to figure out where to start. I imagine it'd be something like:

$.ajax({
  url: "localhost/27017/databasename/"
});
  .done(function() {
    collection.find()
  }

and yes mongod is running. anyone done this before and/or have a tutorial or some help they can link me with?

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
7,985
Link Karma
7,198
Comment Karma
787
Profile updated: 2 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago