Skip to content

Tag: javascript

Ajax post requests 403 error only for some users?

I’ve been testing my site by having friends try it, and some friends get the 403 Forbidden error on any function using ajax. I’m confused why only some of them get the error, especially when everyone used the same browser. Does anyone know why? I’m using Django as a framework and I think I&#…

How to run html & javascript in VS Code

I have the following code. How do I run this in VS Code with the debugger. I installed and tried live-server but maybe not doing it correctly. index.html index.js Answer You can install the following extensions. Live Server. Chrome Debugger. Once you have these two extensions installed, open the page index.ht…

How to move this inline JS to a file

I have this (simplified) inline JS which i want to move into a js file. Trying to clean up inline JS and CSS in a js file i already moved the function but i struggle greatly to move the inline onkeyup event. So what i tried to do inside my js file was this: but it doesn’t work… it reads

material-ui tabs with nextjs?

I have a project in material-ui, nextjs and typescript. I’m trying to get my navbar to work with nextjs: But it causes the build to fail. Is there something I’m missing? Answer In this case, I believe you want to wrap the <Tab /> elements with the <Link /> ones.