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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:39:03+00:00 2026-06-10T04:39:03+00:00

i am using dojo.form.datetextbox to generate the calender in which i use the constraints

  • 0

i am using dojo.form.datetextbox to generate the calender in which i use the constraints for user to select only selected years , it works fine but i want to show only the those year which is valid i.e between selected year ,, but calender is show me the year from current ..
i am using following code.. of constraints

function setmax(){
            var w = dijit.byId('dob');
            w.constraints.datePattern='dd-MM-yyyy';
            w.constraints.max= new Date(1947,08,15);
            w.constraints.min= new Date(1987,1,1);

            w.set('value', w.get('value')); // reformat display to short year
        }
        dojo.ready(setmax);

please help me to show years from 1987 ..

  • 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-10T04:39:04+00:00Added an answer on June 10, 2026 at 4:39 am

    how about:

        function setmax(){
            var w = dijit.byId('dob');
            w.constraints.datePattern='dd-MM-yyyy';
            w.constraints.max= new Date(1987,1,1);
            w.constraints.min= new Date(1947,08,15);
    
            w.set('value', new Date(1987,1,1)); // reformat display to short year
        }
        dojo.ready(setmax);
    

    also not shure about this, but aren’t your min and max constraints inverted?

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

Sidebar

Related Questions

I'm trying to get a filtering select work with a Dojo enabled form using
I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore.
I'm using a standard output of Zend_Dojo_Element_DateTextbox AKA dijit.form.datetextbox... I want to use NULL
I am using dojo forms and submitting using AJAX. I use 2 methods of
Using a form in a dialog box I am using Dojo in jsp to
I am using Dojo Toolkit and I want form elements to serialize into array,
When I post a form using dojo.xhrPost , I get all the fields in
Im new to Dojo and im trying to make some ui, but only using
I have an HTML form using dojo and have the following code for a
I am using dijit.form.FilteringSelect to provide a way to select values from a <select>.

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.