Questions about usage of the Stack Exchange API in client-side browser JavaScript.

learn more… | top users | synonyms

1
vote
1answer
163 views

Best way to calculate total badge count in Javascript?

I'm using Javascript and JSONP and want to find-out a user's total badge-count (i'm not using any libraries). At first I naively added up the badge counts individually, but some user's have no ...
1
vote
1answer
325 views

How to use the stackapps API from JavaScript with XMLHttpRequest or XDomainRequest?

I had an idea for an app that required calling the stackapps API from JavaScript, but when I started prototyping it I quickly found out that the API does not allow cross origin requests. This means ...
1
vote
1answer
25 views

Is there any API or documentation that would help my adding functionality to Q&A textareas?

I'm writing an userscript that should add some functionality to the main textarea (WMD) used to post and edit answers and questions. The functionality will usually need to do things like insert text ...
1
vote
2answers
80 views

How to use the StackExchange object on a userscript?

This object seems to be available in all Stack Exchange pages and contains interesting information about the actual page, site, user, among others. Just type StackExchange on the console to check it ...
1
vote
1answer
195 views

Javascript SDK init fails on sytax error…why?

I'm writing a user script and I want to hit the SE API for something, but SE.init is failing without much feedback indicating what the issue is. According to the documentation, it should be ...
1
vote
0answers
7 views

Can Chat allow POST requests from all origins? [migrated]

In chat, I can read events by sending a POST request to this URL: http://chat.meta.stackexchange.com/chats/roomID/events However, there seems to be a Same Origin Policy, preventing CORS. Could it ...
1
vote
0answers
38 views

IGB Stack Flair - A dynamic flair for stackexchange.com sites

IGB Stack Flair - A dynamic flair for stackexchange.com sites About IGB Stack Flair page at sourceforge.net How to include it in your web page How to include it in your Wikipedia page (you ...
1
vote
0answers
73 views

Banana Stand: Hide the green

Don't like your green rep notifications? Hide them completely with Banana Stand: Banana Stand User Script Download Link Alternatively, make the less intrusive with Banana Stand Lite: Banana Stand ...
1
vote
0answers
216 views

StackOverflow Updater.. Update Questions without the refresh

SOUpdater - UnRefresh! (1.2) App (Chrome-Extension) About SOUpdater is a chrome extension that helps in plugging-in questions asked in stackoverflow in a sidebar and update it frequently without ...
0
votes
1answer
151 views

Javascript SDK channelUrl for local development

I am trying to get started with the Javascript SDK. I am developing on a web server on my local machine. I get a channelUrl-related error when calling SE.init. My code: SE.init({ clientId: ...
0
votes
0answers
18 views

How to call editor commands from the outside?

When initialised, the SE editor instantiates CommandManager: this.run = function () { if (panels) return; // already initialized var commandManager = new CommandManager(hooks, ...