Skip to main content

Questions tagged [javascript]

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

5 votes
1 answer
118 views

How can I implement a method to call the SE API that handles backoff correctly?

I'm writing JavaScript (Node.js) code that calls the Stack Exchange API. One part of the API is that it may return a non-zero value for backoff, which essentially means "wait n seconds before ...
cocomac's user avatar
  • 478
5 votes
0 answers
89 views

Load Anonymous feedback

Access to anonymous and low-rep post feedback This User script allows to view anonymous and low-rep post feedback/votes under the voting menu: You can get it from GitHub: Source Install What is ...
dan1st's user avatar
  • 251
2 votes
0 answers
84 views

Uncaught channelUrl must be under the current domain

I'm developing a Stack Chrome extension that will make use of the API. I'm following the instructions on the API docs here. My OAuth and host websites are set to stackexchange.com in my Stack Apps ...
Joe Moore's user avatar
  • 171
1 vote
0 answers
45 views

How to get write access to Stack Exchange API? [duplicate]

I am trying to use Stack Exchange API to post upvotes and downvotes from my app. I have received the access token but not sure what to do with write_access
Sonal Varshney's user avatar
3 votes
1 answer
78 views

Where is it acceptable to store an access_token?

Obviously it isn't safe to broadcast any access_token to the public, especially those which are defined with no expiry date. It would also be considered a security issue if a list of registered access ...
Lakshya Raj's user avatar
5 votes
1 answer
565 views

Issue with JavaScript SDK

When using the JavaScript SDK to enable client side OAuth flow, I'm running into this issue: Uncaught TypeError: Cannot read properties of null (reading 'postMessage') And the page gets stuck with the ...
Sourabh Choraria's user avatar
0 votes
1 answer
159 views

Getting 405 when trying to post a comment

I'm trying to post a comment to The API Sandbox, I did one using the interactive documentation, but when trying to use my own code, it doesn't work. Instead, I get status code 405 (Method not allowed) ...
MrMythical's user avatar
1 vote
1 answer
1k views

Is it possible to get the response from a form POST?

This is related to my XYZ app to write comments. I found a much neater way to submit the request using forms: function post() { se_url='https://api.stackexchange.com/2.3/posts/'+se_postId.value+'/...
JMP's user avatar
  • 345
2 votes
1 answer
980 views

Why doesn't my XMLHttpRequest call work in Excel?

I can make a simple API call in JavaScript using XMLHttpRequest: <html> <script> function reqListener () { out.textContent=this.responseText; } ...
JMP's user avatar
  • 345
1 vote
0 answers
148 views

Extension; Access to layout and javascript of stackexchange network site instead of inject (Stacks is not defined)

Note: last update at the end of POST I am developing an extension for community users. Introduction: The extension is under development on this github: https://github.com/IcarosNetSA/atsu and these ...
user avatar
6 votes
3 answers
93 views

Tab4SE - the TAB key in your post

Tab4SE Screenshot / Code Snippet About Uses SmartTabbing™ technology to enable Tabing (Indent) and Shift+Tabing (Unindent). Can be enabled via the toggle switch in the toolbar (preference is ...
Spectric's user avatar
  • 1,695
1 vote
1 answer
1k views

Why am I getting a 400 Bad Request error with this code?

I'm using this code (in an async function): let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&...
Penguin's user avatar
  • 113
2 votes
1 answer
277 views

What write in app access for sending data

Here is my app's code: However, I get this error:
Никита Башенко's user avatar
2 votes
0 answers
113 views

DAO.af browsable aggregated tags

About goal is to learn skills faster by browsing the aggregated concepts. so you absorb big ideas before diving in. learn passively. its for everyone. analyzes SE posts with IBM watson and allows ...
r2e2's user avatar
  • 21
6 votes
0 answers
176 views

View close votes, reopen votes, and delete votes with insufficient repuation

Screenshot / Code Snippet About This script shows the number of current close votes, reopen votes and delete votes for a question. Works on all Stack Exchange sites. License GNU Lesser General Public ...
user avatar

15 30 50 per page
1
2 3 4 5 6