Questions tagged [jquery-widgets]

jQuery UI widgets allow web developers to use familiar desktop style controls within a web application environment.

jQuery UI widgets allow web developers to use familiar desktop style controls within a web application environment. The default widgets include things such as tabs, accordions, dialog boxes, and menus.

Developers can also make use of the Widget Factory to extend existing widgets or create entirely new widgets, using the same framework that most jQuery UI widgets utlize.

Resources

149 questions
28
votes
4 answers

Accessing widget instance from outside widget

This is a simple widget mock: (function ($) { $.widget("ui.myDummyWidget", { options: { }, _create: function () { }, hide: function () { this.element.hide(); }, _setOption:…
Anders
  • 17,306
  • 10
  • 76
  • 144
25
votes
2 answers

jQuery plugins vs widgets

Few months ago I started some experiments with jQuery plugin. I found some tutorials on the Interenet and I started to put something together. A couple of days ago I had the need to build my own "plugin" and got back to my old project. Trying to…
LeftyX
  • 35,328
  • 21
  • 132
  • 193
21
votes
5 answers

How to get the input element triggering the jQuery autocomplete widget?

I have several input fields that are enhanced with jQuery auto-complete functionality. How to get the corresponding input field when a select event is triggered?
Nikola Obreshkov
  • 1,698
  • 4
  • 21
  • 32
9
votes
2 answers

Removing and Reapplying Widget on an Element

I have got a problem. I am applying the widget on select element. When I am reloading the same select element values, I am removing the widget on the select element and reapplying. But while reapplying the widget on the same element, the changes…
user1388314
  • 91
  • 1
  • 1
  • 2
8
votes
1 answer

jqGrid / ui-widget-overlay blocks all buttons and tab events on whole page

I'm using the redmond themeroller with my jqGrid. The file jquery-ui-1.8.16.custom.css has this overlay. /* Overlays */ .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } I think it's supposed to make an overlay…
7
votes
2 answers

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 I'm not understanding what does the code actually…
PHPLover
  • 1
  • 51
  • 158
  • 311
7
votes
2 answers

Best way to make jquery ui with typescript

I'm making a jquery widget with widget factory typed in typescript. How to provide a good intellisense without having to write .d.ts ? ex: /*mywidget.ts*/ $.widget("ui.mywidget", { options: { myoption: "" }, doSomething:…
Abraão Alves
  • 803
  • 1
  • 8
  • 14
6
votes
1 answer

Jquery Mobile pageshow function

I am building a webapp using the jqm framework and I have been attempting to use the pageshow function when including a jQuery widget, k3dcarousel. On the page in question, I have my script underneath the data-role="page"…
Chris M
  • 83
  • 1
  • 1
  • 8
5
votes
2 answers

JavaScript frameworks comparison : ExtJS, JQWidgets, DHTMLX

I will develop a commercial web application based on PHP and MySQL database. Now, I'm guessing about the JavaScript framework. I find several interesting frameworks like ExtJS, JQWidgets or DHTMLX. Some of their components can be tested…
Sly
  • 2,105
  • 5
  • 22
  • 28
5
votes
0 answers

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.DateTimeField(_("end"), db_index=True, help_text=_("The end…
5
votes
1 answer

how can I customize jquery widget by passing arguments and overriding my own callback?

I am very new to jquery and recently tailored the jquery combobox as per my needs. However, I need to reuse this component in other places on my site. I essentially need to pass in some arguments and a callback function which should be called for…
brainydexter
  • 19,826
  • 28
  • 77
  • 115
4
votes
2 answers

get the div object that holds a jquery widget from inside the widget

I have the following code: