Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 138163 articles
Browse latest View live
↧

insert td element to group of rows

I made a button to add cells to a group of rows as a column but when I'm trying to click the button to add an entire column it inserts the td element as a texthere is the...

View Article


How to get canvas from postcompose event of map in openlayers 6

we are using openlayers and in version 5.3 we were using this construction:map.once('postcompose', async(event) => { let canvas = event.context.canvas; // doing something with canvas } But in...

View Article


Printing Bootstrap modal window

I am trying to print the contents of a Bootstrap modal window. The code I have used to work but it no longer does. Content is added to the form in a separate function using appendChild(), however when...

View Article

Chaining different API calls in a Vue component including one with a for loop

I'm trying to understand how to chain two different API calls including one with a for loop in a 'notes' Vue component. I have a really basic experience of promises and I'm looking to improve.I'm...

View Article

Prevent filtering autocomplete suggestions in a tag

I have an html input field that is connected to a datalist containing suggestions for autocompletion.<input type="search" id="input-search" class="form-control" name="searchfield"...

View Article


How to get multiple values from child component in Reactjs?

I want to get two values in single method of Parent Component. Pass the props value from Child to Parent Component. What is the appropriate solution?Form.js (Child Component) // First method -> Here...

View Article

jQuery dialog UI get closed when click on title

I'm using this below code for one of my website. I know there have lot of ways to create a dialog boxes. But for a some reason, I need to follow these structure. //On click trigger a popup box...

View Article

Cannot reload page while Chrome devtools debugger paused in React app

I am debugging a React app made with create-react-app. Reloading while paused on a breakpoint causes the page to stall. The page goes blank and will not reload; the tab can't be immediately closed. The...

View Article


Why is onclick not working in JavaScript? [duplicate]

This question already has an answer here:Why does jQuery or a DOM method such as getElementById not find the element? 8 answersI wrote a simple code to learn Eventhandling in JavaScript but when I...

View Article


How can I check if this element exists to prevent property of undefinmed error

I'm getting a jquery error : Uncaught TypeError: Cannot read property 'top' of undefinedI am assuming I have to add a check to my code but it still gives the error. I'm wondering how to add the check...

View Article

How to get data from form and add inputs to Mysql table.Using JQuery

Help me out, I'm trying to add input from HTML page to Mysql, I don't know what is wrong with my code, I'm not able to proceed further. Can someone tell me why my input data from the form is not adding...

View Article

Reverse for 'task_status' with arguments '('',)' not found. 1 pattern(s)...

document.addEventListener("DOMContentLoaded", function () { try { var progressUrl = "{% url 'celery_progress:task_status' task_id %}"; CeleryProgressBar.initProgressBar(progressUrl); } catch(err) { }...

View Article

How to create independent pages via react router?

I came from Angular framework to React and I got confused with router library. I'm trying to create Login page as a separate page in my app which is should contain Navigation and Footer which is part...

View Article


Image may be NSFW.
Clik here to view.

Lots of white scrollable space after last div - resize the window is fixing it

I have a lot of white space after the last div (the last div-image is somewhere at the middle of page)What seems to somehow cure this is resizing the window and making it full again - not entirely but...

View Article

JavaScript "escape condition=null" not working with "toLowerCase" method .....

let username = prompt('Enter the username',''); if (username.toLowerCase()=='admin') { let password = prompt('Enter the password',''); if (password.toLowerCase()=='themaster'){ alert('Welcome!'); }...

View Article


How to index firebase data for query based on dynamic keys?

I am trying to add a querry where I have two array-contains, which turned out not gonna work as firebase doesn't support.const initialQuery = Firebase.firestore.collection('class')...

View Article

Styled component, breaks on google chrome

Styled component breaks on google chrome when changing the prop (form true to false for example). When props are changed styled component outputs class with no CSS inside, while on Firefox everything...

View Article


Postman test | Validate Response body (exact value)

I have the below response body (json) I want to do the below checks1) Check if 'id=5' exist*var expectedID = "5" tests["Body cointains ID: " + expectedID] = responseBody.has(expectedID);* 2) If first...

View Article

Add easing/smooth scroll to click and drag with js

I found a simple Codepen which allows me to drag and scroll a gallery with images. It is working fine, but I need a way to add "smooth grabbing/scrolling" to this function. Basically I want to emulate...

View Article

What is the best way to extract the address pieces from this google places...

This may be a simple JSON related question. I'm successfully receiving a JSON object from Google Places API that looks exactly like this example from the Google Places API docs. I need to assign each...

View Article
Browsing all 138163 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>