Questions tagged [jquery]

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

195 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
830 views

Simulate a simple shopping basket

I simulated a web shopping basket for a store with a single product, for two reasons: to learn to use browser events for a user to manipulate data in a page so that, in the future, I can build it ...
2
votes
0answers
61 views

Generate a patch description from multiple SVN commits

I have a Spring app that is used to create patches for another application. My client retrieves a list of branches from a SVN repo through the initial AJAX call, then if one branch is chosen, another ...
2
votes
0answers
33 views

minimizing a code for action fired up by scrolling action using waypoint js

I need an advice on who to write better code. I have a side navigation where there are 4 markers that appear every time I scroll to specific section on the page, the code is working well but it is ...
2
votes
0answers
150 views

Revealing Module Pattern with jQuery

I started to break apart my 'spaghetti' code into modules, after watching a few videos online. Now I want to know, am I separating code enough? I feel like I was off to a good start, but I feel like ...
2
votes
0answers
254 views

Simple jQuery plugin that excerpt text

First I work on all of my projects alone, and I feel like I need my code to be reviewed by others and deep dive into performance and best practice ... etc. I created a simple jQuery plugin that ...
2
votes
0answers
42 views

Lesson slideshow/classroom app

Overview I am looking for feedback on this (personal) project that I am working on that is rapidly becoming quite complex. I am fully aware that this is horrific code quality... I just want to get my ...
2
votes
0answers
108 views

jQuery plugin to highlight HTML on click/hover events and easy grouping

I have this plugin that I have finally finished the big pieces of, there's one or two minor details that are not yet implemented do to lack of a decision yet but everything else is there. I wrote it ...
2
votes
0answers
61 views

YouTube component of a multi-component web-app

Following is basic JS code to create a YouTube search bar, search of query and load the results in a dropdown menu. I am new to JS programming and I am seeking advice for how to write better code. ...
2
votes
0answers
50 views

jQuery Mobile Menu plugin

I would like some opinions on this Mobile Menu plugin I wrote for work. We develop custom WordPress themes, nothing too advanced or anything. I would like if anyone could just take a look and provide ...
2
votes
0answers
63 views

Glossary Lookup Function

I'm looking to identify any weak points and unnecessarily slow/expensive operations to optimize this function: https://jsfiddle.net/vkoc22kh/24/ Any help is much appreciated!!! Thank you!!! ...
2
votes
0answers
300 views

JavaScript calculator that uses eval

I am new to Javascript and jQuery. I made a calculator by looking at other calculators, codes. I don't know so much Javascript methods, so I stick to eval method ...
2
votes
0answers
125 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, ...
2
votes
0answers
564 views

Random quote machine with jQuery

I've done a random quote machine in jQuery. Could you look at the code and propose some improvements (especially jQuery code)? Here's the working app. ...
2
votes
0answers
54 views

Performance of a jQuery module

Following this question, I've rewritten my module as follows: ...
2
votes
0answers
383 views

Exercise: Build a news page with React & React Router

From a React course I'm taking: I could implement most of the demands. A life-demo can be seen here: http://n-or.de/news/#/ You have to click the "News" and "Photos" links on the right side for ...
2
votes
0answers
163 views

Overall assesment of portfolio website

I've just bought myself a domain and recently created a rough draft of a portfolio website. A few of my friends have looked over the general design of it and given me some positive feedback so I ...
2
votes
0answers
25 views

Menu of triggers reveal corresponding dialog elements

So I have this code that for the most part, does what it needs to do, but I'm having trouble making it more concise and elegant. Codepen Intended functionality: If you click a trigger, it's ...
2
votes
0answers
120 views

jQuery form change listener, modularized using ES6

I have the following javascript code that I'm trying to modularize using ES6: ...
2
votes
0answers
207 views

Event Delegates using IIFE or Module

I am learning jQuery/JavaScript best practices and am attempting to put them into practice. My overall goal is to have lots of small, independent .js files which contain specific functionality and ...
2
votes
0answers
6k 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
49 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 ...
2
votes
0answers
38 views

JQuery Tab Plugin

I have created a reusable code for jQuery tab functionality for my client site. Every thing works fine but the only thing I am worried is that the lines code I have written for this small feature is ...
2
votes
0answers
141 views

Better way to toggle between the state of show() and hide() in jQuery

I have the following code which switches between the states of hide() and show() of show prices ...
2
votes
0answers
43 views

Pageee jQuery plugin

I have recently written a jQuery plugin called Pageee. Pageee is a jQuery plugin to scroll through full pages automatically, by arrow buttons, or by dragging the page. I have now come to Code ...
2
votes
0answers
57 views

jQuery Toolbar Module

