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

  • Home
  • SEARCH
  • 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 7925121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:08:32+00:00 2026-06-03T18:08:32+00:00

In this JsFiddle : http://jsfiddle.net/maxl/mCXND/ (copied and modified from http://jsfiddle.net/ud3323/XMgwV/ ) I try to

  • 0

In this JsFiddle : http://jsfiddle.net/maxl/mCXND/

(copied and modified from http://jsfiddle.net/ud3323/XMgwV/)

I try to create an Ember DatePicker based on JQuery’s.

The first problem I run into is this line :

var ui = jQuery.ui[this.get('uiType')](options, this.get('element'));

jQuery.ui[this.get(‘uiType’)] doesn’t return a function, so I suppose that the solution
that I started with works for some jQueryUI widgets, but not all.
I would like a solution that will work for all JQuery-UI widgets,
and in particular JQueryUI’s Datepicker.

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-03T18:08:45+00:00Added an answer on June 3, 2026 at 6:08 pm

    If you look at the jqueryui code, you see that some of them are invoked as a function, others not. You can solve it using this:

    var ui;
    if (typeof jQuery.ui[this.get('uiType')] === 'function') {
       ui = jQuery.ui[this.get('uiType')](options, this.get('element'));
    } else {
       ui = this.$()[this.get('uiType')](options);
    }
    

    working example: http://jsfiddle.net/PzsrT/7/

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

Sidebar

Related Questions

Please see this jsFiddle: http://jsfiddle.net/jRGyS/ I want to create two columns from the blocks,
I have created this jsfiddle: http://jsfiddle.net/mfnxm/1/ I am trying to create this JSON: [{
The following HTML and JavaScript is taken from parts of this jsFiddle: http://jsfiddle.net/stephenjwatkins/2j3ZB/3/ HTML:
Having some issues trying to create a fixed header layout for this jsfiddle: http://jsfiddle.net/4xk4D/107/
In this JSFiddle http://jsfiddle.net/JQ6qF/ have I striped down the problem. Try click on Save
Have a look at this jsfiddle: http://jsfiddle.net/Dh96F/1/ The Expand button will animate the widening
I'll let this jsfiddle describe most of the problem for me. http://jsfiddle.net/zAPVQ/4/ I've got
I this: http://jsfiddle.net/ZP76c/ I'm trying to control the scope at which jQuery selects elements
I have a setup like this: http://jsfiddle.net/zzjSC/3/ and I am wondering why the surrounding
I have elements structured roughly like this: http://jsfiddle.net/zyySd/ Is there any way to achieve

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.