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...
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()...
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...
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...
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...
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...
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...
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 =...
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 =...
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...
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...
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...
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...
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...
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...
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...
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' ...
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...
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...