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 8194799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:56:20+00:00 2026-06-07T04:56:20+00:00

I have a custom jQuery widget that is being called from my app that

  • 0

I have a custom jQuery widget that is being called from my app that uses backbone.js for MVC. How can I use the backbone events pattern in my custom jQuery widget?

function( $ ) {
  $.widget( "medex.chooser", {
  ...
  _create: function() {
      // Would I create a new backbone view here???
  }
}

Thanks.

  • 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-06-07T04:56:22+00:00Added an answer on June 7, 2026 at 4:56 am

    I think you need to define a custom View that is then called by your custom widget.

    In your app initialization code, for example:

    APP = {};          // your app's global object
    APP.Views = {};
    
    APP.Views.WidgetView = Backbone.View.extend(
    {
        events: {
            "click .grid1" : "onGrid1Click"
        },
    
        initialize: function() {
            // code here
        },
    
        onGrid1Click : function(evt) {
            // code here
        }
    });
    

    Then this will be the constructor code for your widget:

    function Widget(element) {
       this.view = new APP.Views.WidgetView({ el: element });
    }
    

    This code might not be entirely valid, but should give you an idea of the structure you were looking for. Lemme know if this works for you.

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

Sidebar

Related Questions

I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
How do i select elements that have my custom data attribute data-validate with jQuery
I'm trying to use $(button).button(); but jquery-ui-1.8.16.custom.min.js used by SlickGrid doesn't have the button
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have a standard jQuery UI dialog. Inside that dialog, I have a custom
Mornin' all, I have troubles to play with jQuery UI autocomplete widget events. I
I have a multiple jQuery slider and write custom style for that , in
I currently have a web app that uses the google maps API, PHP, and
I have a custom jQuery plugin which binds a change event to a form
I have a simple form and would like to add a custom jQuery validation

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.