1,033,663 questions
0
votes
1
answer
23
views
How can I properly add an event listener to a series of asynchronous functions in Javascript/JQuery?
I'm struggling with the order of operations with asynchronous functions and event listeners in Javascript. I have a script with a function that fetches a list of publicly-traded companies from an API ...
0
votes
0
answers
8
views
Tab link issue: Occasionally, the link may not function properly
I experienced an issue—the tab works almost 90% of the time, which brings you to that content. Sometimes, the clickable tab brings me to the home page. Can someone please tell me why he is doing that? ...
1
vote
0
answers
21
views
How to download images to pdf using html2-pdf
I am trying to download pdf with my DataTable records each record have download report button while hit on that button I want to download the pdf with respective row data so I'm using html2-pdf ...
-2
votes
0
answers
32
views
Is it possible to convert HTML to .CDR in .net Core? [closed]
I want to convert an html file to a .cdr (CorelDRAW) file. Is it possible using .net core or jquery / react ?
Anyone can suggest if is there also an option available for converting .pdf to .cdr (...
0
votes
0
answers
17
views
Filtered queries not responeding to page path
I am writing a product filter, and ran into this issue.
I have 2 different attributes of my product filter:
Tilt -- as a checkbox with "Yes" or "No", and Multibrand Compatible -- ...
0
votes
0
answers
35
views
slide two divs by clicking one link [duplicate]
I would like to implement this CSS-Only Carousel from this link: https://codepen.io/chriscoyier/pen/XwbNwX. Instead of just one I would like two Carousel that are triggered at the same time by ...
-3
votes
1
answer
52
views
Code not working on website (working fine on Codepen) [closed]
I have some code for rotating circular text on my website that was working fine until recently. Now I am getting some error messages and the text is just displaying as normal static, horizontal text. ...
-5
votes
0
answers
36
views
How to send data to a PHP backend using jQuery AJAX and update the DOM? [duplicate]
I am trying to send data to a PHP backend file using a jQuery AJAX request. After the data is successfully sent, I also want to update a specific part of the page (a .demands div) with the response. ...
-3
votes
0
answers
49
views
Using daterangepicker to date range and single days without double clicks
I am working on a beach reservation system and I need a daterangepicker which allows users to select a date range. But, the problem is that if a user is interested in selecting only one date or just a ...
0
votes
1
answer
32
views
How to properly size and center a DataTables table on desktop while maintaining alignment between header and data cells?
I am using a DataTables-enhanced HTML table for sorting and to enable horizontal scrolling on tablets and mobile devices. This setup works well on smaller viewports, where the table is horizontally ...
0
votes
0
answers
20
views
Moodle: Cannot open modal to enroll user into a training
Cannot enroll user(s) through enroll button on course.
Some info:
Moodle 4.5 (But I have has the same problem on 4.3)
Site administration > Development > Debugging : Development mode = on
1 ...
-3
votes
0
answers
35
views
React is ignoring / not executing DOM modification by JQuery or javascript [duplicate]
I have a
App.jsx file
function App() {
return (
<>
<small>Date is<span class="date"></span></small>
</>
)
}
export default App
...
-1
votes
1
answer
16
views
Modifying Bootstrap 5 model content, closing and reopening
I have a modal using the Bootstrap 5 framework.
I post a form that is contained within it to a JQuery ajax call and then modify the modal content based on the result from the JQuery AJax call, then ...
-2
votes
0
answers
49
views
Ajax not calling a c# function [closed]
I am trying to call a C# method from my javascript code that when the user presses a button it updates the query variable and gets back a new table for those dates. but my javascript dosnt call the C# ...
0
votes
0
answers
8
views
Bootstrap tabs not working in Django templates if generated dynamically using dictionary data
I am using Bootstrap4 to generate tabs in django template. The id attributes of the nav-link and the tab-pane are generated using a dictionary. Here is the code
<div class="col-md-3">
...
1
vote
0
answers
22
views
Bootstrap - tabs - back-button functionality for tabs within tab
I'm using Bootstrap navs to have tabs on a page, with two primary tabs and within one tab there are several more tabs (subtabs, I'll refer to them as). Using a hash they're also directly linked, and ...
1
vote
2
answers
72
views
How can I implement a "Flash in" animation?
Currently I have a div that has the class "hidden" (css, display: none). I want it to add the class "full-size" after a set ammount of time with javascript. However, how can I ...
0
votes
1
answer
44
views
jQuery Selectize.js with ajax data loading
I am trying to load data for jQuery plugin Selectize.js via ajax, but I am not able to delete options loaded with previous calls from dropdown element.
I am stuck with this code where I am able to ...
0
votes
2
answers
51
views
Form generating twice in Apps Script using JQuery
While creating a small WebbApp with Google Apps Script and JQuery, I am struggling with a form which generates itself twice...
My app is composed of 4 files below :
Code.gs
function doGet(request)
{
...
0
votes
0
answers
38
views
Unable to reference NPM package globally
webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: '/src/index.js',
output: {
path: path.resolve(__dirname, '..','..', 'public_html'...
0
votes
2
answers
55
views
if window width less than X, do something if overpasses X on resize
I'm trying to add a rule that goes as: If the window width is less than 991 and resizes to something more or equal to 992, then do something.
I want to remove the class 'opened' from a megamenu only ...
-1
votes
0
answers
49
views
Owl Carousel 2 - slider showing part of next image on active slide
I am using Owl Carousel 2 for my slider, but am encountering a slight bug.
At screen widths below 768px one slide is shown. Above 768px 3 slides are shown. For some reason if the screen is refreshed ...
0
votes
0
answers
59
views
HighCharts Incorrect locale information provided
Since a week or so my Charts are not functioning.
My chart code works well on jsfiddle
https://jsfiddle.net/80nedgt6/1/
but it's not rendering on my php code.
So I suspect it is something wrong with ...
0
votes
0
answers
17
views
Wicket Datepicker Timezone 'ui-datepicker-today' and 'ui-datepicker-current-day'
In my application, we are using Wicket and for Date picker I want to apply the following css class �?ui-datepicker-today’, to a 'td' tag that already has a css class �?ui-datepicker-current-day’ i.e. ...
0
votes
0
answers
28
views
Bootstrap Selectpicker Not Displaying old() Value in Laravel Form
I am using Laravel's Form::select along with Bootstrap's selectpicker in my form. My dropdown is supposed to display the old value (retrieved using old() function) after form validation fails. However,...
2
votes
3
answers
55
views
Jquery Range Slider Show and Hide Div
I am Trying to Show() and Hide() Divs but this way only works going forward and not backwards.
I'm trying to Change the Div with the range Slider and HIDE any other Div. I tried ui.value minus 1 Hide()...
-3
votes
0
answers
18
views
jQuery SET Data Attribute Val on Click [duplicate]
Let's say I have an on click jquery function, how do I go about SETTING a data-ATTR="VALUE" ON CLICK?
For example:
data-theme="lightmode"
On click, I want to set this value of ...
0
votes
0
answers
20
views
How to use DateTime data from Ajax in Tabulator?
New to Tabulator, however, I've managed to get a sample html/json script to communicate correctly with a PHP backend via Ajax/json callbacks.
I can see data come through, view and edit etc for numbers ...
0
votes
0
answers
17
views
event.originalEvent.propertyName not working in any none Chromium browsers
jQuery
$('body > header').on('webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend', function(event) {
if (event.target && event.originalEvent....
0
votes
0
answers
33
views
400 Bad request in jQuery AJAX [duplicate]
I am sending form data from jQuery AJAX to ColdFusion CFC. It is working fine with 100 form parameters. If I send more (more inputs from form), it is throwing 400 bad request in the response. I am ...
0
votes
1
answer
30
views
How to extract the directory (e.g., es/ or pt/) from the pathname to dynamically update the heading in a custom web component?
I am working on a custom web component and want to dynamically manipulate the heading in my Carousel component based on the directory in the URL pathname (e.g., es/ for Spanish or pt/ for Portuguese).
...
-1
votes
0
answers
55
views
Changing an input's value programmatically doesn't change the value [closed]
I'm making a bookmarklet for myself, to provide custom behavior on a website I use often. It's not my website, so I'm basically running my code externally.
I've run an issue where an input doesn't ...
0
votes
0
answers
40
views
Data Tables Refresh on Edit / Update
In my project, I have been using Data tables to show the list of data from the database per required view.
So in the view, I have this code
<div class="table-responsive mt-4" style="...
-4
votes
0
answers
35
views
Why an array don't be considered as an array in my $.ajax function [closed]
I am facing a problem when trying to print key values of objects which stored
in an array that itself a response from a url api when calling by $.ajax function.
Simply the problem array don't be ...
0
votes
0
answers
20
views
Why Doesn't $scope Work as a Selector, but a Class Name Selector Does?
I'm trying to use $scope as a selector in my code, but it's not working as expected. However, when I use the class name selector, like ".element-class", it works fine. I'm specifically ...
0
votes
0
answers
19
views
ReferenceError Error when trying to import anything other then Jquery
I am trying to make jquery globally available on all pages.
I am using Vite to build the js bundle, I works well when only import in files are jquery.
When i add anyhting other then jquery, like ...
1
vote
0
answers
21
views
How can I use jQuery on Bootstrap navbar to scroll into section on another page? [duplicate]
I have a website which uses Bootstrap navbar and jQuery to scroll between a few sections (in index1.html).
Now I added another page to the website (index2.html), but if i use jQuery smooth scroll
the ...
0
votes
1
answer
42
views
How to remove striping from JS Datatables after applying custom styling
To remove striping on Datatables you add:
stripeClasses:[]
But I have the following styling added to change background cell color depending on the value of the cell:
var table = $('#...
0
votes
0
answers
31
views
Wordpress Content Security Policy blocking external Mailchimp event handler
I have set up my CPS & whitelisted all my scripts with a randomly generated nonce. The current CSP seems to work for other scripts, except it blocks the embeded mailchimp
email subscription event ...
0
votes
0
answers
45
views
how to avoid ( using pure javascript) setting cookies which are set by response headers set-cookie
I have a html page, to which I would like to insert a .html template which is stored in a separate file. I have done it like this:
index.html:
<html>
<body>
<script src="js/...
0
votes
2
answers
54
views
Use JQuery to format date in a paragraph to a different format
I have a page with blog posts on so I can't adjust the output (no access to server-side code) but I want the date in Nov 4, 2022 format.
The HTML looks like this:
<span class="post-time"&...
0
votes
0
answers
36
views
Display real-time element from one page to another in same domain using Jquery load
I'm looking for a solution that can extract an element from one of our pages (on same domain) that constantly updates to a new page.
One constraint is the back end web-server that is displaying the ...
0
votes
0
answers
46
views
I need block/unblock feature for our app but "Unblock" part is not working
I have an issue with my code, and ChatGPT and Microsoft Copilot don't fix my issue. Even I have sent all the codes and screenshots.
Here is my HTML code.
<!-- MESSENGER -->
<...
0
votes
0
answers
30
views
Shift + Tab Backward Navigation Skipping Elements
I'm experiencing an issue with keyboard navigation on my website. When I use the Tab key to navigate forward through interactive elements, everything works as expected (I can tab through <a> ...
1
vote
4
answers
105
views
How to make the entire checkbox module clickable in Bootstrap 5
I'm trying from a long time to make the whole module clickable, not only the checkbox or the label.
If you search on stackoverflow about this you can find the question
How to Make Entire Custom ...
0
votes
1
answer
29
views
Locating empty <select> fields with a specific class, which are empty
I have multiple select fields on a page, some of them have a required class.
On a click of a button, I would like to add a fieldError class to those ones that remain unselected.
<select class="...
-1
votes
1
answer
83
views
Differences between HTML injection methods?
Is there a difference between html element injection methods? In terms of efficiency, ease of use, security...?
Usually, when I inject html, I do something like this:
const myDivInnerHtml = '<div&...
0
votes
1
answer
44
views
CSS/JS pagination where the number of pages is automatically discovered from a specific folder on the server
I'm quite new to CSS (and unfortunately ignorant of JS) and would like to know if this is possible:
I would like to code script for CSS (or JS/jQuery if someone could help me with it) for the ...
0
votes
0
answers
22
views
Is there any textbox available which could work like a free textbox and also work as dropdown list in node.js or jQuery [duplicate]
I want to show options on mouse click in textbox like a dropdown list.
And also I could enter my own text in free textbox (If option is not showing into the listing) using node.js or jQuery.
dropdown ...
0
votes
1
answer
48
views
datepicker set focus but do not open
I'm using bootstrap 5 and have a modal with 3 tabs, in one of them I have a date with datepicker on it
I want to have focus on the date when the tab opens, but I do not want the datepicker to be open.
...