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

learn more… | top users | synonyms

-1
votes
0answers
11 views

Jquery prefixing for js files [closed]

In an effort to make jquery readable.... Is there any hard and fast rules for prefixing methods based on the .js files they might reside in? For instance, if I have a common.js file in my project, ...
1
vote
1answer
7 views

Emulating a carousel loop in JQuery, stopping setInterval on click

I was hoping someone out there could help me make my 'carousel' slideshow more efficient. I have it functioning, but I'm using very primitive methods for accomplishing this. I also have it in a ...
2
votes
0answers
26 views

Wrapper for jquery ajax to ensure redirects occur on clientside

Recently I had the need to make some ajax calls within a MVC 3.0 with Razor and jQuery application. After a bit of trial and error and refactoring it was discovered that a number of different needs ...
6
votes
2answers
148 views

Multiple if/else statements

I'm learning programming and would appreciate any feedback on my code. I've come up with the below code. The logic works fine but the code itself seems rather confusing to me. Are there some patterns ...
1
vote
1answer
35 views

Ajax plugin that binds to click and page load

I have an app that has a number ajax requests and instead of writing them all out, I created a plugin that takes options based on the request I am making. I would like the ajax requests to occur when ...
4
votes
2answers
74 views

Ways of improving this code

I was interested in how this code can be improved apart from basic caching. Any input would be greatly appreciated. This object creates 'tokens' much like that the ios mail app and the tag section ...
1
vote
2answers
62 views

jquery/javascript - refactoring multiple .on() events

My app has a feature that when you click the "new data" button, HTML is loaded to the page via ajax. Because I am using ajax, all events I want to add has to be bound using the on() method. There ...
2
votes
2answers
133 views
+50

Javascript app review

So this is an app I'm working on, and I'd like to get some feedback on it. I'm leaving some key parts out, as I don't want everyone everywhere to have access to the complete code. The main pieces that ...
1
vote
1answer
25 views

jquery - form data to object to html

I have a form. When I click the save button, I want to create an object from the data and pass that info to HTML elements on the same page (div.form_content). I decided, instead of creating a ...
1
vote
1answer
44 views

jquery key up function slow -password strength indicator [closed]

Hey all, can someone tell me why this script is slow? <div id="demo"> <input type="password" class="password text-input" id="password" value="" /> <div id="progressbar"> ...
3
votes
1answer
48 views

function to generate values of a javascript object

The following code works but I am wondering if it can be improved both readability and performance. I am using jquery and underscore. Any suggestions, comments or feedbacks will be appreciate. thanks. ...
2
votes
2answers
20 views

Selector targets overly obtuse - recommendations?

This presumably simple task resulted in much more scripting logic than I thought would be necessary. Goal: when the user clicks a button inside one of the divs, it affects said div. Issues: I did ...
1
vote
1answer
87 views

Toggleclass best practice (JQuery and CSS syntax)

I've created this fiddle: http://jsfiddle.net/9SXLJ/ to demonstrate something I've been working on. I've been trying to mimic the behaviour of Twitter where a tweet is expanded, the border-radius and ...
0
votes
1answer
22 views

Processing a collection of objects, one at a time, with an asynchronous method.

I currently use setInterval and a wait flag to process this collection. Is there a cleaner way? var wait = false; var processInterval = setInterval(function(){ if(!wait){ var currentVideo ...
1
vote
1answer
59 views

Code to manage weekdays and hours

I have the following code: 1) the html part consist of two container. Both containers have a list of hour and day weeks 2) a javascript code which is used to manage these lists of inputs. I ...

1 2 3 4 5 29
15 30 50 per page