I’m implementing a registration page to my nodejs api. With createAsyncThunk I implemented the function to fetch the user data and update the state. The api works correctly, in fact it returns the created user data in the payload when the action is dispatched. But the user state is not updated and stays…
Tag: html
How do I get all the commented TV and movie scores in descending order? django
What we want to achieve. I want to sort the movies according to their star ratings and filter the movies with lower rating than the specified threshold. 2. get the IDs of Movie and TV that are commented in the View, and get the data and score by url one by one. 3. Return it to the html and display
Problems at creating slider, I’m new in javascript
I’m trying to create an automatic slider, I can go through the images using the buttons to change them, but them don’t change automatically and I don’t know why, also the first end button doesn’t work properly at the beginning of the slider. This is the HTML code: This is the CSS code:…
Getting error while creating code for my netflix-clone
Row.js component code where i am calling the api key Row.js axios.js Error in the console log is below one, I got the API key from TMBD Api and it was working fine with postman but here in react it is not working properly. Answer you created an axios instance but you did not use it and in the fetchData
Can’t get eventListener to display value in console
Hey guys im new to javascript and trying to get a better understanding of it, i am trying to make a 8 ball project and currently just to see if it works get it to display in the console but all i recieve is that it is undefined Answer There are a number of issues in your code: You are
Heroku App, Created File with Python, how can I get the download url?
with my Flask App I created some files to the heroku filesystem. I know that the files are deleted by each dyno restart. In my html/javascript frontend I want to download it now via button. The question is, how can I get the download url of these files in the heroku filesystem? Thank you! Answer I got the sol…
Change display Visibility and Boolean Value onclick in JavaScript
I am trying to change the style display visibility and boolean value(which is a global variable) onclick. Nothing changes with the code I have Written Am I missing anything? CSS Answer You should call changeView in the button event listener:
HTML form. How to enable button to close popup window after a valid dropdown selection is made
It should be really simple but I can’t figure it out, so any help would be gratefully received. I have a very simple pop-up with a form dropdown with some disabled options and some valid options. What I need to achieve is for the ‘Accept’ button to be disabled until a valid option is selecte…
Adding a theme (one of three themes) when you switch, and a mode (dark or light) when you toggle, to a HTML element in pure JavaScript?
I am going to generate from Markdowm to a single offline HTML page with inline styles and inline scripts. It has a selection list of three themes, using :root and a toggle of dark or light modes, with classes .vscode-dark and .vscode-light, based on VSCode’s Markdowm Preview. It should be like: And CSS:…
blob URL as audio src
After I get audio file from input, I make it to url using ‘URL.createObjectURL’. And the url looks like ‘blob:http://127.0.0.1:8080/52090eca-64a0-4262-aeda-34f9c62257b1’. However, if I put this url to the src in audio tag, this shows nothing. Answer HTMLAudioElement class contains .pla…