Questions tagged [jquery-boilerplate]

A jump-start for jQuery plugins development

A boilerplate for jump-starting jQuery plugins development; contains lots of comments to help you get going easily.

11 questions
8
votes
2 answers

JQuery plugin not working when used in multiple places in a single page

I am writing a JQuery plugin for a project I'm working on which turns from tabbed content on desktop devices to an accordion on mobile devices. I've used JQuery Boilerplate…
James Howell
  • 1,392
  • 5
  • 24
  • 42
1
vote
0 answers

jQuery Boilerplate Pattern - local variables vs object properties

I just started using jQuery boilerplate and i am unsure about the use of local variables vs object properties. When a function on the prototype (Plugin.prototype) has makes use of values that do not need to be shared with rest of the functions…
1
vote
0 answers

How to trigger a JQuery plugin method from within a JQuery .load callback

I have written a JQuery plugin for some content which is tabbed content on desktop devices and an accordion on mobile devices. I've used the JQuery Boilerplate…
James Howell
  • 1,392
  • 5
  • 24
  • 42
0
votes
0 answers

jQuery proxy not getting correct context

I am using the jQuery boilerplate and am trying to call one function from within another function and thought that Proxy might be the way to achieve that. Unfortunately I can't seem to get this to work. Below is a heavily stripped down version of…
wickywills
  • 4,024
  • 2
  • 38
  • 54
0
votes
0 answers

jQuery plugin extend order

I'm writing a jQuery plugin using A Highly Configurable And Mutable Plugin Pattern (Until now I've nevere created a "complete" jQuery plugin with these design patterns) Now, I'd like to create a plugin where the options can be extended as data…
0
votes
1 answer

Where to implement a window.resize function in jquery-boilerplate?

I'm trying to convert one of my plugin written with the jquery plugin pattern with the one provided by jquery-boilerplate. My plugin relies on a $( window ).resize() function to make it responsive, however when I try to use it on the…
ctrlmaniac
  • 404
  • 4
  • 13
  • 28
0
votes
1 answer

How to provide public access to jQuery plugin using jquery-boilerplate?

I am trying the jquery-boilerplate pattern over the one the jQuery team provides in the learn plugin section of their site. I provide public access to default settings as I learned in the Advanced Plugin Concepts section. The code below is a simple…
0
votes
2 answers

Why function does not receive inputted JSON data?

I've got a custom jQuery plugin I'm working on with a bit of issue with JSON. I'm using the jQuery plugin boilerplate to create this and am setting the default properties at the top like so: // Create the defaults once var pluginName =…
Tapha
  • 1,491
  • 3
  • 17
  • 32
0
votes
2 answers

jQuery Utility Boilerplate

I'm trying to create a jQuery plugin from jQuery Boilerplate. I also am wanting to create another utility-type plugin separate from this plugin. I've been up and down Google searching for different methods to create one and such. I have run into…
RoLYroLLs
  • 3,113
  • 4
  • 38
  • 57
0
votes
0 answers

jQuery Boilerplate Ability to add $.myplugin to Return Value or Object

I am creating a jQuery plugin from the jQuery boilerplate. I've been successful in my implementation so far. However, I would like my plugging to to be called like this $('selector').myplugin({data}) -- and have it return a chainable object or…
RoLYroLLs
  • 3,113
  • 4
  • 38
  • 57
0
votes
1 answer

jQuery Boilerplate - Losing Access to "this" Scope

I'm trying to write my first plugin using jQuery Boilerplate. The issue I'm having is that I lose access to the this scope as soon as I try to handle an event, due, I assume, to variable shadowing. It seems like would be a common use case for jQuery…
Sonny
  • 8,204
  • 7
  • 63
  • 134