October 21, 2024
Chicago 12, Melborne City, USA

jQuery

jQuery is a JavaScript library. jQuery is a popular cross-browser JavaScript library that facilitates Document Object Model (DOM) traversal, event handling

jQuery

Jquery TreeSelect Post Data

https://github.com/dipson88/treeselectjs Using the package I mentioned above, I created a select structure in the treeview with jquery. <div id="my-treeselect"></div> const domElement = document.querySelector('#my-treeselect') const treeselect = new Treeselect({ parentHtmlContainer: domElement, value: [], options: data }); What I want to do is to post the data I selected in the my-treeselect div with an html form.

Read More
jQuery

Using jquery toggle() method inside JSX

The situation is: the project is undergoing a react upgrade process (from 0.14.8 to 17.02). Jquery version remains 3.5.1. One of the UI elements has a popup toggle which is implemented like this: const overlay = ( <div className="type-selector"> <button onClick={() => $('.popover-container').toggle()}> <img src={'someicon.png'} /> </button> <div className="popover-container"> <Button onClick={() => next('ONE')}>Option 1</Button> <br

Read More
jQuery

I want learning how to make simply ruler (measurement) on Leaflet

I want create simply ruler based on example below: I know many plugin about measurement in Leaflet, but for some reasons, I want make itself without plugin. I need advise and help for this. This my function code: var markersRulerGroup = L.layerGroup(); markersRulerGroup.addTo(map); var tooltipRulerGroup = L.layerGroup(); tooltipRulerGroup.addTo(map); var rulerIcon = L.divIcon({className: 'bi bi-dot text-ruler-map',

Read More
jQuery

Requesting Notification permission token with Firebase Cloud Messaging

I’m trying to request a Notification permission token with Firebase Cloud Messaging with JavaScript. My current code works, but as explained in the code comment, there seems to be a strange behavior regarding the steps. What should happen: User clicks on send reminders html button, browser asks for notifications permissions, user clicks on allow, user

Read More
jQuery

Problem with DataTables.net FixedHeader Headers Shifting On Scroll

I worked with ChatGPT 4o to create a complex DataTables.net proof of concept based on the needs of my client, which includes the following DataTables.net plugins and functionality: FixedHeader Row Grouping Child Rows Row Footer Multi select and select all In the example code/jsfiddle provided, each of these are highlighted with a different color for

Read More
jQuery

JQL query in Jira working sometimes, and sometimes not

In our Jira boards, we want to be able to filter FE and BE tickets by using the Quick filters. The tickets have a prefix of: "FE: (title)" or "BE: (title)". My 2 queries are: summary ~ FE and summary ~ BE Strangely enough, the FE one works, while the BE one – no (showing

Read More
jQuery

HTML, CSS, JQuery: Size doesn't change when using .css()

I’m trying to make a dynamic element using jQuery, CSS and HTML. When I click on it, the function to resize the element gets executed and works properly, also revealing the "close" icon. But when I click on the close icon, the function to close the panel gets correctly executed BUT the element won’t resize.

Read More
jQuery

script tags inside DataTable table's html structure is not executed

I just found out that script tags inside DataTable table’s html structure is not executed. jQuery v3.7.1 bootstrap v5.3.3 DataTable 2.1.4 I tried the following on the script tag within the table html structure: <table class="dataTable ..."> <thead></thead> <tbody> <tr> <td> <div class="element"></div> <script> $(function() { console.log("this log won't execute"); }); </script> </td> </tr> </tbody>

Read More
jQuery

Kendo Grid White Space Issue on Scroll in Firefox after Adding “Back to Top” Feature

I’m facing an issue with the Kendo Grid where white spaces appear when scrolling in Firefox. The grid works fine in other browsers. This issue started occurring after I implemented a "Back to Top" feature. It seems that the grid is unable to calculate its height dynamically during scrolling, which leads to rendering issues. Below

Read More
jQuery

Create a dynamic BS list group using jQuery

var jResult = [ { "JobID": 3, "JobTitle": "DBA", "PostingURL": "https://www.google.com", "PostingText": "Posted at Indeed", "StartDate": "2019-01-14T00:00:00", "EndDate": "2024-12-31T00:00:00", "Active": true }, { "JobID": 1, "JobTitle": "UI Designer", "PostingURL": "https://www.yahoo.com", "PostingText": "Posted at Indeed", "StartDate": "2019-01-14T00:00:00", "EndDate": "2025-02-28T00:00:00", "Active": true }, { "JobID": 4, "JobTitle": "Project Manager", "PostingURL": "https://www.stackoverflow.com", "PostingText": "Posted at Indeed", "StartDate": "2019-03-25T00:00:00",

Read More