javascript Questions
1
I am working to migrate a Laravel web application to DigitalOcean's new App platform. We have been running this application on several machines over the past few months with no npm issues. However,...
Bibber asked 2/1, 2021 at 2:3
2
I'm using react native expo audio in my app, I use createAsync to load the audio in the player but sometimes i get Player doesn't exist error and sometimes it works fine. I'm unable to debug the er...
Poach asked 5/12, 2019 at 7:55
3
Solved
I have a template like so:
<template id="my-template">
<div></div>
</template>
That I convert to document fragment like so:
const elementFragment = document.getE...
Cutie asked 19/10, 2020 at 11:38
3
Solved
When creating an embed link on youtube the Captions are on by default. Is there a way to disable to the captions or turning them off when embedding a youtube link?
The documentation indicates:
Ma...
Godfrey asked 14/4, 2014 at 20:42
3
I develop a widget that is expected to run on a partner's site as an iFrame. The iFrame is served up via a different domain than the parent's domain, so I cannot explicitly access their DOM.
The e...
Offenseless asked 2/10, 2019 at 19:28
4
Solved
I have created a function that places an array of pins on a map. I have already added a click function to all markers that re-centers the map on the new location and zooms to the appropriate. This ...
Minnieminnnie asked 8/8, 2023 at 14:10
5
Solved
Looking for a resource to explain why when I run the below code, my original array doesn't change.
arr = [1,2,3,4];
for(let val of arr){
val = val * 2;
console.log(val);
}
console.log(arr);
I ...
Moorefield asked 30/1, 2018 at 5:35
4
Solved
I'm trying to read my excel file by using XLSX npm. While read its throwing error as 'Corrupted zip : can't find end of central directory'
This is error I'm getting,
Error: Corrupted zip : can't ...
Query asked 23/1, 2020 at 6:39
2
I have a project on rails that uses Active_Admin and other plug-ins, I get this error in the browser console. How do I fix this?
Uncaught TypeError: $(...).aaDropdownMenu is not a function
at HT...
Foetid asked 18/9, 2018 at 15:4
5
Solved
I'm doing a POST request from my frontend using fetch API. But when I tried in Firefox, it doesn't work. In Chrome works fine.
Here's what I'm trying to do.
const handleSubmit = async event =>...
Pergrim asked 4/12, 2019 at 12:51
7
I am using printing in my project (Using HTML and javascript). In mozilla onbeforeprint and onafterprint is working properly but not working in chrome.
Generator asked 28/11, 2012 at 6:3
5
I'm getting the error:
TypeError: ExpoMetroConfig.loadAsync is not a function
at runMetroDevServerAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/dev-server/src/MetroDevServer.ts:86...
Saccharate asked 12/2 at 22:57
3
I've got a reference to a CSSStyleRule object in JavaScript and I want to update the style for border-top-color to red !important. If I assign the value red, no problems occur. If I assign the valu...
Planar asked 31/7, 2012 at 5:43
7
Solved
I am initializing TailWindCSS using https://tailwindcss.com/docs/guides/create-react-app on a Vite + React + JavaScript project but cant get it to work, It seems like postcss and autoprefixer is no...
Caloric asked 2/1, 2023 at 20:58
8
Solved
I have to search for a key in nested JSON by JavaScript or by jQuery. In my JSON object all the keys are unique. I tried some solutions myself but they did not work.
Here is my code:
json = {
"ap...
Incense asked 6/8, 2016 at 14:8
6
I have code similar to this - very simple just to show the case.
this.getCode = (code: string): Promise<codeObject | false> => {
return new Promise((resolve, reject) => {
pool.query(...
Wombat asked 5/4, 2019 at 7:47
3
Solved
HTMX is great and using AJAX for most of the stuff is awesome! But from time to time I just need a real "phyiscal" redirect to another page.
Any ideas how to achieve this without starting...
Deil asked 7/1, 2022 at 7:59
3
Solved
I am adding styles when registering my block:
styles: [
{ name: "my-style-1", label: "Style Name" }
{ name: "my-style-2", label: "Style Name 2" }
],
In th...
Fulsome asked 18/10, 2021 at 5:14
2
Solved
I'm a beginner with vue (vue 3). I'm testing a mock vue application, and after testing the default homepage, i wanted to test how to make 2 (or more) different pages. However, what i do doesn't wor...
Dorsiventral asked 21/1, 2022 at 19:25
4
Solved
jQuery(document).ready(function () {
//alert("HIQ");
$('.mySelectCalendar').datepicker({ firstDay: 1, dateFormat: "dd.mm.yy" });
$.validator.addMethod(
'date',
function (value, element, params...
Diehl asked 30/11, 2014 at 7:54
2
After a long search, I could not find any thread/discussion helping me to make autoscaling work with plotly.
The idea would be that when I use the x-range slider to go through the data, the y-axis ...
Rhine asked 29/3, 2023 at 11:12
8
I'm trying to do a redirect using the below code:
<script type="text/javascript">
window.location.href = "http://google.com"
</script>
FF and IE work as they should. Chrome doesn't. ...
Amann asked 19/12, 2011 at 19:13
6
Solved
As it seems since version 9 of swiper.js you cannot loop through your slides if you do not have more than double the slides available than slidesPerView. So for example if I want to build a slider ...
Wallywalnut asked 14/2, 2023 at 15:52
3
I'm using MapView from 'react-native-maps'
I can't get the "showsMyLocationButton" to show, so I'm implementing my own.
I want do this without using React Native's geolocation because I find it t...
Eucken asked 22/8, 2018 at 22:34
4
Solved
var a = {
1: {
687: {
name:'test1'
}
}
}
var b = {
1: {
689: {
name:'test2'
}
}
}
var c = {
...a,
...b
}
console.log(c)
I was expecting the result to be :
...
Reversion asked 23/6, 2017 at 12:42
© 2022 - 2024 — McMap. All rights reserved.