a piece of code that can be added, usually to add features to a larger program / framework / library.

learn more… | top users | synonyms

0
votes
1answer
56 views

Review my first attempt at a jQuery plugin

So this is my first attempt at creating a jQuery plugin. InstaSlider is a lightweight jQuery image slider / carousel plugin that populates content from an Instagram hashtag. After searching for a ...
1
vote
0answers
33 views

Review my Zepto / jQuery plugin base

I am looking for a starting point to code plugins, primarily for Zepto.js (with fall back for jQuery). These will provide reusable functions for Tumblr theming. However, I can't seem to find ...
1
vote
0answers
48 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 ...
0
votes
0answers
63 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 ...
1
vote
1answer
41 views

autocomplete jquery -renderItem- option

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

Review of jQuery Plugin for TreeViews

Looking for a review of my first published jQuery Plugin. It's for treeviews, very basic example demo can be seen at: Demo Everything works fine, just looking to see if I can get some feedback on ...
1
vote
1answer
81 views

Optimizing my jQuery form popup plugin

Im trying to get better at writing jQuery plugins. Was hoping to get some feedback on my notes, but also just about the general architechture and implenmentation of this pattern (dont even know this ...
5
votes
1answer
96 views

CSS Good Practice on a JavaScript Plugin

I've realized a jQuery Plugin recently and made a basic default CSS for it. As I'm mainly a server-side guy, I'm not too familiar with CSS and would like to have insight about what could be improved. ...
3
votes
2answers
184 views

jQuery Object Oriented Plugin

Update: Great answers up to now, but I would still love to have a bit of review about possibility of variable caching and the filter I'm using for rows and page sets! After seeing a lot of ...
2
votes
0answers
65 views

jQuery plugin boilerplate jquib - critics please

Inspired by jqueryboilerplate.com I extended their boilerplate to fit my needs. Comming from the PHP development I wanted to have good starting point for writing jQuery plugins with a defined ...
1
vote
0answers
78 views

jQuery plugin for easy CSS3 transformation

I wrote it more for educational reasons and less as something that can compete with existing alternatives. But I enjoyed writing it and wish to get some feedback, JavaScript is my second language :) ...
1
vote
0answers
37 views

Creating and referencing markup…cloning, etc. efficient system for this plugin

I am pulling multiple feeds from youtube that have a callback function which makes markup from each feed. They add that markup to a documentFragment stored in var data. When all the feeds have ...
1
vote
1answer
74 views

Pattern for creating a JavaScript plugin

I 'm currently using this pattern to create and extend a globally accessible custom plugin to be used in a web application: ; // defensive programming: script may be concatenated with others ...
1
vote
1answer
315 views

jQuery countdown - accuracy

I'm using this simple plugin to show a simple countdown in my pages, what I would like is to keep it more accurate, cause somentimes it seems it isn't accurate. This is the plugin: /* countdown is a ...
0
votes
0answers
68 views

What could make this jQuery Plugin Template nicer?

Or is it already well designed? I've used this for a couple years on jobs and it has been great. I love my template (especially since i made it!), but recently i've caught myself giving this great ...
1
vote
1answer
93 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 ...
5
votes
1answer
146 views

How can I improve/optimize my jQuery PlugIn ?

I have just created my first jQuery plugin. I am looking to suggestions on how to improve it, leading to a code optimization. The plugin is working totally fine, but I think there's room for ...
2
votes
1answer
119 views

Review my first jQuery slider plugin

This is my first jQuery plugin. It is a simple slider that requires very little mark up in html. It works for my purposes but I am not a jQuery expert and I am wondering if there are mistakes or ...
2
votes
2answers
104 views

Please review different approaches for writing plugins/widgets in javascript

I have written a js library (think, jQuery, but with much much less features, and targetted for newer browsers on mobile). This library provides a extension mechanism. One of the ways the extension ...
0
votes
0answers
162 views

Creating boilerplate for jQuery plugins

I've been writing some smaller jQuery plugins lately, and I've been thinking of writing up some boilerplate that I can use when writing new ones. I have code that works (for now), but I want to share ...
4
votes
2answers
643 views

Review my jQuery 'flip' plugin

A little while ago I wrote some jQuery code to make a div flip (similar to the Apple Dashboard). I know there is already code that has this idea from Jon Raasch, but this code positioned divs ...
1
vote
1answer
213 views

Simple jQuery search on input element

Just wanted a way of attaching a jQuery search plugin to an input element (or collection) and be able to pass specific options at invoke time: This is the plugin code (function($){ $.fn.extend({ ...
2
votes
1answer
382 views

Seeking Improvement on jQuery dropdown plugin to prevent scanning the whole DOM on every click

Here is a simple plugin I have written for a jQuery dropdown effect. Simple show / hide (although open classes may be better). When you click the HTML the event searches the whole DOM for a specific ...
0
votes
1answer
208 views

Remove duplicate code by refactoring, but how?

I have the following jQuery plugin that binds touch events and moves an element. In the dunction moveMe & snap there is duplicate code doing the same thing because I couldn't figure out how to ...
0
votes
2answers
130 views

Best way to setup options for jQuery Plugin?

The code below is the basic structure I use for coding plugins, it's pretty standard with the settings extended and the each loop. However now I'm working on the best way to provide setters/getters. ...
1
vote
0answers
19 views

Custom tooltip plugin [duplicate]

Possible Duplicate: Jquery Custom Tooltip Plugin I am currently working with my first plugin (i.e. tooltip plugin) and here is my code: (function ($) { $.fn.Tipify = function ...
1
vote
2answers
340 views

My first jQuery plugin — Heftybox

I'm getting started with my first official jQuery plugin, and I'm just turning now looking for input. I want to know what I'm doing wrong or right so far and if everything is being developed in a ...