Skip to main content

Questions tagged [pure-js]

PURE is a simple and ultra-fast templating tool for generating HTML from an HTML template and JSON data. DO NOT USE this tag if you want to indicate NO LIBRARIES are used.

pure-js
2 votes
1 answer
140 views

Virtual scroll implementation causes scrolling down to scroll to the end

I tried to write a virtual scroll in pure JS, but when I scroll down, the scrolling does not stop. I can't figure out what's causing the infinite scrolling. To emulate scrolling, I use two containers, ...
Serj's user avatar
  • 23
0 votes
1 answer
134 views

PureJs Zoom meeting SDK: After joining host is not visible in iOS safari Browser

I am creating a website where implementing zoom meeting sdk in PureJS. Everything works fine on chrome, Mozilla but when joining the meeting on Safari, Host video is not visible to Host and when ...
Rahul Gupta's user avatar
-1 votes
2 answers
125 views

Move mouse in screen and emulater a "Click" with PURE JS

i trying make a code pure JS to move mouse in screen and simulate a click from user. This not work for me: getElementBy....click(), forms[x].submit(), etc. i need a function with pure js and that ...
luizfelipetx's user avatar
0 votes
2 answers
80 views

Recursive function to change opacity (efect fadein with pure js)

Why this code is not changing opacity value in progress? function fadeIn(arg_idElemHtml,arg_opacityValue) { if(arg_opacityValue < 1){ var objHtml = document.getElementById(...
mdromed's user avatar
  • 69
1 vote
0 answers
25 views

Abort trap: While running Zoom web SDK on production server

When I run zoom web SDK on my production server at that time having this error Script I am running is: NODE_ENV=prod BABEL_ENV=development node corp.js --corp --https --host 0.0.0.0 I tried to ...
Monali Bhagat's user avatar
1 vote
3 answers
45 views

Working on transforming array object data where it's taking same value for each indexes while converting it to other format

I have an issue transforming array object data into required format. With my solution it's transforming it correctly but it's copying same last index data for each item in array. Input: let data = [ ...
Alpesh Nakrani's user avatar
1 vote
0 answers
49 views

How to access event.clientX outside of window function? [duplicate]

I tried to use the event.clientX outside of window function. But it says xAxis is not defined. Can have an way to get it? My code below, window.onclick = function(event) { let xAxis = event....
Md. Imran Ali's user avatar
0 votes
1 answer
327 views

pure JS - get parent DIV ID dynamically through the onlick event

How can I get the ID of each main DIV through the onclick event? I need the element to be found without using static names in the onclick events like the example document.getElementById('fruits'); . I ...
brut65's user avatar
  • 408
0 votes
1 answer
76 views

removing elements from array which are not numbers using pure js

I'm stuck with one task, hope you could help me I have to return an combined array which consist only from numbers. So if the element has got except for number another character, such element should ...
Myroslava's user avatar
  • 1,491
0 votes
1 answer
78 views

reset select option while dependencies is default

I use pure js. I'am having difficulty for reseting the select box to default. As you can see on the code below I want to make two select depend on each other. If I choose this it will show only this, ...
Wahyu Agung's user avatar
-1 votes
1 answer
67 views

How to read width of css element with javascript?

So I want this VarDisk2 element to disappear after VarDisk1 width reaches more than 70. How can I do this? <script> var VarDisk1 = document.querySelector("Disk1"); var ...
Nikoloz Mchedlishvili's user avatar
1 vote
2 answers
5k views

How to call external api's data from backend to frontend side?

I'm trying to weather Api app using node, express and Axios in backend part without using any framework like Angular or react. I have 3 main file for my codes. index.html customer.js (for front end ...
CeydaU's user avatar
  • 11
1 vote
0 answers
634 views

how to create simple pagination for change folder html + pure JS

how to create change folder pagination? e.g.: Under folder have some sub-folders, eg: 1, 2, 3,..., future will add A1, A2, A3, A4, ... also will add another name of folders B1, B2, B3, B4, C1, C2, C3 ...
Momo Diyer's user avatar
4 votes
0 answers
24 views

Difference between req.param = function(){} and req.param = function param() {} [duplicate]

I was looking into express.js repository and noticed that, for example, authors created req object and his methods by using this code: req.param = function param(name, defaultValue) {}... but in some ...
Олег Войтинський's user avatar
-2 votes
1 answer
260 views

Trying to rewrite jquery ajax with pure js fetch. Fetch get body

On a Laravel driven site, there is a jquery script that controls the quantity and total price of an item in the cart. I am trying to rewrite jquery ajax in cart with pure js fetch. However, there is ...
SGA's user avatar
  • 13

15 30 50 per page