13 questions from the last 30 days
-2 votes
0 answers
13 views
Why is alert not working in ABP framework JS file?
I have this JS file: (function ($) { alert('A'); app.modals.ClassificationTreeModal = function () { var selectedId = []; var _stocktakingSessionsService = abp....
0 votes
1 answer
40 views
jquery each function works just on first item
I use this lightweight plugin to display text continuation on hover : https://lukifer.github.io/HoverForMore.js/ I am using the jQuery each function to call all items and run this plugin on each one, ...
0 votes
0 answers
21 views
How do I use the dataset variables in this jquery code correctly? [closed]
The console log returns the values correctly, but I don't seem to be able to use the data in the rest of the script. What am I doing wrong? I've tried putting the var values into the var data = but ...
Advice
0 votes
2 replies
32 views
Is it possible to use the dataset content values in my script?
I'm trying to use dataset content in my Javascript, but I can't get it to work. Is this even possible or has the content run too late? The values are being output in console correctly. // JavaScript ...
Tooling
0 votes
3 replies
44 views
laravel real time communication
I’m trying to implement a real-time notification system in my Laravel application. The frontend uses jQuery, and the backend uses Laravel’s broadcasting system with Reverb (also tried with Octane and ...
0 votes
1 answer
35 views
Using Jquery how do I find an element by id using a regular expression
I'm using PHP8.1 and JQuery. I have a script with several links that each have an id that is a digit only. i.e: <a href="#" id="<?= $id ?>"><?= $student_name ?>&...
-6 votes
0 answers
82 views
Why date showing in wrong format in Javascript? [closed]
Here is my code: let dateStr = m.status?.match(/at (.* GMT)/)?.[1] || m.dateTimeGMT; // Parse it safely const dateObj = new Date(dateStr); // Options for human-readable format const options = { ...
3 votes
1 answer
100 views
clicking a button with JavaScript using a class and anchor text, rather than ID
I am trying - and failing - to write JavaScript to click this button: The HTML for the button varies depending on the page Example 1 from this page: <span class="a-button-text" aria-...
1 vote
1 answer
95 views
Changing input from checkbox to button
I have a jsp file which results in this HTML: <form id="paymentForm" action="submit_payment.form" method="post"> <div class="notvalid"> </...
-1 votes
0 answers
21 views
Print excel/pdf in jqgrid-php from an abstact grid
My project had too many grid pages and it was quite the mess so I decided to make one sole generic grid file with configurations and each time the same page loads different configs depending on the ...
9 votes
1 answer
754 views
Calculating distance to animate elements at the same speed
This is as much a math question as it is a coding question. Picture this scenario: ___________________ | | (#1) | Center ...
1 vote
2 answers
88 views
How can I sync row order across multiple Data-tables without triggering infinite re-sorting?
I have four Data-tables tables on a page, each displaying different financial metrics about the same set of stocks. Each table shares a common Ticker column, and every table has the same number of ...
-4 votes
0 answers
60 views
Use jquery to set hrefs or script src in a conditional way [duplicate]
To set an image's src to delay a loading of the source, you can do this with in the html <img src="#" delayedsrc="./imagesgeneral/iconhome.png" /> in the javascript $('img[...