149 questions
0
votes
1
answer
47
views
jqxGrid: Nested grid not showing for some rows in Firefox (works fine in Chrome/Edge)
I'm using jqxGrid with nested grids (row details) enabled via rowdetails: true and initrowdetails to show detailed subgrids for each parent row. It works perfectly in Chrome and Edge, but in Firefox, ...
0
votes
1
answer
128
views
How to edit jqwidgets jquery grid cellclassname/css using row id and column name?
{
text: 'sell',
datafield: 'Sales',
width: '3%',
columntype: 'button',
filterable: false,
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
...
1
vote
0
answers
109
views
Vite development mode to include jQuery widgets/plugins
jQuery widgets work with vite build, but it do not work with vite. Then they are not available - object.widgetFunction() gives that widgetFunction is not a function.
Is there anyway to get them to ...
1
vote
0
answers
37
views
jQuery tool tip not appearing on hover
$(document).ready(function() {
$("img").tooltip();
});
<html>
<head>
<title>About Us</title>
<link rel="stylesheet" type="text/css" href="style.css">
</...
-1
votes
1
answer
621
views
Cannot set input field with type password and autocomplete using javascript
I am working on an automatic login feature by filling in the username and password for a web application using javascript. The password field has the autocomplete feature activated. It's HTML is as ...
1
vote
1
answer
450
views
How to add a click handler to a custom jQuery UI widget and use the widget's property in the handler?
I have prepared a jsfiddle for my problem.
I define a custom jQuery UI widget representing a game table with up to 4 players and a white gid ("game id") number in the middle:
Here is my ...
0
votes
1
answer
89
views
How to prevent a jQuery widget appended to a selectable from growing bigger onmouseover?
TLDR UPDATE: here a JSFiddle demonstrating my problem.
In an HTML game I have created a custom jQuery widget called table representing a rectangle green table with up to 4 players sitting at it:
In ...
4
votes
1
answer
623
views
Set value to jquery widget slider
EDIT: Simpler explenation of the problem first. More detailed explanation below.
I use some jquery widgets code to create a UI slider. The code is here:
https://webgl2fundamentals.org/webgl/...
0
votes
0
answers
35
views
Autocomplet JQuery widget not working on the server
I have an issue with the autocomplete widget from jquery(https://jqueryui.com/autocomplete/). When I start the local development server, everything works fine, the widget works perfect, but when I ...
0
votes
2
answers
299
views
Jquery functions are called twice
Edited
I am opening a modal on click of link in jqwidget grid column, I am using the cell renderer to accomplish this. but the data is rendering twice. Below is a screenshot after clicking to open ...
0
votes
1
answer
84
views
"Using" option in jQuery position api
In jQuery documentation it says the feedback argument gives horizontal, vertical and important, giving you twelve potential directions like { horizontal: "center", vertical: "left", important: "...
0
votes
1
answer
138
views
JQueryUi Autocomplete Combobox sometimes not loading properly in Firefox
I am using JQueryUi 1.12.1 version and JQuery 3.2.1 version.
I am trying to use 2 JQueryUI Autocomplete Comboboxes in my website, so I copied Combobox code from here, changed it a little bit and ...
0
votes
1
answer
48
views
Bootstrap slider not being recognized even though the dependencies are there
Is there any reason why bootstrap slider is not being recognised as a function even though the correct dependencies are there?
The jquery ui files downloaded that are present in the web app folder ...
0
votes
1
answer
239
views
Autocomplete combobox button not rendered properly
I am trying to make this widget work in my application - http://jqueryui.com/autocomplete/#combobox
I am only trying to make the example work as is. I did have to change the button widget ...
0
votes
1
answer
4k
views
Magento 2 how to validate customer registration form on keyup event
I am working on a project where I need to validate customer registration form as customer types. I want to use the event keyup for inputs. I want to change the default messages also. Right now I am ...
5
votes
0
answers
877
views
Unable to use DateTime input through django CreateView and ModelForm
I tried to create an object of Model Event through UI using CreateView
My Model is
class Event(models.Model):
start = models.DateTimeField(_("start"), db_index=True)
end = models....
2
votes
0
answers
389
views
Add new jquery kanban item with the name and text
My kanban is composed of 2 columns, and each column has several items (representing task) :
taskId on the top, and task name on the bottom part of the item.
I have selected task from database (taskId ...
0
votes
2
answers
423
views
How to create a widget instance in jQuery
Consider I have two widgets.
$.widget( "custom.car", {
options: {
name: ''
},
_create: function() {
this.options.name = 'car'
},
random: function( event ) {
...
1
vote
1
answer
513
views
jQuery UI Slider with multiple range background bug
I'm trying to create slider with 2 ranges and add some color to background, it's OK with max value 100 (line 9):
$(function () {
// the code belows assume the colors array is exactly one element ...
2
votes
1
answer
900
views
Catcomplete widget stopped working when updating jQuery UI from 1.8 to 1.12
This is my code, which has been working fine, until I updated to jQuery UI 1.12
var currentCategory = "";
$.widget("custom.catcomplete", $.ui.autocomplete, {
_renderMenu: function (ul, items) {
...
1
vote
0
answers
382
views
Call jQuery widget from outside
I wrote a jquery-Widget with a method clear:
(function($) {
$.widget('ccf.mobileHeaderAutocomplete', {
...
clear: function () {
this.ulElement.empty();
},
...
0
votes
1
answer
2k
views
How to make jQuery UI autocomplete dropdown ul list item selectively disabled
The dropdown classes are ul.ui-autocomplete li.ui-menu-item by default. I want to make the unselectable li not selectable for better UX. i.e. If I enter keywords "coat" in the search bar, it shows ...
0
votes
1
answer
414
views
JQuery-Widget : Not working properly
I'm currently studying jquery widget. What I did was convert a working javascript code into jquery widget.
So the goal would be able to create a chart and update it when new data arrives. In the code ...
0
votes
1
answer
402
views
JQXGrid fixed(pinned) rows or toolbar/aggregates under header
I'm making some kind of file manager using JQXGrid and I need to have a fixed(pinned) row in the top of the grid with the link "Go Back". Is there a way to insert a fixed row (not affected by sorting) ...
0
votes
1
answer
45
views
Upgrading code from jQuery UI 1.7 to 1.8 failing
I have some old jquery UI code that I want to upgrade to todays standards. Since my code was written for jQuery UI 1.7.3 I've decided to upgrade to code release by release. A release list is found ...
7
votes
2
answers
2k
views
What do the functions 'beforeShowDay' and 'onSelect' actually do in following Datepicker widget implementation?
I've just started working on a website on which some developer was working previously. He has implemented Datepicker widget in one of the web pages.
When I go through the code of this implementation ...
1
vote
0
answers
425
views
How to use Hijri Calender in MVC
I have a MVC project and I want to use a customized Hijri Calender to be selected by the dd-MM-yyyy returned from database and enables the user to be a Date-picker to change Date values if needed . I ...
1
vote
1
answer
2k
views
Dynamically add new options to existing custom autocomplete
How could I dynamically add a label to existing categories in jQuery UI custom autocomplete? I have made a custom autocomplete like described here (jQuery UI docs for autocomplete):
<html lang="en"...
0
votes
2
answers
1k
views
How to properly override Jquery UI Styling
I'm using jquery autocomplete (+ jquery-ui.min.css), and I'm having issues with the styling. Most previous answers conclude with adding !important to the css, which I'd like to avoid.
Simple code (...
2
votes
1
answer
373
views
How to call destroy on disabled jquery widget?
Used libraries: jquery-ui-1.9.1 and jquery-1.8.2
I have one widget with some function called from destroy
$.widget("my.customwidget", {
options: {
},
_destroy: function () {
...
1
vote
1
answer
187
views
TableSorter Math widget and Scroller widget not working together
I'm trying to use the TableSorter Math Widget and Scroller Widget together but they don't seem to work while both active. When both active, the scroller is the only one that works. When I disable the ...
0
votes
0
answers
206
views
jQuery - Create a Tip box / Dialog
On my webApp, I need to create a tip functionality, which is a div with a close button, managed by browser cookie. If user closes one, it closes on all the page.
I couldn't find a jQuery plugin for ...
2
votes
1
answer
5k
views
Build embeddable HTML page
I'm new to HTML5
I'm trying make my basic paint/whiteboard webpage embeddable to any other website.
The whiteboard consist of three files: index.html, app.js and style.css
what I'm asking for is ...
0
votes
0
answers
80
views
Modules/Widget System?
I am making a widget/modules system for my website creation. So far what I have done is made a form post to the main page but when you refresh the main page the widget disappears.
<form action=".....
0
votes
1
answer
3k
views
Jquery date picker is showing behind popup window
When I click on text field available in pop window, the date picker calender is showing behind that popup window. Code for date picker initialization is
$("#nextSubmitDate").datepicker({
...
0
votes
1
answer
106
views
Can I add an AngularJS directive as a Jquery Window Content?
I'm trying to add JQuery Window as a widget. This is implemented as a directive and works fine with static content. But I want the content of the jquery window to be another directive. Is it possible?
...
-3
votes
1
answer
2k
views
How to write a jQuery widget to add 'Hello world' to the selected div
I need some help writing a jQuery widget.
As an exercise, I am trying to create a widget which adds a 'Hello World' message to the selected element when the page is loaded.
The below code should ...
0
votes
2
answers
1k
views
Add row into jqGrid without reload the page
I have a jqGrid with "local" source (an array).
I added a button to add a row using this code:
This is the button code:
$("#btnAddCategory").button().click(function(event) {
var newRowId = $....
0
votes
1
answer
299
views
Can't use jqwidgets with knockout and requirejs
I'm gonna try again, I have been trying to find a solution to use jqwidgets in a single page app with knockout and requirejs.
My index.html :
<script src="app/require.config.js"></script>...
1
vote
5
answers
246
views
Jquery .on() native function in javascript
I have created widget which is using jquery latest version 1.11.1.
When i adding my widget into 3rd party website.
And 3rd party website have lower version jquery e.g. 1.5 in my case (it could be ...
0
votes
1
answer
345
views
Jquery Widget CSS conflicts with third-party site
I have created one Jquery widgets which is used in many third party website.
My Widgets has it's own css for widgets elements. It is working perfect when run independently.
But when i add my Widget ...
2
votes
1
answer
113
views
jQuery UI - What does this equate to?
I'm reading the source of a jquery-ui widget that I am extending, and I am completely stumped by this one line of code.
this.placeholder[intersection === 1 ? "next" : "prev"]()[0] !== itemElement
If ...
0
votes
2
answers
1k
views
Populate list dynamically
Using jQuery FancyList from http://jquerywidgets.com/widgets/fancy-list/
I am trying to insert a <li> through code, not by a user click action.
My issue lies in the this keyword, specifically ...
0
votes
3
answers
158
views
Why is jQuery parent().index() not working when used in jQuery widget
I am creating a jQuery widget.
I have this code example set up to match my original situation as closely as possible...
function someFunction(){
$("#somediv").on("click", ".rem", $.proxy(this....
0
votes
0
answers
199
views
How to set default direction in JQuery widgets
How can I set default direction for all widgets used in JQuery widgets?
Currently I am use rtl : true property when I am initialize every widget.
$("#jqxgrid").jqxGrid(
{
...
0
votes
1
answer
305
views
Call jQuery widgets dynamically at runtime
Lets imagine that I have some set of widgets: Widget1, Widget2 and Widget3.
How can I apply them according to some circumstances? Something like this:
if(case1)
$('#container').Widget1()
else ...
0
votes
1
answer
1k
views
Encapsulate JavaScript completely in partial view (jQuery Widgets/ASP.NET MVC example)
I've started using jQuery Widgets and I want to populate a DataTable with JSON data. This is my code:
<script type="text/javascript">
$(document).ready(function () {
// prepare the ...
0
votes
0
answers
180
views
'dialogclose' event does not works on ui-dialog widget extension
I have this problem and I hope someone can help me.
I extend the 'Ui.dialog' widget, making a new widget, 'qui.qdialog':
$ .widget ( ' qui.qdialog ', $ .ui.dialog , {
options: {
...
0
votes
1
answer
91
views
Call destroy of unknown jQuery widget
We are writing a framework and are kind of stuck on a situation. Whenever a widget (all these widgets are custom developed with us and source code is available) is applied we update out ...
0
votes
2
answers
175
views
html control/widget to inline edit a word or section in a paragraph [closed]
Is there a library or widget out there that allows inline editing of certain sections of a paragraph? I have a mad lib like interface that have certain words highlighted. The idea is to allow the ...