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

learn more… | top users | synonyms

1
vote
0answers
22 views

Jquery Dropdown plugin looking for OOP tips or advice!

;(function ( $, window, document, undefined ) { if ( typeof Object.create !== 'function' ) { Object.create = function (o) { function F() {} F.prototype = o; return ...
1
vote
1answer
44 views

JQuery is working but clunky/slow

I'm coming close to finishing a site where there are a number of jQuery functions going on. They all work, but the page is just running a bit too clunky. The fading in and out is just not as smooth as ...
0
votes
0answers
28 views

jQuery highlightNavigation plugin, review request

I have written my first jQuery plugin using one of the design patterns suggested on jQuery's site: http://docs.jquery.com/Plugins/Authoring. As listed below in the description comment, it's purpose ...
2
votes
1answer
92 views

Works, help clean up code

This JavaScript code works but I do not think it's coded cleanly, can anyone help clean it up? This code is for the back-to-top feature, when user gets to the bottom of the page, it scrolls them back ...
1
vote
1answer
48 views

How can I make jquery animations faster for mobile devices?

I recently made this campus timeline for my university. You can see it here My question is this: When viewing the timeline on a mobile device (not a tablet), the navbar changes so that you can jump ...
1
vote
1answer
91 views
+100

Jquery sortable style function

This is a basic sorting function written in jQuery that moves items in the DOM around to create empty spaces for a droppable(). Since there is so much going on in a droppable over event, i'd love some ...
-2
votes
0answers
62 views

Browser State change code

I've written this simple snippet that will intercept clicks to links, grab the href, load it via ajax, then update the state in the browser. Also the back button works well, which is a must. The links ...
0
votes
1answer
68 views

Tidying js files

I usually find the .js files to be quite messy and the truth is that mines are even worse than the average as, being soft, I'm not the sharpest tool neither at Jquery nor Javascript. So I would ...
1
vote
0answers
87 views

What's wrong with this javascript programming approach?

Helllo people I'm now developing an instant messaging system but I'm a little confused : I can't decide which approach do I have to choose! Here is a code and I want you to tell me what is good/bad ...
1
vote
0answers
19 views

Jvector Map add/remove function shorten code

I am achieving a hover state per continent through: var continentId ="" function getID(continentId){ jQuery.each(mapObject.mapData.paths, function(i, val) { if (val.continent == ...
1
vote
1answer
37 views

Using .hover recommended?

Is there a better way to write the JS for this? I'm asking because I read from somewhere that using .hover isn't recommended. Also, if I move the mouse in and out of the box really fast, the box fades ...
0
votes
2answers
49 views

help me optimize/simplify this jQuery function

This works as intended, but was wondering if there is a more efficient way of coding this. if (window.location.href.indexOf('/search/') >= 0) { switch ($.cookie("Layout")) { case ...
1
vote
2answers
22 views

jquery checking nested input with repetitive code

I have a table with 'nested' inputs that need to be checked or unchecked when a button 'select all' is pressed. There are several levels that can be toggled with their respective 'select all' button. ...
1
vote
0answers
26 views

Exceptions for control flow

I just wrote the following javascript (jQeury loaded): var valid, ui; try { $.each(this._cache, function() { $.each(this, function() { $.each(this, function() { ...
0
votes
1answer
20 views

autocomplete jquery -renderItem- option

$(function() { function log( message ) { $( "<div>" ).text( message ).prependTo( "#log" ); $( "#grille" ).scrollTop( 0 ); } $( "#my_ac" ).autocomplete({ source: ...

1 2 3 4 5 41
15 30 50 per page