3,333 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Dani

Ashamedly, I'm a jQuery user with very weak Javascript skills. However, I noticed that Google Chrome DevTools console is giving me the following warning: > Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. …

Member Avatar for Dani
0
2K
Member Avatar for jayashree10

I have heard a lot of interviews ask this question on Hoisting in JavaScript. What is this hoisting in JavaScript? Is it the same as hosting? It would be kind if someone could help me with their knowledge.

Member Avatar for AndreRet
-1
37
Member Avatar for mexabet

I have a two-step login form. In the first step, I have "username" as "id" and "name" of the text input. I also have "password" as id and "name" of the second input field, where the user is prompted to enter username and password. In the second step, I have …

Member Avatar for Dani
0
56
Member Avatar for bprosic

Hi everyone, here is code in React. I dont know how to re-render this array prototype map in React? import React, { useState, useEffect } from 'react'; const Help = () => { const initialObject = [ { fileName: 'Horizon.txt', fileSize: 450, }, { fileName: 'Something.png', fileSize: 2720, }, ], …

Member Avatar for bprosic
1
88
Member Avatar for sam023

i want to know is there any inbuild function to add spaces in javascript after particular interval..!!? there is string '00009999' i want to add blank space 0000 9999 after every 4 digits.?

Member Avatar for Dani
1
33K
Member Avatar for Krisha03

Hello There, I am looking for MUI React-based admin template in the TypeScript version for my project. Can you guys suggest some React Admin templates that are comprehensive and easy to use? I really appreciate any help you can provide.!

Member Avatar for anandpatel04
0
201
Member Avatar for badmullah_1

hi I need your help if you know JS to fetch 3 values //value of JID2 input //value of slider //value of the NOTES but since JS is new to me i would need your help please. it is a form with a few controls that user can check , …

0
102
Member Avatar for Q8iEnG

Hi guys :) Is there a chance to disable these two things from my site? (View Source) and (Ctrl + C ) please, give me few minutes from your time and help, i'll be much more appreciated :) thanks in advance :)

Member Avatar for π™ΉπšŠπšœπš–πš’πš—πšŽοΌˆγƒ€γƒΌγƒͺン)
1
14K
Member Avatar for Mr.M

Hi DW. I want to get a message only on that specific targeted tab id. If the messege is sent to tab id 2, it should run a script under tab id 2 to update that page displayed or for simplicity log on tab id 2 console the message. The …

Member Avatar for Mr.M
0
167
Member Avatar for Thropian

I'm making a html/js game, and attempting to add on screen controls for mobile use. However, I have found that pressing and holding on a button on mobile will highlight the button as though it is pressed but no onMouseDown event is fired and the page is simply waiting for …

Member Avatar for Thropian
0
2K
Member Avatar for iscjm

This button page implements "window.open()" to open a new window. I would like to ask how I can automatically bring the button page to focus if I am browsing another page and the button page is not closed. I don't want to use "window.open" again to bring the button page …

Member Avatar for rproffitt
0
134
Member Avatar for patk570

Hi Everyone, I am looking for a way to add a username to confirm a seat choice for certain weeks, I already have the PHP Code to confirm the seat when choosing but on the image i would like for it to display the username so other people know its …

Member Avatar for rproffitt
0
1K
Member Avatar for helloworld2021

hi everyone, i want to display content of div into sweet alert message and here is my code <?php echo '<script> var swal2container = $("#swal2container").text(); setTimeout(function() { swal({ title: "Alert!", text: swal2container, type: "error" }, function() { window.location = "index.php"; }); }, 100); </script>'; ?> <div id="swal2container">test</div> i still cant …

Member Avatar for jeet_4
1
1K
Member Avatar for r4ds

Hello. It is something very simple for someone who knows javascript. How to capture the text content of the pressed element? Important is that the page is built with PHP. <li><a onclick='cat();' href='#'>Text 1</a></li> <li><a onclick='cat();' href='#'>Text 2</a></li> <!-- Above PHP, important: text content element is dinamic--> <script> function cat() …

Member Avatar for r4ds
0
173
Member Avatar for Charlotte_4

