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

learn more… | top users | synonyms

-5
votes
1answer
21 views

Would someone please see if I did Jquery right? [on hold]

Something in my script is causing to reload the page and inserting all my <head></head> contents below my ...
-2
votes
0answers
26 views
1
vote
2answers
34 views

Fetching data from nested JSON using jQuery and displaying in table

I'm displaying JSON data in a tabular format on a html page using jQuery. In the function I'm looping the resp.DATA once to get the key names so it can be ...
1
vote
0answers
27 views

Large table updates using AJAX in Internet Explorer 11 (Cont'd)

Previous topic: Large table updates using AJAX in Internet Explorer 11 For the functions included here, I have taken the advice of the previous answer and incorporated it in the restructure, but am ...
3
votes
2answers
64 views

Large table updates using AJAX in Internet Explorer 11

I have a website which only needs to support IE11. It is a single page application, which has about 200 table rows and each table row has 5 child rows. There is a pulsing function that updates the ...
-1
votes
0answers
18 views

optimize individual field return in jquery [on hold]

I have many input fields and I am not using form. This is my JS: ...
0
votes
1answer
31 views

Creating a wrapper function for jQuery ajax

I am creating a few functions that wrap around jQuery's ajax function to make it a bit quicker and easier to preform a request. For this I have this JavaScript file: ...
3
votes
2answers
36 views

Changing images when hovering over links

I wrote a script to change a static image by hovering over navigation links. It works great, however, the script is very long and I'm guessing there is a much more efficient way to write this code. ...
1
vote
1answer
65 views

Keep div fixed when it is inside it's container on scroll

The required behaviour is : The yellow span must be positioned relatively to viewport (position:fixed;) when it is inside the pink div. The height of yellow span ...
0
votes
1answer
36 views

Four jQuery date time pickers

I'm using the Jquery date time picker link here In the four methods below I am initializing the DT pickers but they are all pretty similar except for the ID in the ...
3
votes
4answers
197 views

Color swatch selector with multiple mouseover and mouseout functions

I am working on a simple mouseout and mouseover functions. Basically, I have color boxes (or swatches) and I have to get the color of the specific box when hovered and when selected. You can see how ...
3
votes
1answer
46 views

Small HTML / JS drum machine

This is just a simple little drum machine. Since it loads sounds files, I can't just put it on JSFiddle. I tried Github pages too, but am not sure how to get the sound files working. However, you can ...
2
votes
2answers
224 views

jQuery fade in and out with multiple objects

This set of code is very large, and I'm hoping if someone could show me a more efficient way of doing this. In particular, the JavaScript code, but HTML and CSS corrections are just as welcome. ...
1
vote
1answer
31 views

jQuery - Repeating same actions on different DOM elements

I feel like I’m violating a lot of DRY rules here but can’t think of a better way to do this. I have two event methods (there are actually four total just showing two) that are doing a lot of similar ...
1
vote
0answers
70 views

Progress bar with percentage counter

Basing my work on a JavaScript progress bar created by another person, I added an animated percentage count. This solution is really ugly but it works. I don't know how to avoid having to declare ...
2
votes
0answers
55 views

Simple minesweeper game in JavaScript

I created a simple minesweeper game as I am trying to get my hands dirty in JavaScript. I have tried to use the oops while doing this. I am posting 3 files: index.html minesweeper.js ...
4
votes
0answers
47 views

Persistent shopping cart that allows users to do CRUD operations as well as perform a checkout

I have never dealt much with jQuery or JavaScript. The following code is something I wrote and while it is functional, I am pretty sure it is a complete mess and it could use some improvements for ...
2
votes
0answers
34 views

jQuery chat queue

The spec for this has changed a lot and due to time constraints the code developed in a piece meal fashion. The problem that I am trying to solve is to develop a queue of chat requests with a ...
0
votes
1answer
42 views

Tabster / jQuery based plugin

I am PHP programmer whom only recently started to play with a bit of JS/jQuery. Because of that my code is probably something that most of You hardocding JS programmers would see as disgrace (again I ...
0
votes
1answer
39 views

Functional Javascript Practice with AJAX

I am currently doing projects in freecodecamp.com to brush up on my javascript skills and just finished a weather report widget. It does the following: Gets api ...
1
vote
2answers
54 views

PHP+JS Code Combining

Just wondering if this is okay to do? I have to store some PHP variable values into LocalStorage. ...
5
votes
2answers
75 views

Toggling dropdowns using jQuery, with binding and unbinding

This code is used to toggle some dropdowns. I've added the click event on the document to close the dropdown on click outside, but I'm not sure if I'm doing it the right way. I want it to be optimized ...
6
votes
1answer
123 views

Embedding an RSS feed into a page after it's already loaded

I'm working on reworking our website from a WYSIWYG editor to MVC. I'm all right with server side code, but complete rubbish when it comes to client side Javascript, so I'd appreciate any/all ...
0
votes
0answers
24 views

Backbone - Managing Collection Views - Adding and Removing Views - Listening for events

I have 2 Collections - Movies and Watchlist. Both of these have Views that output Movie and ...
5
votes
1answer
63 views

Slider with jQuery using bullets

I have a slider with 3 images and left/right arrows. If you click on them, the image changes. You also have 3 bullets below the images and the image changes depending on what bullet you click. I ...
0
votes
1answer
63 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: ...
1
vote
2answers
30 views

Building categories block based on JSON

I'm not even sure if this is how you're supposed to do it, but this is what I have so far: ...
4
votes
2answers
62 views

JavaScript/jQuery math game

I wrote this entire program earlier today, and would like to get it reviewed. It is an arcade style math game, where you are presented with two expressions on the left and right side. You will ...
2
votes
0answers
20 views

UserScript that tracks Views Since Last Visit

I try keep an eye on any questions or answers that I have posted here within the StackExchange network and I like to prioritize my updates and improvements based on ones that get frequent visits. I ...
1
vote
1answer
34 views

JS form verification

I have three checboxes in my form. I have to check which one is checked and start the action. What do you think? Is this the easiest way of doing it? Checkbox 1 = cat Checkbox 2 = dog Checkbox 3 = ...
3
votes
1answer
83 views

CSS Animation Card Flip

I've made a card flip with CSS keyframes but instead of flipping clockwise and then flip counterclockwise to it's original position, I've two separate keyframes that will cause it to rotate in the ...
3
votes
1answer
31 views

Mouseover effects for social network icons

Hey so I have written some code out in jQuery, but it seems to violate DRY. I'm not too familiar with JavaScript or jQuery, so I was just asking for some advice on how to optimize this code: ...
-1
votes
1answer
55 views

Redundant code in javascript toggle function

I have a easy function but it have a redundant content. ...
5
votes
3answers
58 views

JavaScript BB-Code transformation

I am doing a lot of stuff with JavaScript and jQuery lately, but am not heading for clean code too much, as I am usually writing userscripts or small applications for myself. Recently, a community I ...
2
votes
2answers
104 views

Popup function written in jQuery

I wrote a jQuery function to show a popup that can be draggable have multiple buttons etc. Demo How can I improve this code? I want to try keeping it light and simple but at the same time make it as ...
3
votes
1answer
53 views

Javascript navigation effects

I am attempting to build my own website, based off Google's Material Design principles, to better my design/UX skills. I am currently working on effects for my navigation, I wondered what would be ...
4
votes
2answers
75 views

UserScript that summarizes Stack Exchange flag counts

I am working on a UserScript that displays total flag counts and other information on the Flag Summary page. Example: Everything is working correctly but this bit of code seems rather repetitive ...
1
vote
2answers
55 views
-1
votes
1answer
58 views

How to find a word in the string

I want to find a word in the string and replace it with new one. If the first letter in the word is upper case, the function should replace it with upper case, for example if you mean to replace the ...
4
votes
1answer
31 views

Three identical AJAX button handlers in three views

In my Rails 4 app I have this event listener: ...
3
votes
1answer
50 views

Personal portfolio template design

I recently finished the build a personal portfolio webpage project for a free Code Camp, here, I would be very grateful if anyone would be willing to offer any advice on the design of the website or ...
0
votes
1answer
47 views

HTML template for win-loss data in Javascript with Mustache

Can anyone suggest a better way to implement my template code? ...
2
votes
1answer
59 views

Creating a login page

I have created a test login page that, as most do, takes in two values from the user (username and password) and the processes it. For this I have opted to use jQuery and AJAX to pass the results to ...
3
votes
2answers
61 views

Pomodoro Timer in Javascript

I've made a Pomodoro Timer application. All it does is countdown from a time in minutes given by the user to 0:00. It does this first for a session time, and then switches to a break timer and ...
3
votes
3answers
102 views

Animated SVG pie chart with custom properties

I've made a small js/css/html module which purpose is to fill a pie chart up to a given percentage. Basically it could be used for instance as a filling pie chart that keep tracks of the amount of ...
2
votes
1answer
49 views

Display characters remaining next to input/textarea

I'm not great with JavaScript. I've written a small jQuery function and I've now got it working, but I just wanted to check if the code looks good or if it can be improved. I wanted a function so ...
0
votes
2answers
29 views

Ajax request URL

So I am making a HTTP request with the google maps API & I have to pass in parameters (Addresses/coordinates) The way am doing it right now looks like this. ...
3
votes
3answers
132 views

Parsing and calculating data

At first I calculate the total of each data then give each data of data a percentage base on ...
9
votes
0answers
64 views

Userscript for easily replying in Stack Exchange chat

In SE chat, there are two different ways to mention people: A "ping" to just get a user's attention, and a "reply" that points out a specific message by the user. This script makes it so that ...
1
vote
1answer
55 views

Tic-Tac-Toe game with jQuery

I am a beginner at web development and I write code as a hobby. Would you please critique this code? I created a Tic-Tac-Toe game using HTML/CSS and jQuery. I did it for fun as a personal ...