a JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.

learn more… | top users | synonyms

0
votes
0answers
11 views

Implementing Ajax deferred/promise patterns

I have a testcase where I want to send a request to the server every time a form field change event occurs. The implementation below works as expected until I ...
8
votes
2answers
121 views

StackEgg autoclicker

I wrote a quick and dirty auto-clicker for the StackEgg. Any comments, both on code and effectiveness? ...
0
votes
0answers
23 views

Ajax Done Callback to prevent requests from interrupting each other

I am trying to make sure my Ajax does not send another request before it receives a reply. To the best of my knowledge the code I will post is supposed to do this but I am still getting a -1 for ...
0
votes
0answers
22 views

Getting ID of Task List item in Sharepoint 2013

I want to do some operation by taking an ID of a Task List item in SharePoint on UI front. I've just wrote some jQuery code by traversing the element. I got the ID and performed operations what I ...
-2
votes
0answers
14 views

show the multiple divs with images,links and text,once a selected,other can be hide in JS/Jquery [on hold]

i have a trouble to fix this problem.the problem is, i have multiple divs to show,with text and image,behind a link.i want to show one div in iframe when i select that div,.only that div can be show ...
2
votes
0answers
33 views

Game of life in JavaScript - using Table

I finished coding Conway's Game of Life in JavaScript and HTML table. logic cells in a table will be assigned with unique id's and based on the ...
5
votes
1answer
68 views

Simple todo application

I have been learning HTML/JavaScript and CSS. I have gone through some of the online tutorials, PDFs and books as well. Though, now I am familiar with syntactical stuff, I wasn't sure how I should ...
-1
votes
0answers
11 views

click function not working for all elements [on hold]

I have a webpage that I've made responsive. When clicking the header I want the meny to drop down. This is currently only working with one of my pages. I have two that looks almost the same. Only ...
0
votes
1answer
22 views

Random fadeIn has unwanted pauses [on hold]

I have a title with each character and word split into a <span>, using lettering.js. I am relatively new to jQuery and ...
2
votes
2answers
76 views

Equalizing heights

I'm running a jQuery function to equalize heights. I want to equalize the heights of several pairs of elements, and can't think of a way to do so without repeating the whole function. How can I ...
3
votes
1answer
28 views

Bootstrap show many move one carousel modification

I've been steadily improving a show many move one carousel sample that I found a few weeks ago. I want to post my improvements for others to use but don't want to spread bad code. I'm not an expert in ...
2
votes
1answer
55 views

jQuery morphing button concept

I have written some code which makes a button morph into a container. I have written it using prototypes. I am fairly new to jQuery/JS so was looking for advice on whether this was a bad/good way to ...
1
vote
1answer
23 views

Navbar that adds and removes classes

I've written some jQuery for my navbar, but it's super sloppy and I'm always trying to write better code. ...
4
votes
1answer
60 views

Getting a value from a query string

I have a URL in this format: http://localhost:57279/AssociateCaseDetails?UId=176948&caseID=1123 I need the values of UId ...
2
votes
2answers
31 views

Identifying clicked elements

I'm relatively new to web development. I started learning JavaScript a few months ago and it's going well. I made this code for someone on fiverr, and it got the job done, but I know there's a more ...
2
votes
1answer
30 views

Show/hide description

I'm trying to keep the code as clean as possible. Is this the best approach? I don't use jQuery that often. ...
3
votes
0answers
39 views

Ajax file uploader jQuery plugin

I tried to write my first jQuery plugin. It's a very simple Ajax file uploader. I would appreciate a review of this code. HTML ...
0
votes
0answers
16 views

My frist jQuery plugin: custom cursor (should not be used) [closed]

I maded my own first jQuery plugin, it should not be used because click events are not working properly. But I like to know if this is good code: ...
4
votes
1answer
53 views

Simple morphing button concept

I have been making a jQuery morphing button type thing. jsFiddle ...
1
vote
0answers
52 views

Payment Gateway - single payment with credit card (handling path & choosing gateway)

This was an assignment and I am new to Node.js. You can find the complete project here. The code worked fine but was rejected, and wasn't given any reason even after asked. Statement: Create a ...
2
votes
3answers
57 views

Fixing navbar when scrolling beyond a certain number of pixels

I have written a jquery code, which fixes a navbar header on top of page when a user scrolls down to a certain pixels. But I am not sure whether is this the correct way to do this. Because this is ...
0
votes
0answers
22 views

3 selects on a page and 2 of them need to be observed for changes

There are 3 selects on a page: 2 selects are populated and 3rd empty. Onload takes both populated selects and combines them into 3rd select with groupings. An external event is simulated with button ...
0
votes
1answer
58 views

Reduce the number of elements I hover

The level 3 menu is broken in 2 parts if there are more than 10 items. The issue is with hovering over the newly created list. At this moment I have 3 functions that apply the shown-sub class. I want ...
2
votes
1answer
49 views

Tag count limiter

