Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 944001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:31:22+00:00 2026-05-15T22:31:22+00:00

I have a bunch of methods that make use of jquery to basically generate

  • 0

I have a bunch of methods that make use of jquery to basically generate a list view. The problem is I need to use this thing multiple times, so I need to make it reusable.

  1. Should I just write a jquery plugin?
  2. Should I write a non-jquery plugin Js Object (like a class in non-prototype languages) and just create instances as I need?

The primary concern is how to handle the case where I need to modify one of the methods that make up my plugin. So my reusable component has to be modifyable. I know how to do it with approach 2, not sure how to do it with approach 1.

edit — to give an idea of what this is: its basically a list view plugin. So, it takes an xhr response, parses the xml/json inside, and adds a list of divs to a containing div. I was surprised I couldn’t find an existing plugin to do this. Other js frameworks have this.

The reason it needs to be extensible is, it might have to deal with xml/json in the response — so the handling of response is different. It might have to deal with outputting different templates for each response. etc…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:31:22+00:00Added an answer on May 15, 2026 at 10:31 pm

    Just write a jQuery plugin. Your description is on the vague side, but I’d say that if you need to modify one of the methods in the plugin – and I’m not sure what degree of flexibility you need – you can just pass in a function that contains whatever specific logic, into your plugin’s config object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of python methods that follow this pattern: def delete_session(guid): conn
So, I have an interface with a bunch of methods that need to be
I have a well defined service contract which exposes a bunch of methods. We
I have a set of unit tests, each with a bunch of methods, each
After I have created a serious bunch of classes (with initialize methods), I am
I have bunch of lists like this: out[3] [[3]] [1] forum=28&mid=11883 [2] forum=29&mid=11884 out[4]
I have a bunch of methods with varying signatures. These methods interact with a
Problem: I have a document class which contains a list of objects. These objects
So, the issue is that I have a bunch of internal classes in my
So I have this class which is an abstract parent class to a bunch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.