Quantcast
Channel: Active questions tagged javascript - Stack Overflow
↧

Image may be NSFW.
Clik here to view.

How can a menu sidebar be toggled / collapsed by default in HTML / CSS / JS?

I have downloaded html5up's Editorial template and am trying to collapse the menu sidebar when the page is first visited. As shown in the screenshot below, clicking on the blue three-bar icon toggles...

View Article


Counting based on the color of two adjacent cells in Google Spreadsheets...

I'm new to Javascript and am trying to create a script in Google Spreadsheets that can look at a row for cells with this color #6d9eeb and check if the cell directly below cells with that color has...

View Article


Why do JavaScript-based navigation and postMessage fail inside WKWebView in...

We’re displaying interactive HTML content using our plugins in the Banno platform.When a user taps a plugin, it redirects to a web page that loads our HTML content — either in the same tab or a new...

View Article

Failed to load PostCSS config: module is not defined in ES module scope

I'm encountering an issue with my PostCSS configuration in my project. When I try to run my development server, I receive the following error message:Failed to load PostCSS config: module is not...

View Article

How to stop multiple API calls when getting session data in React application?

I have the following code:import React, { useState, useEffect } from 'react';import { Route, Redirect } from 'react-router-dom';import axios from 'axios'; // or fetchconst calledRef =...

View Article


How to copy one cell (A1) into another (A2) with trigger OnEdit ()

I want to name the workbook with the contents of cell A1. If cell A1 changes, the name of the workbook changes as well. I found the script that does this. BUT, if the contents of the cell is a formula...

View Article

Next.js 15: Unable to serve static audio file from public directory

Problem DescriptionI'm trying to play an MP3 audio file in my Next.js 15 application, but the audio files in the public/audio/ directory are not being served. When I check the browser's developer...

View Article

Dynamic data print

Print dynamically generated data when print button clicked- Table has an ID but table data (td and tr) data's are dynamically generated one.I am able to get the data in the table and I have tried...

View Article


Image may be NSFW.
Clik here to view.

Combine 2 tables to create Tree in ExtJS 7

MySQL has 2 tables with the same rows.For an edit I need one TreeList without true leafs and edit the true leafs separately in a Grid and for the Employees i need one TreeList with the true leafs.It...

View Article


Element addition for Bootstrap modal fails - issue issue with version 12.3...

I started using Highcharts version 12.3 and encountered a problem with an additional element I add to my charts. Left of the hamburger menu I position the word INFO and when clicked I have a Bootstrap...

View Article

how to format a cell color to match another cell color that changes with...

I cant seem to adapt this script I found here or figure out how to ask a question on the thread.https://stackoverflow.com/a/41403434/9676680is the script. I tried to adapt it to the cell and range I...

View Article

Is it safe to have sandbox="allow-scripts allow-popups allow-same-origin" on ?

I'm dynamically creating an iframe in my app, result looks as follows:<iframe src="blob:http%3A//localhost%3A9292/0194dfed-6255-4029-a767-c60156f3d359" scrolling="no" sandbox="allow-scripts...

View Article

Best way to find whether a value exists in a JSON object in javascript?

I have a single level JSON to search through for the presence of a given value. Is there is a compact method provided in ecma5 for the same ?

View Article


My html data entry is not saving in google sheet, what should I do?

No data is saved in google sheet from my html form. I'd watch couple of tutorials online and tried different approach but still same result. My google sheet script is showing execution started,...

View Article

TypeError 'vega-util' does not resolve to valid URL

I am new to Javascript, Vega-lite, and Rollup. I have been able to solve some errors and unresolved dependencies. I am getting an error in the browser. I do not know what is going on in the bundle js...

View Article


Image may be NSFW.
Clik here to view.

Why does my Electron app not focus on input fields? [closed]

For my application about data input it’s necessary to focus specific input fields and tab through, depending on use-case. All that should be needed is the focus() function:$('form#beringung_edit_form...

View Article

How to deal with nested useEffect?

Recently started using Hooks and, as cook as they are, they are giving me a bit of a headache.I have a custom useFetch() hook that deals with fetching data from the API.I also have a component where I...

View Article


Get URL response code with JavaScript on Google Sheets

I've got a Google Sheets doc with a list of URLs and I need to check the response code of each of them.I know that there's a possibility to write a script with JavaScript and then run it as a Sheets...

View Article

Call play(), stop() on hidden tag using javascript

I am creating a simulation page for an application. It requires a set of button controls to Play, Pause and Stop sample music. I read some questions on stackoverflow to get the controls working. Some...

View Article

how to refresh my office JS add-in side panel using javascript code?

how to refresh my office JS add-in side panel using javascript code ? I want when when I click on on this button in my add-in side panel refresh my add-in side panel<button...

View Article

How to fix the Facebook's "Advertiser Tracking Enabled parameter volume out...

My team wants to run an ad campaign, but the event which we wanna use is not eligible for it, as it says "Advertiser Tracking Enabled parameter volume out of range (Your app needs a certain volume of...

View Article


How to fix this resizable component in React?

React Element Resize Not WorkingI'm trying to implement a resizable chat container in React, but the resize functionality isn't working properly, already spent half of a day. I suspect the issue is in...

View Article


I can't find why nth iterations of an image are not loading

Hi I am trying to create a timeline for my fantasy world, and it works for the most part. You can see it in action here. https://www.skazkaworld.com/timeline.htmlAs you can see, the background rune...

View Article

Google Plus API error gapi.loaded_0

I am trying to use requireJS with Google plus API, but getting an error when I click login buttonHere is the error and screenshot:GET...

View Article

testing an useState change inside a callback

I have a component like this to test:import {doSomethingMocked} form 'mockedLibrary';const TheComponent = (props) => { const [isToTest, setIsToTest] = useState(false); const handleClick =...

View Article


How to deselect all selected options in a multiple select? [closed]

I have an select autocomplete, that has multiple true. I would like to clear all selected items with javascript. This is the code I'm using:const $sel = $('#'+ selectId);if (!$sel.length)...

View Article

Unusual "Warning: Text strings must be rendered within a component." error,...

Here's the error I'm getting:iOS Bundled 50ms node_modules/expo-router/entry.js (1 module) ERROR Warning: Text strings must be rendered within a <Text> component. 8 | 9 | export default function...

View Article

Delay in reloading HTML page after sending data from Google Sheet

I integrate google sheet in my html page, when i send my data, everyhing good -> data apear in google table, but i had big delay in few second, after my page reloaded and clean old data, that was...

View Article

Why chatango isn't working in my site?

I just can't seem to get the Chatango code work in my site.The chatango code is <script id="cid0020000166511244679" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width:...

View Article



Ractive.js and time conditional DOM

I have page which displays time-dependent text-snippets from a json with Ractive.js.After initialization, I want to check every minute, if the stop-time, which is stored in the json, is due. Then the...

View Article


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