I am having trouble accessing data from an API. Here is my code with a fake access code. I am getting an error that says “Uncaught TypeError: Cannot read property ‘temp’ of undefined” Here is the API. I want to be able to access temp and description and append them or add them to my page. It does not need
Tag: jquery
Divs not stacking, instead is overlapping
I am trying to stack a div containing buttons under another div that contains a flipbook created using turnjs. This is how the webpage looks like: https://imgur.com/a/Nwp3Mgi . I want to position the buttons under the flipbook, but it will overlap instead. This is the html: This is the css: How do I ensure that the div containing the buttons
Div will always shift up after refreshing the page
I have 2 divs on the webpage, the flipbook that is created using turnjs and another div containing the buttons. When I load the page, the divs are in the center of the page: https://imgur.com/a/lLb2g2l . After I refresh the page, the divs will shift up and stay there even after refreshing the page. This is how the page looks
How to fix undefined url using JQuery in Codeigniter
i have a problem using sweetalert2 in my codeigniter project, the error is when i click the button confirm to delete, the button can’t get all of the url, so the page showing 404 error page, how to fix this error? this is the javascript with jquery and this is the button using datatable Answer Solution 1:
Why is my Javascript toggleClass code not working?
I am trying to add the .open class to a div when the it is click. It is currently not working, and I’m not sure why. Here is my JS Here is my HTML For reference, I am trying to replicate exactly what is happening with the bottom right “have a question” widget on this website https://soldaf.ca/ Thanks, Answer The
Can’t trigger hover event on other element with jQuery
Hello I am trying to write a jQuery snippet which will simulate a hover event on flipbox when a button is clicked. The main problem is that I have tried all solutions given on stackoverflow for this scenario but it just doesn’t seem to work at all. Front of flipbox in dev console Front of flipbox in dev console Below
Value attribute of button not passed when icon is clicked directly
I have an html button created using bootstrap that is essentially an Icon used to toggle the state of an item on a website. When it is clicked a request is fired: regardless of whether I click the button or the icon, the toggleAck event triggers. However, if I click the icon directly instead of the button the value attribute
AJAX – Convert returned octet-stream to typed array (Float64Array)
I cannot figure out what I’m doing wrong here. I’m trying to convert a binary stream, returned from an AJAX call, to an array of doubles in JavaScript. Some code: My server PHP returns an octet-stream (array of doubles): In my webpage I have an AJAX call: And then my function for processing the returned data from the rest call
Ion RangeSlider without jQuery
Is it possible to get a ion rangeslider without jQuery ? The script below cause problems on my website with a part of the menu dedicated to users. I tried to remove the jQuery by following the reference below, but failed. https://www.npmjs.com/package/vanilla-rangeslider Anyone kind enough to help me? Is there any way to get ion RangeSlider without Jquery? Project: https://jsfiddle.net/snake93/ahsnfw80/10/
converting jquery hide/fade/delay/animation to pure js
I am trying to remove the jquery dependency from my code and came across a few lines I have no idea how to replicate in js. I know I can use setTimeout() in place of delay, css transitions for the fading, and css for the hide… just not sure how to go about it and haven’t been able to figure