Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Thanks for the feedback.  This is a known issue that we will be addressing in 
the near future.

Original comment by [email protected] on 1 Jun 2010 at 6:36

  • Changed state: Accepted

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Glad to hear that. Thumbs up for the project so far. I like this form builder 
class a
lot!

Original comment by [email protected] on 1 Jun 2010 at 6:44

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
The jquery ui datepicker has the options:
changeMonth
changeYear

You could add changeMonth: true, changeYear: true,  into the parameters of the
datepicker.

However I have found an unrelated bug where if you press "today" on the 
datepicker
dialog, the date is not actually entered into the field.

When the changeMonth and changeYear are turned on, when you select a year at 
the top
and dont click on a date at the bottom, the date does not change, which seems
awkward, and not how I would expect. I am assuming its just not setting the 
value
into the textbox properly.

Will have to look into that some more.

Original comment by [email protected] on 2 Jun 2010 at 1:48

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Actually the today button is supposed to just take you to today's date so you 
can
select it... and the chooseMonth/Year are not supposed to fire...

Honestly the buttons turned on at the bottom seem quite useless, I would change:

    $("#{$form->jqueryDateIDArr[$d]}").datepicker({ dateFormat:
"{$form->jqueryDateFormat}", showButtonPanel: true });

to:

    $("#{$form->jqueryDateIDArr[$d]}").datepicker({ dateFormat:
"{$form->jqueryDateFormat}", changeMonth: true, changeYear: true });

which will give you the month and year selectors and not show the buttonPanel, I
would also get rid of the "click here to select a date" thing, and replace it 
with no
text and a calendar icon to the right of the text box.

Original comment by [email protected] on 2 Jun 2010 at 2:04

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
I don't mind that the month/year selectors don't fire the date selection. In my
opinion if someone wants to enter by example it's birth date, he doesn't want 
to fire
the date selector when changing years/month. He goes to the correct date/month 
and
then selects the date he wants. That last action should trigger date selection.

Your idea with putting a calendar icon next to the field is also a possibility, 
but
here we should take into account that positioning the icon should not ruin the 
layout
of the form (the date field should be shorter to take into account the icon 
size)

Original comment by [email protected] on 2 Jun 2010 at 7:52

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
The latest working copy includes the changeMonth/changeYear options in the date 
and datetime elements.  This 
can be downloaded by running svn checkout 
http://php-form-builder-class.googlecode.com/svn/trunk/ php-
form-builder-class.

Because this is a working copy, and not a stable version release, it should be 
noted this falls under the "use at 
your own risk" category.

- Andrew

Original comment by [email protected] on 2 Jun 2010 at 1:00

from php-form-builder-class.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024

Original comment by [email protected] on 2 Jun 2010 at 5:22

  • Changed state: Fixed

from php-form-builder-class.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.