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

learn more… | top users | synonyms

2
votes
0answers
14 views

Flask site that uses x-editable to edit elements and update mysql db

This code is built in flask, it allows a user to edit a title and a description of a div. I have used the X-editable library which allows a user to edit text and use ajax requests. I also process ...
-4
votes
0answers
14 views

Casading dropdowns with preselect values in MVC [on hold]

I have a requirement of cascading 3 dropdowns in MVC which are interrelated to each other. I am using Chosen plugin of JQuery. First dropdown is auto filled from controller, 2nd dropdown is filled on ...
-1
votes
0answers
12 views

make ajax call and fetch data from active directory [on hold]

i have been able to fetch data with an ajax call from active directory .The php file used to fetch data from active directory is below : ...
0
votes
0answers
14 views

Marionette/Backbone Template

I have created an template for an Marionette-Application. Now I want to know if i could improve some code statements. I hope you could give me some helpfull hints. Thanks to everybody. The following ...
-5
votes
0answers
33 views

jQuery code improvement [on hold]

Basically, I'm having a filter option, as normal on click of any anchor link below respective filter is applied and divs are shown. Except during all, I need to show only 2 item max from each section. ...
2
votes
1answer
41 views

jQuery plugin to toggle truncated text

I have from a recommendation on my other question here: My other review post Developed a truncate plugin, and was wondering if you guys could help me improve it or see where I have gone wrong. ...
1
vote
1answer
35 views

Enabling or disabling input fields

In my Rails app, I have a form. The form has radio buttons for entity type and has a text field for SSN and another for EIN. Based on the radio button selected, one of the text fields will be ...
2
votes
1answer
61 views

Truncate text to some number of words when clicked

I am currently using the code below to truncate text: ...
0
votes
2answers
40 views

Scrolling elements into view

On scroll, I am adding a class (current) to particular elements. The code looks like it can be made better. For example, it seems like I am reusing the same things ...
0
votes
2answers
25 views

Targeting string to wrap with HTML element to italicize

Objective I set up my page to dynamically wrap <i> tags around a targeted keyword (string) on a title. Background When I worked on the static parts of the ...
-4
votes
1answer
64 views

Make my jquery shorter? [closed]

I'd like shorten my jQuery. I know this is possible using this element and child but I don't know how it works. I have an element being shown and hidden on click, basically. They all have the same ID,...
2
votes
0answers
20 views

Responsive layout for showing/hiding 4 panels

I have 4 panels that will contains tables for data. There will be instances where a panel will contain no data, so I have combated wasted space with the code below. I'm relatively new to both jquery ...
1
vote
1answer
29 views

Display related images based on text name

Instead of "Black and Green" text, We are displaying "Black & Green" images with help of below code. What we want is this concept should work for all colors, for that one solution is i need to ...
3
votes
1answer
31 views

Navigating HTML5 canvas checkerboard with nested loops / multi-dimensional arrays

I'm creating a web app to create pixelmaps for large LED displays. The maps are basically large checkerboard patterns of various sizes with different constraints. I'm running into snags trying to ...
2
votes
1answer
40 views

Filtering script for products by category

I built a simple product filtering feature that works at least in the browsers and platforms that I have tried using it on, but I am unsure about a couple of aspects of it. I built this on a ...
0
votes
1answer
42 views

Displaying weather data from an Arduino

Please review my code, for performance and readability. 3 issues I am facing are Uncaught Exception : out of memory (in firefox) randomly Failed to load resource: The request timed out. Even if the ...
-2
votes
0answers
17 views

Adding wrapping tags before and after a specified tag via query [migrated]

I've recently started a course on jQuery and wondered what's going wrong with my code. I'm wanting to add an opening li before each "wcprow" div and closing the li after the closing div... so it looks ...
0
votes
0answers
63 views

Ajax Validation Handler

I'm trying to transition my app from a collection of server scripts to something that uses SOLID concepts. I'm stuck trying to figure out a better way to do ajax validation. I currently have a file ...
1
vote
0answers
40 views

Generate Personal Financial Report — to OOP or not to OOP php

I've developed a little personal financial web app in PHP/JQuery/MYSQL. The program currently does everything I need it to do, but I know that I'm an amateur coder. Looking for some help on cleaning ...
5
votes
1answer
53 views

Dynamic attribute key selector

I'm basically trying to build a function that searches all nodes on the DOM to check for data attributes, then swap them out with whatever is stored with the "data-intl-" attribute. For example, if ...
1
vote
2answers
42 views

Code that rotates images in a set of divs

I am rotating images inside some divs. An image is associated with a link.Eg: image0 is associated with link0, image1 with link1 and so on. image0 and link0 should display in pos-1 image1/link1 ...
0
votes
2answers
69 views

Iterating through specific elements of an array with filter()

I have the following code which iterates through some divs of an array to show() them. I was wondering if there is any way to rewrite the ...
2
votes
1answer
42 views

Function with jquery.alphanumeric

I want to implement jquery.alphanumeric in HTML pattern, so I used a jQuery plugin from here. Can this be shortened or improved? ...
5
votes
2answers
126 views

Using regex to replace strange characters

After importing some products from a csv strange characters have shown up on the page and it would be too much work to manually go to each product and remove them so I made this script to deploy on ...
3
votes
1answer
57 views

