Welcome!

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

SignUp Now!

javascript-code

  1. D3x73r

    JavaScript Shopping cart problem -localstorage

    Hello guys, I cant find problem why my javascript isnt working. Problem is I think with localstorage, when I reload webpage content in cart-box should stay there but it only save first content-box that I added to cart, others disappear but their value like $ stay in total amount . And other...
  2. P

    JavaScript Help with Javascript code on a if else condition

    I have a wordpress page where I'm using a code snippet to introduce a condition to change the subtitle of a specific profile element that is being showed on the page.The theme I'm using uses the CMSMaster content composer where they have a profiles area where you can add profiles with...
  3. P

    JavaScript popup button on stop interval to scroll to bottom

    Hello, I have the following code below. This works for stopping the interval when the visitor scrolls up the page (the page is reverse scrolled and positioned to the bottom). This is a basic chat project I'm working on. What I'm attempting to do is have a popup button show up when the user...
  4. 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...
  5. 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 =...
  6. K

    JavaScript javascript fill function data from multidimensonal array

    I have some js code to make organizational chart. I made an array of id's, names, etc; I need to fill the js data array but i can't do it. This is the original code: <script> google.charts.load('current', {packages:["orgchart"]})...
  7. cno

    JavaScript Sales Data in an Array - Javascript

    I need some help please, I have a sales data for a couple of years and i want to retrieve the below information using Javascript: -The total number of months included in the dataset. - The net total amount of Profit/Losses over the entire period. - The average of the changes in Profit/Losses...
  8. SolidSnake2003

    JavaScript Adding Different Dropdown Menus

    Hello I am currently working on reviving an old fansite of mine. I have finished designing the main site elements across the whole fansite in photoshop, and have begun coding them in HTML. One of the elements I have created is a series of 3 dropdown menus for a quick navigation of the games in...
  9. ShwetankJoshi

    JavaScript Not able to delete the row from my invoice table of invoice maker website using basic JS

    Thank you! for this great content. I am making a small project of creating a invoice maker website using JS, for adding new items in invoice and deleting it i am making function with several refrence vdo's i managed to create addrow function but not able to create delete row function.also I am...
  10. 0

    JavaScript Javascript form calculation?

    Hi Guys, I need help with this calculation, im designing a form for a client that needs a MAX PRICE between two values. I'm using the javascript below but this makes each quantity 250, I need it so its a maximum of 250 Upto 24999 and then ill do another value between 25000 up to 29999 and the...
  11. K

    JavaScript Issue with textarea script?

    so im trying to create an "AUTO" WYSIWYG real-time documentation generator for VS2019 Intellisense in javascript & jquery. so i got it working, but noticed after I type "Description : " ( a keyword ) into the text box, it converts fine but THEN if i try to delete it, it keeps on adding the <b>...
  12. S

    JavaScript Getting value from a defined function variable name

    I have a function like so: var UploadMediaViewModel = (function () { const umvm = this; var blah = ""; umvm.upload = null; umvm.toProcess = []; umvm.unload = function(e) { cancel(); } umvm.canSubmit = false; umvm.submitWhenComplete = false...
  13. A

    JavaScript How to auto select month from drop down using javascript

    I have this drop down and I want to auto select the current month on page load, means when ever the user gets to this page at any time the month drop down gets auto selected to current month, can any one help me in this regard I am new to javascript, here is my drop down html code: <select...
  14. edwardsmarkf

    JavaScript promises changing question

    hello all, first time on this forum. i have serious problems trying to wrap my head around promises, so i have decided to just keep a couple of working examples around so i can refer back to those. here is an example i was able to put together: const firstPromise = (promiseInput) => {...
  15. B

    JavaScript for some reason this text doesnt show up

    aimCanvas.ctx.fillStyle = "#404040"; aimCanvas.ctx.textAlign = "center"; aimCanvas.ctx.textBaseline = "center"; aimCanvas.ctx.font = "50px Open Sans"; aimCanvas.ctx.fillText("End", this.centerLeft, this.centerTop - 20)...
  16. M

    JavaScript How do I set this timer to a specific date?

    I want to understand how this timer function works, please can someone help me? My goal is to set this timer to end: 2021.11.24 12:00 (UTC) <script> (function() { var start = new Date; start.setHours(0, 23.5, 0); //...
  17. Johna

    JavaScript Can I select an element by "role" or "data-test-id"?

    I'm trying to select an element, but the element doesn't have any class or id. This is the element: <div data-test-id="giftWrap" role="dialog" aria-label="Hybrid banner gift wrap" style="position: fixed; z-index: 680; background: rgba(0, 0, 0, 0.65); transition: height 0.5s cubic-bezier(0.26...
  18. Johna

    JavaScript Chrome extension to edit page HTML and CSS not working

    Ok, so the last question I posted I didn't put the code in the </> thing, so I'm re-asking it here. Hi everyone, I made this extension to view unlimited number of Quora pages without having to sign up by removing the sign up popup. I don't know what I did wrong, but it isn't working. My browser...
  19. Johna

    Chrome extension not working

    Hi everyone, I made this extension to view unlimited number of Quora pages without having to sign up by removing the sign up popup. I don't know what I did wrong, but it isn't working. My browser also doesn't give any errors. Here's the code: manifest.json { "manifest_version": 2, "name"...
  20. M

    Tutorial JavaScript Tutorial | 1 | Variables and console.log

    Hey! In this tutorial, I will teach you JavaScript Basics! First, please note: In JavaScript, we start variables with var! So, let's make a quick cup system with example! var Cup = true; var isDrinking = false; var disabled = false; // Let me explain. We create our first variable and name it...
Back
Top Bottom