This is a tags counter that I implemented to a site. The script is supposed to display the number of tags that a user can still input - the limit has been set to 5 items (...
1
vote
0answers
64 views

Calendar application with shaky Logic

I have built a calendar application just with jQuery. The script file is on Github. The code works perfectly fine and I have tested it. Please feel free to clone and test as well. I am uncertain on ...
5
votes
1answer
97 views

An utterly pointless jQuery program

This is the first jQuery program I've written, and it doesn't do much, but I'd appreciate the feedback. Just click on the different colored buttons to do things. Codepen ...
1
vote
0answers
30 views

jquery .load() div content from URL with hash-sign for id [closed]

I have my page so far: einserpasch.com The crucial markup is this: ...
3
votes
1answer
95 views

Hide and show columns in an HTML table

Codepen Link I've tried to Google, but there's no library that has an API to toggle table columns when clicked elsewhere on the page, so I've decided to do this: ...
1
vote
1answer
38 views

Return fake jqXHR from custom Ajax method

I have several methods that wrap the $.ajax() method and return its jqXHR, but I need to force fail before even calling the original ...
0
votes
4answers
41 views

Account disabled and deleted functions

I have the following functions that for the most part are utilizing much of the same code (except for the actual message). What are the possibilities, if there are any, for combining / reducing these ...
1
vote
1answer
51 views

Rewriting this function to use `promises` instead of `async: false`

Using parse.com's javascript API, I would like to get a variable number or images from img tags on a page and save those images in the currently logged in user's ...
1
vote
0answers
17 views

Form valid combinations from CSV selection options

I am building a form with multiple select option fields. I am trying to only show the next field if it exists as a combination in the CSV file I am reading in. It's working fine right now and I am ...
0
votes
0answers
24 views

Make knockoutjs model simpler and avoid full observable array refresh

The form creates / updates /deletes a category. The category is simple: ID and name properties in backend (Laravel) model. UI: Clicking on a category enables "edit mode": I need 2 things here: ...
0
votes
1answer
22 views

Shorter way to add click handler to multiple IDs?

So i'm kinda new at this jQuery stuff and i've gathered up this much to make my code functional, but i would really want to shorten it. I've already tried $('#Monday','#Tuesday'....) to group them, ...
1
vote
1answer
60 views

Setting combined height and width viewport “breakpoints”

I'm using JavaScript to handle breakpoints in a single page, non-scrollable application. I want to do various things when changing viewports, such as fire off animations with a JavaScript animation ...
0
votes
0answers
28 views

Javascript pagination plugin

I'm working in an application where there's a long unordered list of items that have to be paginated. New items are added to the list regularly, and the items come from a database. The only control I ...
1
vote
1answer
52 views

Caching DOM-queries

I've been optimizing my code and I always tend to cache common selectors like this (jQ): ...
1
vote
1answer
113 views

Interactive search filter for HTML table

I know there are many great plugins on the Net nowadays. But due to safety issues, external plugin are restricted. Thus, I wrote some JavaScript for an interactively searchable HTML table. The main ...
1
vote
1answer
41 views

Restructure code to avoid using async false

I have the following code that works perfectly other than the fact that it has to use async false, to wait for a response from ajax. Is there a way of restructuring this by using callbacks, or ...
5
votes
1answer
74 views

Script to upload CV with cookie control

I have created a script which presents a popup on every 5th pageview. I would like to try to use just PHP cookies. However, due to the requirement of setting them before any content is output, it ...
0
votes
0answers
15 views

Autocompleting when a certain class is present

This jQuery actually autocomplete when the onkeydown class is present and load the autocomplete with corresponding variable. This is working but I want to make it ...
0
votes
1answer
68 views

Multiple custom file input fields with jQuery

I've modified this example to better suit my needs in handling multiple custom file uploads on the same page. It also renders the filename or truncates if it is too long for each of the 3 file fields. ...
1
vote
1answer
120 views

Add multiple data attributes to elements using jQuery

I'm looking for some help on how I can optimize adding multiple data attribute tags to elements, and really, any feedback at all. Background Client uses a analytics tool through a tag management ...
2
votes
2answers
89 views

Generating a random number of progress bars

I have this JSFiddle that generates a random number of progress bars then assigns a random number and percent to them. I am wondering if you know how to better optimize this code to have better ...
1
vote
0answers
41 views

Bootstrap Data Table generation

I am generating a searchable and sortable data table using ...
0
votes
1answer
62 views

Handling data from an HTML table using jQuery

I have the following table: ...
0
votes
0answers
31 views

Search box in JavaScript for blogger.com

I wanted to build a search box for Blogspot which goes through every label and filters them so remains just the match and every other label is hidden. I work with this through the firefox developer ...
2
votes
0answers
36 views

Custom backend app with require.js approach

I'm working on a small custom backend app in PHP for personal use (and practice MVC) and I thought it was a nice opportunity to try (and learn) requirejs to 'organize' my scripts and load just what ...
2
votes
0answers
51 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 prev-tab: takes you to the previous tab ...