A plug-in (or plugin) is a set of software components that adds specific abilities to a larger software application. If supported, plug-ins enable customizing the functionality of an application.

learn more… | top users | synonyms

1
vote
1answer
40 views

Implementing plugins in my Ruby social aggregator app

Some time ago I started with a small Ruby project. I call it social_aggregator. This software aggregates information from different networks to one xml-stream, which you can reuse. For instance on ...
5
votes
1answer
65 views

Tooltip plugin for portfolio website

I am writing my own tooltip plugin for my portfolio website that I am currently working on. So far I have this code below. It works rather well however I feel that there is a lot I could improve. ...
4
votes
1answer
72 views

Replace radio/checkbox plugin

I've just created my first plugin, but I think I've written too much bloated code. Could you point me to the right direction? $.fn.replaceme = function() { function add_essentials(element) { ...
3
votes
1answer
91 views

jQuery plugin to ajaxify forms

This is my first foray into the wild world of jQuery plugin development. The plugin "ajaxifies" forms, which isn't particularly spectacular: It gets the basics (action, method) from the form ...
2
votes
1answer
59 views

Wordpress filter post by metavalue

I am making a filter to get posts by status that are saved by post metavalue in a Wordpress plugin. It is a question and answer system, where the question and answer are post objects. // Filter ...
0
votes
0answers
63 views

jQuery plugin best practice. Can this be improved?

This is a plugin I wrote a while ago and I'm trying to improve it. Is this the best practice for jQuery plugins? Should I use options for flexibility? The initial aim was to replicate the syntax for ...
4
votes
2answers
94 views

My first jQuery plugin - blurStuff()

I've played with jQuery for some time now but have never written my own plugin. A question was asked: "can I blur an image using jQuery?" and I thought this to be a decent candidate to play with. ...
5
votes
1answer
400 views

Review of a jQuery plugin that helps create a responsive Menu

I've just launched my first project on GitHub. It's a jQuery plugin that helps create a responsive menu. It deals with interactivity (essentially using toggle and some classes), and leaves all the ...
1
vote
1answer
227 views

What about accessing jQuery plugin methods with triggers?

There is my jQuery Color Picker Sliders plugin you can access on jsFiddle: http://jsfiddle.net/styu/5H8cA/ I want to access some of the methods from outside of the plugins scope, namely showPopup(), ...
1
vote
0answers
148 views

jQuery carousel plugin - first plugin, advice for improvement and removal of errors

I have recently written my first jQuery plugin. It is a responsive jQuery carousel plugin. It seems to be functioning well apart from on window resize. Sometimes if the window is resized too fast I ...
5
votes
1answer
70 views

Plugin for pulling Tweets

I've been working on a jQuery plugin for pulling tweets since the v1 endpoints were all closed off and you need oAuth now. This is just the jQuery part but if you want to see the php behind it I'll be ...
7
votes
1answer
176 views

First jQuery Plugin - SmoothSlider

I've been working with jQuery, mostly consuming plugins and using bits and pieces here and there for other functionality. Anyways, I wrote some standalone functionality in jQuery for a project and ...
2
votes
0answers
254 views

jQuery plugin: custom event to match CSS :target pseudo-class

The following code makes jQuery trigger a new target event on elements when they become the target of the fragment identifier. For a very basic example, the following target event handler: ...
2
votes
1answer
33 views

Cross-browser/OS testing and review of my jQuery Plugin (Hovr)

I've created a simple jQuery plugin to allow developers to quickly create image hover effects with very simple markup. I also created an option to automatically create the mouseover or mouseout ...
0
votes
0answers
94 views

jQuery RSS Feed Calendar Plugin Peer Review

This plugin is initialized like so: $("#calendar").ksdCalendar({ feedUrl: "http://www.kent.k12.wa.us/site/RSS.aspx?DomainID=275&ModuleInstanceID=4937&PageID=4334", elemHeight: 750 }); ...
0
votes
2answers
130 views

First jQuery Plugin (Request Code Review)

Would like a code review for my first simple slideToggle jQuery plugin. Demo: https://rawgithub.com/Shivambh28/ezToggle/master/demo.html (function($) { $.fn.ezToggle = function(options) { ...
1
vote
2answers
101 views

First jQuery Plugin, Would like a code review

I created my first jQuery plugin over this weekend. I would like a code review so that I can improve my code in the future and learn from any mistakes I make. Any tips for Github would also be greatly ...
2
votes
1answer
47 views

Review my browser reward plugin

I've never put together a plugin before but I thought this would be useful to push technology forward. It's basically a browser sniffer, but if the user has a modern browser it will reward them for ...
0
votes
1answer
123 views

Review my jQuery plugin structure

I'm trying to learn learning javascript and jQuery plugin standards, and after some googling and testing I've come up with this pattern: ;(function(window, document, $, undefined){ var plugin = ...
0
votes
1answer
142 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 ...
2
votes
0answers
146 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 ...
2
votes
0answers
97 views

jQuery dropdown plugin

I'm looking for OOP tips or advice. ;(function ( $, window, document, undefined ) { if ( typeof Object.create !== 'function' ) { Object.create = function (o) { function F() {} ...
1
vote
0answers
121 views

jQuery highlightNavigation plugin

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
1k views

autocomplete jquery -renderItem- option

$(function() { function log( message ) { $( "<div>" ).text( message ).prependTo( "#log" ); $( "#grille" ).scrollTop( 0 ); } $( "#my_ac" ).autocomplete({ source: ...
0
votes
1answer
190 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 ...
2
votes
1answer
157 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
120 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
476 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
100 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 ...
2
votes
1answer
163 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
1answer
56 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 ...
2
votes
1answer
2k 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
579 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
1answer
110 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
214 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 ...
6
votes
1answer
214 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
129 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
145 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 ...
2
votes
1answer
235 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
901 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
263 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
514 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
254 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
207 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
2answers
401 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 ...