返回首页

Questions tagged [javascript]

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed, and interpreted language used for both client-side and server-side scripting. Its primary use is in the rendering and manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

How do I make my bot send a message in a specific channel then delete it after a period of time

I am getting back into javascript and coding and stuff because I have a passion project I wanna work on for a guild in a game I play. So I wanna figure out how I could get my bot to send a message at ...
0
votes
0answers
5 views

failing to compile when using jest in vue but test cases are passing

i'm using jest with vue.js and running my test successfully but my module building are failing. i couldn't understand why. here's my code. please help me.i'll provide more if needed. package.json { ...
0
votes
0answers
4 views

Can't get calendar event ID to be linked in a cell

good day! I was able to create different calendar events using googlesheets thanks as well to our community. However, I now want to put a hyperlink of that created event in a column next to my ...
0
votes
1answer
9 views

how can I make animation like in Stanford Majors page?

http://majors.stanford.edu/ I don't know if these things called animation but how can I make that turning thing when you click on majors? I assume that I'm gonna need to use CSS Grid and JS.
0
votes
5answers
26 views

React js - Is there any other way to optimize my conditional code

Hello is there any way to optimize my code that consist of condition statements? Here is my code: if (num === 'NUM_1') newNum = 'number1'; if (num === 'NUM_5') newNum = 'number5'; if (num === '...
0
votes
0answers
16 views

The component is updated slowly, how to distribute the component update?

I have a component in which data comes from reducer as an array of objects. Next, the table is built <div className={'table-props'}> <Table striped bordered hover> ...
-1
votes
1answer
12 views

changing “GET” to “POST” in ajax xmlhttprequest

I have one javascript file where I am using ajax xmlhttprequest to set and get data from the server, Now I am having the below code which is working with "GET" functionality now I want to use "POST" ...
0
votes
0answers
8 views

Webpack generate file on build

In my project at work we use Vue with VueI18n for localization. We have one ref.js file which looks like this: export default { project: { lang: { test: { value: 'The test was a ...
0
votes
0answers
21 views

How to pass list from ajax to controller

I have a controller like so.. public ActionResult Report(List<string> invoiceIds) and I have an ajax call like so... function generateAccountsPayableReports() { var ms = $("#msInvoicesAPV"...
0
votes
0answers
12 views

How can i solve Image size problem in for each loop?

When there is 1 item image smaller than it should be.But in 2 or more images it is okay.What can be the problem? <div class="col-12 public-page"> <div class="logo-download"> ...
0
votes
2answers
21 views

Break recursive function

In this function I'm trying to find a specific item inside a JSON string. I can find the item but the issue is that once the item is found I want to break the forloop. I'm using a recursive function ...
0
votes
0answers
12 views

Slide next previous anchor for each photos

As you can see from the below JSFIDDLE link that the next and previous functions are working fine. It is taking the user to the next or previous photos accordingly. The issue what i am facing is when ...
0
votes
0answers
14 views

RxJS - race between click and timer

I struggle to create an observable that would emit each time I click or, if I don't click, emit each second and whose timer would be reset each time I click. I almost achieved what I want with a ...
0
votes
2answers
41 views

How to find max number of children elements in divs with same class name

So, I have a html calendar that I need to loop through and find elements within a week, and then compare weeks to find the week that has the largest amount of elements. My structure looks something ...
0
votes
2answers
12 views

Knockout JS Cannot bind to an array

I am trying to bind array to a table, so it shows all my array contents. I tried first example, which works (purely in HTML): <table> <thead> <tr><th>First name&...
3
votes
0answers
37 views

How to implement horizontal scrollbar to drop-down in chosen Jquery?

I need to add a horizontal scroll bar for drop-downs having larger option lengths. We are using Chosen jQuery for these drop-downs. Below the current code for this: $(".filterDropdown").chosen({...
0
votes
0answers
16 views

how to implement pagination in redux forms using fields.map function (react js)

I wanted to render chunks of records, I have already fetched 100 records from API at a time. I have added load more button to render 10 records at a time. constructor(props) { super(props) ...
0
votes
1answer
21 views

I have difficulty in deriving children from a Promise

There are list. I need to find Item 3 element and click on the '2' button in this element. What can I do it? html: <body> <div class="list> <div class="item"> <div&...
-1
votes
1answer
16 views

How can I setup different environments for my production and development environments for Firebase in my react native app?

I’m extremely new at this, so please try and be as elaborate as possible. Thank you. P.S If you could point to some resources, that would be great
0
votes
1answer
11 views

Why google map doesn't appear

I am working with google map reverse geocode and my map doesn't show in my website. I copy my sample code and its working, and when i will paste it in my website file(with templates) its not showing ...
0
votes
0answers
6 views

Using href SMS protocol to send sms is not working correctly on Samsung device

I am trying to populate SMS body on mobile messenger apps when the customer clicks on a button. The text I need to populate consists of a short description and a url link. Here is what I have tried ...
0
votes
0answers
12 views

Laravel Mix Webpage Error Linux DEV or PROD

Ok I feel like I'm hitting a weird timing bug here... albeit I don't webpack often but have been trying to get into the habit. Basically just try to have a public css/js script private css/js and ...
0
votes
2answers
43 views

how to update state in other component

Hey I'm still new in react natve and I have a custom checkbox wrapper in my react native project class CheckBoxWrapper extends React.Component { constructor(props) { super(props); ...
0
votes
1answer
14 views

some elements in iframe is not loading

I'm using an iframe to load an external website to my webpage. iframe successfully loads the website. Then I compare the dom with the actual website dom. But I can see that some elements(very few) are ...
0
votes
3answers
49 views

Getting parent elements

JS <script> $('.btn').click(function(e){ target = e.target; parent = target.parentNode.parentNode; console.log(parent); }); &...
0
votes
0answers
10 views

How to put ckeditor 5 toolbar at the bottom?

I am using the Classic Distribution of Ckeditor 5. Currently I am using this code to set up my ckeditor WYSIWYG. ClassicEditor .create( document.querySelector( '#cdc_content' ),{ ...
0
votes
0answers
7 views

PCF deployment using create-react-app is failing with http 403 error

I have created a simple react application using create-react-app. When I am trying to deploy to pcf post I run npm run build I am getting http 403 error but deployment is successful. Kindly guide
0
votes
0answers
7 views

How to log events to Datadog in index.hbs file

I need to capture some events and send info to Datadog. I found how to set up script <script type="text/javascript" src="http://www.datadoghq-browser-agent.com/datadog-logs-us.js"></script&...
-1
votes
1answer
26 views

Jquery add Active class if equal to the current URL

How to modify the following code so that it will only add active class to the exact current url. Currently when the url is http://localhost/traineval/training, it also add active class to http://...
-3
votes
0answers
29 views

Responsive Table and Pseudo CSS Element

I am trying to make html tables responsive.I found an example you can check down below http://codepen.io/team/css-tricks/pen/wXgJww?editors=1100 If we explain briefly how to do is that: Display ...
0
votes
0answers
6 views

Draw multiple rectangles on canvas overlay over a video, every second according to coordinates stored within an array of objects

So I have a video upon which I must draw rectangles over multiple faces at the same time. Those rectangles must move according to the movement of those faces. I have an array which stores the info ...
2
votes
2answers
54 views

Why is it a race condition in the following code?

I have the following code ES Lint marks as a race condition: const fillPersonPositions = async (person) => { person.positions = await getPositions(person.id); }; Full error: Possible race ...
0
votes
0answers
5 views

Are selenium browser drivers (Chrome, Firefox, IE, Edge, etc) for node.js compiled OS arch or for actual PC processor arch or installed OS arch?

Reading about Node.js's os.arch(), it says: returns the operating system CPU architecture for which the Node.js binary was compiled. Possible values are 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc',...
0
votes
0answers
26 views

How to make tag attribute ID in HTML unique not to override it on your Jquery?

I have a unique ID on my HTML and i am referencing more than once to my J query document. Each time when i try to access that element ID it override to other ID and causing data not to orchestrate it ...
1
vote
1answer
20 views

React native function auto submitting to firebase?

function submit(email, password) { FirebaseAPI.createUser(email, password) } export default function LoginScreen() { const [email, onChangeText] = React.useState('Enter Email'); ...
0
votes
0answers
9 views

Update env.js file using powershell

i need to update a url in env.js using powershell can anyone help me in updating the file. below is the snippet of my env.js file function (window) { window.__env = window.__env || {}; // ...
0
votes
0answers
6 views

How to embed google secure shell extension inside an app?

I have two machines; A is a Node.js server and B is a client machine. I'm using Node.js server only as backend server and renderings of the application are done on the client side with React. I want ...
0
votes
0answers
18 views

How to minimize the speed effect of loading jQuery with a star-rated voting

Recently, I implemented in 10,000+ of my webpages a voting system based on star-rating and jQuery. It works ok, it's cool, but Google started to warn me about a lack of speed ("FID issue: longer than ...
-4
votes
0answers
19 views

Problems when using modals [on hold]

When I click on cell A1-3, my notification panel appears, but then the page body will be spaced (as shown in the picture). Please show me how the cause of this problem!
0
votes
0answers
10 views

problem with using vue.js rouging and mixin

Vue developers. Now I'm trying vuebnb tutorial and have a problem with routing and mixins. I tried to assign data before entering the router using beforeRouteEnter guard, but it seems like my template ...
0
votes
0answers
9 views

change infoWindow background-color

i have a google map with multiple marker. and i have a gmap info window which is opened after user clicked the marker. i intended to set full different background color for each type of marker by ...
0
votes
0answers
9 views

Trouble to change route programmatically in React Router version ^5.1.2

I am having trouble to change the route programmatically using ReactRouter version ^5.1.2. I have wrapped the component with withRouter HOC from react-router-dom library so I can access the history ...
1
vote
3answers
29 views

Disable numericTextBox onClick radio button click

I have radio button and numericTextBox. I want when radio button ="y" the numericTextBox will not disable. I'm currently trying but not working well. I'm using onClick="consign()" here. Is it I'm ...
-4
votes
0answers
17 views

how to intercept a for loop in between in JavaScript [on hold]

Is there a way by which I can intercept a for loop n javascript and do something. Say it reaches at 5 and i will print "hello". what could be done? how can i measure that when inside a loop, it ...
0
votes
3answers
42 views

How to check if string array only contains empty strings

I am currently looking for a solution how to check a string array with only empty strings. Is there an efficient way to achive this behavior? ['', '', '', ''] // This should be true ['', null, null, '...
-1
votes
0answers
7 views

tslint error when trying to import and destruct from unknown object [duplicate]

I have a module A that generates an object with a function //moduleA.ts export default someFunc({A:'a',B:'b'}) and a moduleB that imports it with destruction //moduleB.ts import {A} from './...
0
votes
0answers
17 views

npm run dev execution webpack error, My webpack is newly installed

My webpack is just installed, the following is my project environment: webpack.config.js const path = require('path') module.exports = { // 打包模式 mode: "development", // 打包入口文件 entry: ...
1
vote
0answers
16 views

getting System.Net.Http.HttpRequestException: 'An error occurred while sending the request' when trying to save data with backed code

i am getting this error when trying to save email and password from my clients device to node js backend during emulation. i will attach image of error. this is my first backend so im still learning. ...
1
vote
1answer
21 views

How do I get the key of a value in a Typescript Record

Here's the code: export type Period = 'dy' | 'wk' | 'mn' | 'qt' | 'yr'; const periods: Record<Period, string> = { dy: 'Day', wk: 'Week', mn: 'Month', qt: 'Quarter', ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