I'm fairly new to JavaScript, and wanted some critique on some code I've written based upon what I've learned recently. I have a strong background in OO programming (C/C++, C#, Java), but recently I'...
2
votes
0answers
47 views

CF/jQ server-side session struct to replace hidden inputs

I have inherited a legacy ColdFusion app with gobs of <input type="hidden"> fields, and a user finally may have used F12/Inspect Element to submit a system-...
2
votes
0answers
61 views

Playing with validation

This code is part of an application page, which lets user select existing or add new members, For email and Username it needs to call web services to see if they already exists then validate ...
2
votes
0answers
81 views

Organising a JavaScript file

I have a JavaScript (jQuery) 'init' file with various variables/event handlers and functions that are currently written in no particular order. I've read that it's good to organise these by declaring ...
2
votes
0answers
589 views

Share on social onclick using jQuery

I have the following code to share my website through some social networks when the user clicks some divs with the appropriate icons. ...
2
votes
0answers
653 views

Fading Alert boxes

I am currently working on some fade out alert boxes where once the fa-close is clicked, it will then fade out and then slide the rest of the alerts/content upwards. ...
2
votes
0answers
41 views

Slideshow scrolling photos horizontally using jQuery

I've written my own jQuery code to make a little slideshow. Functionally, it does what I want but I find that the jQuery animations are fairly jerky and because I'm a beginner in JS and web ...
2
votes
0answers
2k views

Filter CSV file and display it using Highcharts

I created a function which reads CSV file and displays those values in a graphical form using Highcharts. Although it works, I have to read the CSV file twice because first: I need to get all the ...
2
votes
0answers
849 views

jQuery plugin for dynamically sticky headers and footers

I am creating a jQuery plugin to be used to stick the headers and footers of tables (or other list data) to the top and bottom of the viewport while scrolling. (i.e. scrolling down the page, the ...
2
votes
0answers
98 views

jQuery boilerplate library

I'm working on my library. It's just a boilerplate, wrapping some script code, with helper functions, some plugin implementation, required meta tags etc. How can I develop this better? ...
2
votes
0answers
457 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 ...
2
votes
0answers
3k views

Smarter Boostrap Affix

The normal boostrap affix doesn't take the items natural offset top position into account, you have to manually pass it in as an attribute. This takes care of that, and accounts for the offset top ...
2
votes
0answers
220 views

Bootstrap Data Table generation

I am generating a searchable and sortable data table using ...
2
votes
0answers
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
0answers
101 views

Improving JavaScript processing of Ruby Regex

I have a basic webapp that basically serves the same purpose as Rubular.com, but for gsub. It runs some simple JavaScript, which POST's to a Sinatra app, which then updates page with the results. <...
2
votes
0answers
124 views

Parallax multibrowser jQuery plugin

I'm working on website with a parallax effect. The jQuery code is working, but I wonder if there could be made any improvements made to the code. At the moment it works totally smooth in Firefox, but ...
2
votes
0answers
118 views

Create one function instead of two bootstrap modal

I have a form that reads a JSON file for default wrong answers to be applied to a 'summary div' at the end of the form. I wondered if I could make these two functions one somehow? It is a bootstrap ...
2
votes
0answers
179 views

Bootstrap Tabs With SammyJs

Is there a better way to implement bootstrap tabs routing with SammyJS besides this? ...
2
votes
0answers
2k views

Simple yet incredible parallax scrolling effect

I wanted to learn how to create awesome parallax scrolling effects so I decided to look up how to do it, after some searching I put together this test. It works fine to some extent but it feels a bit ...
2
votes
0answers
44 views

Creating a menu for widgets with editable settings

I'm trying to create a menu for widgets with editable settings. As of now I'm setting these settings per object by coding them in like you can see below. How could I make this shorter / ...
2
votes
0answers
708 views

Detail view, edit field: create input, buttons

I have a detail view for my object. There is only one field available for editing. When I click on the Edit button I want to hide text for field and show input with the OK and Cancel button. ...
2
votes
0answers
2k views

Ember.js file upload code

I am a newbie and tried to find the laziest way to do a file upload using EmberJS, jQuery and formdata (IE10+). The code might look stupid, but it worked. Can you please take a look and give some ...
2
votes
0answers
2k views

Data with Handlebars templating function

In my app development, I need to fetch data from backed, and it needs to implement it into an HTML page. I've written the below code for this, but I think it's very lengthy. Can anyone give me ...
1
vote
0answers
24 views

How to splits blade files that contain javascript?

I have these scripts ...
1
vote
0answers
21 views

Subscribe once and reuse the Angular Subscription each second

I am creating a web application using Angular 8. This application is all about talking to the stock markets server and getting the Live updates every second. I have one query here. Below is my code: <...
1
vote
0answers
54 views

Fills inputs of form

...