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

Unable to pass data from asp.net to javascript function dynamically?

this is my asp.net code where Im passing 4 values to the javascript function fnInsertLeave and below is the javascript function,unable to get values in the function enter code here"</td>"...

View Article


How to clear all inputs, selects and also hidden fields in a form using jQuery?

I would like to clear all inputs, selects and also all hidden fields in a form. Using jQuery is an option if best suited.What is the easiest way to do this... I mean easy to understand and...

View Article


Is there a Javascript equivalent to pytest's parameterized fixtures?

In pytest you can set up fixtures that can have multiple different values. These are called "parameterized fixtures". A test that uses these fixtures will be run with all possible combinations of...

View Article

Extract all email addresses from bulk text using jquery

I'm having the this text below:sdabhikagathara@rediffmail.com, "assdsdf"<dsfassdfhsdfarkal@gmail.com>, "rodnsdfald ferdfnson"<rfernsdfson@gmail.com>, "Affdmdol...

View Article

No message when data entry success

The following code successfully submits data to a mysql database. However, the form does not show error when fields are blank and it will not populate the div with the success message when it...

View Article


Getting difference from range of dtes in Jquery U.I Datepicker

I am working on some date input fields which have jQuery UI datepicker in them. They are namely departure date and return date. They work well. After the user selects the departure date and return...

View Article

How to change div color from a given value in JavaScript

<div id="nav"> Some Text </div> <input type="text" id="color"><button onClick="changeColor()">Change</button> <script> function changeColor(){ var colorCode =...

View Article

What's the difference between using `: Interface` and `as Interface` in...

I'm not sure what these are called so I'm having a bit of trouble searching for an answer. Let's say I have the following interface defined:interface Person { name: string; age: number; } What's the...

View Article


How to access values of a Promise?

I'm writing a comment system built with two databases: one contains the text and the ID of the commenter, which then is used to access the second database to retrieve & dynamically display the...

View Article


is it possible to change all anchor tags property on a website at once?

I have recently learned that target="_blank" is vulnerable and we have to use rel="noopener". I am working on a website project where all anchor tags are using the target attribute.It is possible to...

View Article

Auto-highlight image maps areas on timers (not hover)?

I have a complex image map and I need to be able to "blink" each <area> on individual timers, instead of mouse hovers affecting it.I had assumed that this would be simple with something like...

View Article

How can i save multiple click counters in localstorage?

I have several counters, how can I store all values in the store? And is this even possible in this example?I created a code snippet here: document.addEventListener('click', function(event) { if...

View Article

Image may be NSFW.
Clik here to view.

Mobile design UI pattern name and existing JavaScript/CSS implementations...

I'm building a form which I would like to design in the following way:Since I have seen this before and hence didn't come up with this design myself, I was wondering if this is an existing mobile...

View Article


How can i pass props through methods inside components?

i have a react component named "List" that renders smaller components "Post" using a button through method "Addpost()" that takes 2 props from the input form. I have saved the input in 2 varables but i...

View Article

How can I introduce the async/await pattern for my onMessage event that...

This question already has an answer here:How do I convert an existing callback API to promises? 20 answersThe JSON response is received well from the iFrame, but when wanting to insert the variable in...

View Article


How to connect Web Audio API to Tone.js?

I'm doing an Online Audio Player, so I want to integrate Pitch Shifter in my App, which is available on Tone js but not in Web Audio API... So my idea is to connect TonejsPitch Shifter to Web Audio...

View Article

How can I do a zoom effect to a button?

I want to know If it is possible to do a zoom-transition to get Inside a Button, where are more Buttons to find? Like there are some Main theme buttons and I want to get to the sub themes with other...

View Article


Import JSON file dynamically in React-native

I want to import JSON files dynamically based on certain condition. My Code isimport TXT1 from "../Assets/TTCS1.json"; import TXT2 from "../Assets/TTCS2.json"; export class Timetable extends Component...

View Article

Update status of each dynamic row using checkbox

I have a form with dynamic rows, after fetching record I want to update status of selected rows by checkbox. I'm successfully getting each row checkbox values and dynamic row id in console but when...

View Article

Implementation of Lokesh Dhakar's "Color Thief" library results in "Uncaught...

I am trying to implement Lokesh Dhakar's "Color Thief" library.The expected outcome is to display dominant color and color palette immediately after upload.My assumption is that there is going...

View Article
Browsing all 139771 articles
Browse latest View live