Grouping events in jQuery

Hi I need some help grouping events in jQuery. I feel the code is too long and I need to add more id's to fire events. This is a jQuery time update events for a video player with multiple id's. My ...
1
vote
1answer
44 views

Simple parallax using jQuery and CSS

I'm working on a website and am trying to implement a parallax effect on an image and title (possibly other elements too). I'm trigering the effect with .scroll() ...
1
vote
1answer
63 views

Webpage with four color images

I have a very simple webpage that contains 4 color images. When I hover over any of the images the original (xxxx1.jpg) is replaced by a black and white version (xxxxx2.jpg) of the same image, and ...
1
vote
1answer
47 views

Check if user selects correct Spanish word article

All Spanish nouns have a gender (masculine [el] or feminine [la]; e.g. la casa, el perro). I'm using some javascript and jquery to display a random word from a list of nouns (2D array), as well as ...
1
vote
0answers
33 views

Twilio Real-time SMS with JQuery and PHP

I'm currently working on a real-time SMS System but I'm fairly positive that my current implementation is a terrible practice and I'm looking for guidance to be more efficient with this. The Attempt ...
-2
votes
1answer
48 views

Stateful Javascript plugin [closed]

I am new to Jquery plugins, I was searching a lot about widgets and plugins, however I am still not sure if this code is okay. Should I use widgets for stateful plugins? Or is this plugin correct? ...
0
votes
0answers
26 views

Filtering data from an input field

I have created a function to filter data from an input field: ...
0
votes
1answer
44 views

Changing background color of HTML elements based on user input

This is jQuery code which works like this: depending on a user choice it changes the color and background of some elements in the DOM. The behavior is ok, is doing exactly what I want. And as you ...
0
votes
0answers
30 views

jQuery custom slider

I'm new to jQuery and JS and have recently tried turning a working slider into a plugin for the first time for a small project. I would love some feedback, code improvement, optimization and any do's/...
1
vote
0answers
15 views

jQuery focus/blur pass variable cleanup challenge

Little bit of a challenge question. What I have works though I'm no JS wizard, wondering if anyone has a better/preferred way of doing what I'm doing? Basically, I want to dynamically set a variable ...
4
votes
1answer
152 views

HTML scraping and using jQuery

I wrote a Chrome extension that lists upcoming concerts for the next seven days, this month, and next month. I had trouble with the nextSeven() method, especially ...
0
votes
1answer
40 views

Connection request to LinkedIn profiles on search page

I implemented a script for a LinkedIn user to connect with all profiles on a LinkedIn search page and move to the next one automatically. As I am a new javaScript programmer, could someone look at my ...
2
votes
1answer
38 views

Clipboard support in jQuery using revealing module pattern

I have recently been getting into the habit of leveraging the revealing module pattern for all my code. I used this guide for inspiration, but my code doesn't feel as elegant. ...
2
votes
0answers
94 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 ...
3
votes
2answers
128 views

Adding multiple rows in an HTML table using jQuery

I have this function that allows the user to supply a number and that many rows are appended to the existing table: ...
0
votes
0answers
30 views

jQuery slideshow with connected links and the ability to pause/resume when hovered - follow-up

The stated goal from Take 1: I want a slideshow with three primary pieces of functionality: Has text links that act as bullet-points and can jump directly to a slide when clicked. Pauses ...
4
votes
1answer
57 views

jQuery responsive tabs to accordion

I wrote a script that adapts HTML tabs for different screen resolutions. On a small screen it's an Accordion and on wider ones they're Tabs. The script is for a production site, and I'm not so good in ...
3
votes
1answer
59 views

jQuery slideshow with connected links and the ability to pause/resume when hovered

Update: Here is Take 2. I want a slideshow with three primary pieces of functionality: Has text links that act as bullet-points and can jump directly to a slide when clicked. Pauses when a slide or ...
3
votes
0answers
30 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. ...
4
votes
0answers
85 views

Accessing a REST WebService and updating local HTML objects with Modular JS

I have this code I am doing to make my code modular js: ...
4
votes
2answers
55 views

Getting JSON with jQuery, creating a function that displays the data from two separate feeds

I have written my first JavaScript program from scratch and am looking for advice to check whether it is efficient and effective or how it could be improved. ...
3
votes
1answer
64 views

jQuery autocomplete for all place names in the UK

I made an autocomplete input box of every town, city and village in the UK. Yes, every single one. The load times are painful so is there a way to reduce that? Here is a sample: ...
0
votes
0answers
29 views

Validation on programmatically created links list

This code works for what I need. It's not that long, so no big deal, but I'd like to get better at this. How can I improve this? ...
0
votes
0answers
43 views

Library repository for adding, deleting and editing a list of books made with EJB and Rest

This was my first time designing the application from scratch, I feel I could miss something important, but I'm not able to find it by myself with no experience. Here is the pom.xml where I put all ...
3
votes
1answer
30 views

Change functions based on jQuery plugin {options}

I'm developing my first legitimate jQuery plugin, and I'm trying to keep it very modular. To do this, I'm writing many individual functions, which is fine, but I need a clean way to determine what ...
0
votes
2answers
54 views

Toggle nav that switches a banner section

I built this toggle nav that switches a banner section between the slider and a map. All works well but I would like to know how I could improve my JavaScript as I am quite new to it. ...