Questions tagged [jquery-ui]
jQuery UI is the official jQuery user interface library. It provides interactions, widgets, effects, and theming for creating highly interactive web applications.
73 questions
0
votes
2
answers
3k
views
JQuery fixed header that hides on scroll down and shows on scroll up
I am currently working on a site product where I have to create a site-header that is always fixed on top of the viewport but when I scroll down it hides, and again when I scroll up, it becomes ...
2
votes
1
answer
2k
views
Create multiple parametherized JQueryUI dialog boxes
In my application, I am using a lot of jQueryUI dialog boxes.
In order to reduce the length of code, and because I am using often the very same parameterization, I was wondering about a way to ...
6
votes
2
answers
2k
views
Retirement Calculator
I created a program that determines how many years you have left before retiring, and in a year when you can retire.
This is my code below:
...
2
votes
1
answer
210
views
Option buttons in plugin Dialog
I used the jQuery UI plugin Dialog to ask a user for "name" and to show it in a subsequent dialog.
Is there the better way to add a function to the option "buttons" to get the data and to go to a ...
2
votes
2
answers
6k
views
jQuery Accordion + Sub Accordion + Search Filter
I have a top level category accordion + accordions within those and a search that auto-opens the 2 levels when results are found. Since you can't open multiple at once there is a Next button that ...
4
votes
1
answer
13k
views
Dynamically change data in Chart.js charts with jQuery slider
I created this little JavaScript application which gets data from a post request and uses this data to show a line chart with the total income over a year and a bar chart for the daily income. The ...
4
votes
2
answers
2k
views
Autocomplete selector country/region/city for ex-USSR countries
I wrote a selector for several countries. This selector allows the user to choose a country, then a region and then a city. After the user chooses a city, it displays the selected object's country ...
2
votes
2
answers
182
views
Toggle the visibility of sections of a form
This code I written by myself. Here I have 3 main part. When I click on any main part then it sub part will appear. Sub part contain some check boxes. Here I have the following main functionality
...
8
votes
1
answer
3k
views
Make To and From date range picker using jQuery UI
I implemented date range picker logic using the jQUery UI datepicker component:
...
3
votes
0
answers
73
views
Reusable, manipulatable plots
I'm interested in mimicking a simple version of Mathematica's Manipulate function in javascript. This is my first project in javascript, but I was hoping to make a library that I can use to quickly ...
2
votes
1
answer
403
views
Populate a table from a database using JavaScript from a jQuery UI Dialog Box
I'm returning to Web Development after a number of years working in other areas.
The below image shows what what I have so far looks like. I'm not 100% satisfied with the styling yet, but that's a ...
2
votes
0
answers
231
views
Javascript menu with dropDown and Slide effects
Over the last couple of weeks we build a huge Javascript menu. And we might think the whole code is a little bit too much. We are not pros, but came to a quit acceptable solution. (yeah it´s German, ...
0
votes
1
answer
2k
views
Display tabular data with jQuery Datatables plugin
I have this list of results which I display with the jQuery Datatables plugin.
This is the Result class and list of results being returned in the JSON format:
<...
4
votes
1
answer
164
views
Toggle functions for drop down for a clock time widget
I'm fairly new to JQuery/JavaScript and I'm trying to refactor the following code:
...
4
votes
1
answer
131
views
Drills: A JavaScript web application that creates customizable workout routines and reads commands aloud while keeping track of time
Here's the JSFiddle, the GitHub repo, and here it is out in the wild.
Note: the application uses Chrome's Speech Synthesis API and only works on Chrome or Safari for iOS7 (oddly enough).
It was my ...
1
vote
1
answer
571
views
jQuery resizable plugin
Is there any way I can simplify this re-sizable solution? It seems too difficult and messy to me.
Working example
...
6
votes
1
answer
1k
views
Don't search for minors, it isn't allowed
I have a search form that doesn't require much in terms of input parameters, but the Date Of Birth is import for this particular search.
I have been working on creating a way that the form can be ...
3
votes
2
answers
379
views
JavaScript form validation
Is this a "good" method of form validation?
...
2
votes
1
answer
2k
views
Autocomplete search or instant search script for shopify
I have developed a simple autocomplete module for search box in ecommerce website (http://www.cjcharles.com/) built over shopify. Now, as the CMS is commercial, I was forced to use its given API's ...
7
votes
1
answer
547
views
jQuery dialog for help popup
I used jQuery-UI and jQuery to create a dialog popup for help snippets on search form inputs.
HTML (Calling Page)
...
3
votes
1
answer
212
views
jQuery plugin - image slider
This is my first jQuery plugin (used the jQuery ui widget factory). All code improvements are welcome.
GitHub
The plugin creates a gallery with one big picture and a given amount of clickable ...
1
vote
1
answer
1k
views
Meteor jquery-ui slider integration
I'm struggling to integrate a jquery-ui slider widget into my Meteor app. The idea is to have a slider value in a Mongo collection and the slider needs to be reactive (automatically synced between ...
4
votes
1
answer
2k
views
Empty an array on focusout - jQuery UI Autocomplete
Is it good to empty an array on focusout?
...
2
votes
0
answers
1k
views
jQuery UI tabs: navigation thru tabs using active options
I am using jQuery UI Tabs for a web application and I would like to navigate thru different tabs with these four buttons:
next-tab: takes you to the next tab
...
2
votes
1
answer
408
views
Summing 3 jQuery modal dialog functions
I am getting better with jquery day by day, but there are still things I don't know how to sum up several functions to reduce some code.
So I am using three jquery modal dialog popups and I have ...
3
votes
1
answer
2k
views
jQuery slider in a Python/Django SessionWizardView
I have created a Data Verification page in a Django SessionWizardView where a user has to confirm an earlier submitted rating of an image using a jQuery UI Slider (-...
18
votes
2
answers
2k
views
Custom JavaScript validation using the factory / module patterns
I am in the process of diving a bit deeper into JavaScript development and am looking at some common language patterns (module, and factory in particular). In this code, my aim is to create a re-...
2
votes
1
answer
14k
views
Toggle-item inside a Bootstrap dropdown-menu
I have this working code for a toggle-item inside a Bootstrap dropdown-menu. See demo here.
I suspect that it should be possible to improve it :
in order to have a shorter code and avoid all the ...
1
vote
1
answer
2k
views
jQuery Widget - Progress Tracker
This is a follow up on JS Progress Bar Widget
I've rewritten it as a jQuery Widget Factory widget, attempting to follow that standard as much possible and fixing the various problems pointed out in ...
1
vote
1
answer
133
views
jQuery Dialog Settings
The goal of the code is to
initialize a Dialog with settings
make sure the object is reusable
Setup the options to reuse the code
I'm not quite sure if this is overkill, or I am going about this ...
6
votes
1
answer
1k
views
Dialog multiple instantiations
I have a site where there are lots of "jobs" that a user creates. The user has the option to Close any given job. I want a pop up warning dialog whenever the user clicks the Close button, and verify ...
2
votes
1
answer
2k
views
Multiple jQuery statements in one function
I've been working with jQuery for a few days now and starting to get the hang of it (it does the thing that I want to do).
I've made an accordion, and the header of each accordion item has an arrow ...
4
votes
1
answer
40k
views
Movie tickets booking system (Frontend only)
I developed this tickets booking system recently to showcase HTML5 features. I would like you to review it from the UI/UX perspective. Also if there is something more that I can add.
Is it good ...
3
votes
1
answer
8k
views
Updating a jquery progressbar via button clicks
I'm trying to get my progress bar animated. I'd like it to smoothly transition in between the starting and destination values, but only be initiated by clicking the continue button.
The code I ...
8
votes
1
answer
13k
views
jQuery stopwatch
Here is the link to the jsFiddle and below is the code:
JS:
...
11
votes
2
answers
335
views
Namespacing jQuery/jQueryUi into markup that I don't control
I have a project that I've been trying to get just right for the past three months and it's still not quite there yet.
I'm injecting some jQuery and jQueryUI code into pages that I have no control ...
4
votes
1
answer
3k
views
Price Slider using jQuery UI working in Java environment to be optimised
I am working on a price slider that is for a Java environment. It is working correctly but I would like to optimise it as much as possible. Any tips/advice?
...
2
votes
1
answer
706
views
Resizeable HTML
I am generating a content bar with jQuery, that can be inserted into any webpage. It is a <ul> with two smaller lists within it. Those two minor lists have a ...
3
votes
2
answers
125
views
Do I need to trim this jQuery code?
I had three multi-select boxes from this page. I want to customize each box so I simply repeat the code three times with different options: Check the fiddle
...
7
votes
1
answer
193
views
DRY multiple if statements used to show/hide elements based on slider value
I'm showing and hiding 4 svg paths based on the value of a slider, all is working as expected, but it still feels a little cumbersome. Does anyone know a way to "DRY" it out a little more?
jsFiddle
<...
3
votes
1
answer
196
views
Animating based on screen width
Depending on the width of the screen the JavaScript animates a node and then loops another animation.
I'm trying to understand DRY but my JavaScript skills aren't quite up to scratch to get this code ...
4
votes
2
answers
971
views
Delay and queue animation in a function - how can I optimise this by removing duplicate code?
I have this script that moves a box around the screen and the loops the second part of the movement. I have altered the code to drop another three boxes (4 in total) into the animation so the boxes ...
2
votes
2
answers
323
views
Is this JS Widget written correctly and production-ready?
I created a JS widget library for distribution purpose on external websites and would like your thoughts on it.
What widget does: It adds an always visible text on the screen. When user clicks on ...
2
votes
1
answer
263
views
Web Audio Constructors and jQuery
I'm trying to figure out a way to have cleaner, efficient code for a web audio project i've been working on. the code I have right now is this:
...
5
votes
2
answers
232
views
Simple jQuery drag event
I would like some comments on my code and implementation for this simple piece of jQuery.
Basically it is 2 div boxes #side1 and #side2, in a container div called #frontimage, where #side2 can be ...
4
votes
2
answers
153
views
Using jQuery UI .position() in a backwards compatible way
Trying to implement this API in a way that works pre and post jQuery UI 1.9:
I have a subtle feeling that there should be a more elegant way.
...
3
votes
2
answers
193
views
Replacing simple jQuery methods for better use
There are a few common jQuery call I find my self calling when creating my app. I need some help and maybe a better way to do all this or rewrite it.
1) Singleton Selector
If I want to select only one ...
1
vote
1
answer
387
views
Using jquery to prepare jQuery UI tabs, optimize?
I am looking for someone to review my solution to a jQuery DOM manipulation exercise on appendto.com: http://learn.appendto.com/lesson/dom-manipulation-101#exercise
I'm wondering if there is a way I ...
0
votes
1
answer
490
views
Roll your own widget factory
So for practice with Javascript, I wrote this lightweight widget factory which is similar in functionality (okay, that's a bit of a stretch) to jQuery's UI Widget factory. I was hoping I could get ...
0
votes
1
answer
133
views
Tip dialog jQuery plugin
How would you write this jQuery code cleaner and better? I'm a beginner.
...