Hey i'm trying to change the image without the id. We can't change html so i can't use an id. I have this: <figure> <img src="images/start.png" alt="start"> <figcaption>Nog geen thema gekozen</figcaption> </figure> And in my script: document.querySelector('src') = "images/mode.png"; I don't know how to select it and change it.

Member Avatar for Dani
0
402
Member Avatar for matei_

Hello, As the title says, my question is: how I can get the values for specific ID? For example, my plugin creates a PDF that automatically fills in with information that I get using API from my CRM platform. So, what I am trying to do now, is that in …

0
115
Member Avatar for Rabana_1

def Count_Total_Words(str1): total = 1 for i in range(len(str1)): if(str1[i] == ' ' or str1 == '\n' or str1 == '\t'): total = total + 1 return total string = input("Please Enter your Own String : ") leng = Count_Total_Words(string) print("Total Number of Words in this String = ", leng)

Member Avatar for rproffitt
0
114
Member Avatar for mollyrock705

![Inked235345364566556546_LI.jpg](https://static.daniweb.com/attachments/4/b5bf788aff340f6e41ee2b6d28f1f5c9.jpg) Sample output: Enter number of guests: 40 40 guests have been invited. Enjoy the party!

Member Avatar for loveboat
0
444
Member Avatar for tonycox52

Hello everyone! I ran into a problem that when calling the API, its response comes after the code was processed and I get undefined in the response. For this, I have 2 files start.js and api.js. In start.js I call api.js and wait for a response: `const api = require("./api"); …

Member Avatar for pritaeas
-1
63
Member Avatar for Greg_11

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a …

Member Avatar for JeanMilburn
1
342
Member Avatar for bprosic

Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket …

Member Avatar for Diafol_2
1
1K
Member Avatar for SabithaSri
Member Avatar for Martin_42

Hi all I'm trying to put together a room hire site, to be used by the lettings clerks, for our local Quaker meeting house and I've hit a couple of problems. I have an HTML form that, using data from a MySQL database and some JSON and JavaScript, when a …

Member Avatar for Martin_42
0
257
Member Avatar for Danny159

Hey guys, I have the following code... And what I want it to do but cant get it to do is add up all the price fields and change the sum every time a number is changed or a new line is added... but its not working? Can anyone see …

Member Avatar for AndreRet
0
4K
Member Avatar for Priti_P

Hello, Sorry,This may be a silly question : How to assign ajax return value to javascript array? for example what I want is, I have declared an array in javascript as `all_skills = new Array();` and after that called ajax call in which I want to save the return value …

Member Avatar for Dani
0
12K
Member Avatar for jonsan32

I have 5 items listed within a 200x200 box, and would like for the details of the clicked item to appear as either an overlay that spans only that box or as a div that completely replaces the original 5 options. Kinda like an accordion menu, but with the nav …

Member Avatar for jonsan32
0
729
Member Avatar for Lev_3

Hello people! :) I'm quite new in the programming world. I'm really interested in programming from the time I found that there's coming a game called Hytale, and **I would love to be able to make mods for it**. So basically I have a book that should introduce me to …

Member Avatar for hussainmujtaba
0
918
Member Avatar for ramkrishna.dhakad

onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key. i am using hindi indic input 3 toolbar to type in laptop. my javascript code is function validate(){ var string=event.key; c = string.charCodeAt(1); var xyx=String.fromCharCode(c); alert(xyx); } My html text area code …

Member Avatar for Dani
0
626
Member Avatar for haggis-man

A client would like me to implement spreadsheet-style form traversal using the arrow keys on a keyboard, i.e. left arrow would submit the entry for that field and then move left by one field on the form. The form is managed by my PHP code. Does anyone have a [U]browser-independent[/U] …

Member Avatar for Angie64
0
6K
Member Avatar for jonsan32

I'd like for my page (https://fiftyallstars.com/tour.html) to load, and for the TOUR to start automatically. Right now visitors must click a button with id "starttour" Here's what I've added so far, but it doesn't do the trick: <script> $(function () { window.onload = $('#starttour').click(); }); </script> <a class="start-tour" href="#" id="starttour"><span …

Member Avatar for Biiim
0
1K

The End.