Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

javascript

  1. J

    JavaScript Making a web map with leaflet plugin. Why cant I get a text box to display when certain coordinates are clicked?

    Hey, Im trying to make a web map, and I want a box to pop up when a certain spot on the map is clicked. I think my code is fine & when i click the location, i recieve a 'Click event fired!' in the console log. But the box is never displayed. Github link Any help would be great. I just cant...
  2. robisy

    JavaScript New value in google email script

    function sendemail(){ var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheetname = "Sheet1" var sheet = ss.getSheetByName(sheetname); // parameters to get a data range var datafirstrow = 2; var dataColU = 4; // Column D = 4 var dataColTarget = 8; // Column Z = 26 // get the last row var LR =...
  3. JosiahMaybe

    JavaScript How to be sure Javascript is run in a web browser?

    I have heard Javascript may be turned off on some web browsers. I may need like my Javascript run to be able to make a purchase from me. Is there any way I can prevent a purchase without Javascript being run? Maybe an error I could throw or a way to redirect or something? Any way to prevent...
  4. JosiahMaybe

    How to either download core.js or get docs for PrestaShop?

    So I am trying to find either a documentation of PrestaShop Javascript or how to download core.js for PrestaShop to study it. If you find like a full documentation good but if not I could study core.js to find what I like want. PrestaShop is open source and has a GitHub repository, but I do not...
  5. P

    JavaScript Function is undefined after dynamically including <script> to external JS with function

    I have an HTML file that contains a page that, upon clicking a button, should do the following: 1) A <div> panel opens up 2) That <div> panel contains <script src="scripts/record_update.js"></script> 3) The external .js file "record_update.js" contains only one function: officialRecordUpdate()...
  6. yumedoll

    JavaScript [SOLVED] Can anyone help me figure out why these specific EventListeners aren't working?

    I have this: document.documentElement.addEventListener("load", function(){ document.getElementById("loading").style.display = "block"; document.getElementById("okthanks").style.display = "none"; }); window.addEventListener("load", function(){...
  7. C

    JavaScript JavaScript Hiding All Images On Page But I Need One Always Visible

    Hi! I have this page which displays different shield colors, depending on which TEXT is clicked (Bronze, Silver, Gold, Pro or Legend). By default, the BRONZE shield image is showing along with the country flag image: Then when you click on Silver, Gold, Pro or Legend, the corresponding...
  8. Hilton D

    Answered Converting String to Number in JavaScript: Need Clarification and Code Example

    I'm trying to convert a string to a number in JavaScript, but I'm encountering some unexpected results. While I've used functions like parseInt() and parseFloat(), I'm still confused about the behavior in certain cases. Could someone clarify the process of converting a string to a number and...
  9. P

    JavaScript PING to a Server using JavaScript without AJAX

    Hi Is possible do a ping to a server and know if the server is online or offline without use AJAX? I found this code but use AJAX function pingURL() { // Getting the URL from the User var URL = $("#url").val(); var settings = { // Defining the request configuration cache: false, dataType...
  10. M

    Node.JS Code Assistance

    I'm currently working on a project where I need to implement a table filter using checkboxes, and I'm facing some challenges. I've managed to set up the basic functionality, but I'm struggling with a couple of specific requirements. I'm reaching out to the community for some guidance and...
  11. S

    JavaScript Get the value of html element within the 'dd itemprop'

    I am trying to get the value of the notarisation_url value within the 'dd itemprop' I tried this javascript code, but its not working. It retruns undefined. const els = [document.getElementsById('wrap')]; props = els.filter(x => !!x.getAttribute('notarisation_url')); console.log(props) I...
  12. developpersoft

    JavaScript How to understand js code for plugins?

    Hi There, I have problem to understand javascript code in plugins I don't know how this works all the elements symbolized without using document.getElementById to add an HTML Elements or change it But in plugins I only find The code Like this : var ap = Object.defineProperty; var lp =...
  13. J

    JavaScript Uncaught ReferenceError: displayText is not defined at HTMLAreaElement.<anonymous>

    Here's an error that has been plaguing me every time I try to add a function from within an onclick. It happens for seemingly no reason. Here is the code: export class Clickables { constructor(game) { this.game = game; this.doOnce = false; this.textDisplaying =...
  14. J

    JavaScript Click on instance of image to trigger event

    Hello I'm trying to make a Point & Click adventure game so I have multiple boxes derived from a PNG image file like so: When the player clicks on a particular box, a particular event should happen. Being a PNG the image can later be made transparent. In any case, here is the code I have so...
  15. S

    Web animations | A few questions?

    Hi, I need help for a project, where states are to be mapped graphically, see the picture in the attachment. It is about the fact that when states and variables in javascript change, this should be displayed graphically. Until now I have done it so that there is a picture for all possible...
  16. vishal

    JavaScript How can we detect when user is going back using browser navigation back arrow button or history.back()?

    I want to perform an action when user navigates from one page to another but i don't want to perform anything when user clicks on back arrow or basically goes to previous screen using browsers history. Navigation is being done normally like using anchor tags or window.location.href. I have tried...
  17. D

    PHP Simple powerful PHP library for data sanitization

    Hello, I've created a highly efficient and robust PHP library designed specifically for data sanitization. It combines simplicity with remarkable power, ensuring swift processing. This library empowers you to effortlessly sanitize diverse data types, eliminating the need for extensive manual...
  18. RealImmortal2004

    How do I add a working window(print) function to just an html table that has data from a json file?

    I've tried googling how to do this but I can't find any useful results. The code below is what I want to print. I want it to be able to print whatever is in the table and I want to be able to print certain things based on filtering. How can I print the table without having to create a linked...
  19. edwardsmarkf

    JavaScript a couple of js debounce questions

    hello all - having studied these two excellent examples: https://dillionmegida.com/p/debouncing-in-javascript/ https://www.freecodecamp.org/news/javascript-debounce-example/ surprisingly neither of them included how to pass the event information to the debounced script. here is what i...
  20. A

    JavaScript Attempting to deliver an hls stream using express, works in browser but wont play in HLS player

    I am trying to make an express server that takes rtsp(am using ffmpeg) converted to hls/m3u8 and streams it upon request(so it can later be viewed on a client).I am still learning and am not too familiar, so any and all help is appreciated - if you have any resources that could help me in this...
Back
Top Bottom