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. 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...
  2. 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()...
  3. 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(){...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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 =...
  10. 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 =...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. edwardsmarkf

    JavaScript using "import from" dynamically

    hello - i have used the following syntax a number of times with much success: let script = document.createElement('script') ; script.src = '/js/myJavaScript.js' ; script.type = 'text/javascript' ...
  19. Y

    JavaScript Find The Length Of A String

    Hi, I've just started to learn JavaScript, being a beginner. In order to qualify myself for the proper boot camp, I must do a kind of online course first and pass some challenges. I've got a bit stack in a very simple situation. My problem is: Create a new variable called stringLength. Use...
  20. J

    JavaScript How to select area value from geojson using javascript

    I'm trying to right a javascript function that selects a polygon based on area value. The criterea is to select largest value if the heighest area value of a feature collection plygons is <= 20. Else, if the smalest area value a feature collection plygons is > 20, to select the smallest value...
Back
Top Bottom