NetTalk Central

Author Topic: jQuery Datepicker DateOptions not working on Date Locator!  (Read 7129 times)

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
jQuery Datepicker DateOptions not working on Date Locator!
« on: September 20, 2011, 06:52:54 AM »
Hi,

In WebHandler, embed ProcessLink, before Parent Call I have set the Dutch translation of the jQuery Datepicker. See below.
This is working very well with Date Fields on Forms, but I have several browses with Date Locators and here the Date Options are ignored!
So on Date Locators I get the English default Datepicker.
How can I solve this?

Best regards
Jeffrey

Code: [Select]
  Self.site.DateOptions = 'monthNames: [''januari'', ''februari'', ''maart'', ''april'', ''mei'', ''juni'', ''juli'', ''augustus'', ''september'', ''oktober'', ''november'', ''december'']'&|
                          ',monthNamesShort: [''jan'', ''feb'', ''maa'', ''apr'', ''mei'', ''jun'', ''jul'', ''aug'', ''sep'', ''okt'', ''nov'', ''dec'']'&|
                          ',dayNames: [''zondag'', ''maandag'', ''dinsdag'', ''woensdag'', ''donderdag'', ''vrijdag'', ''zaterdag'']'&|
                          ',dayNamesMin: [''zo'', ''ma'', ''di'', ''wo'', ''do'', ''vr'', ''za'']'&|
                          ',dayNamesShort: [''zon'', ''maa'', ''din'', ''woe'', ''don'', ''vri'', ''zat'']'&|
                          ',closeText: ''Annuleren'''&|
                          ',currentText: ''Vandaag'''&|
                          ',dateFormat: ''dd-mm-yyyy'''&|
                          ',nextText: ''Volgend'''&|
                          ',prevText: ''Vorig'''&|
                          ',showWeek: true'&|               !toon weeknummers
                          ',weekHeader: ''wk'''&|           !dit wordt boven de weekkolom getoond
                          ',firstDay: 1'&|                  !kalender begint op maandag i.p.v. zondag
                          ',showOtherMonths: true'&|        !toon ook de dagen van andere maanden
                          ',selectOtherMonths: true'&|      !selecteer ook de dagen van andere maanden
                          ',buttonText: ''Hulpkalender'''&| !tooltip van het kalendericoontje
                          ''

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #1 on: September 20, 2011, 07:08:26 AM »
Did you try setting p_options in the webhandler CreateDateInput method?

JAT
chris
Real programmers use copy con newapp.exe

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #2 on: September 20, 2011, 10:28:51 AM »
Did you try setting p_options in the webhandler CreateDateInput method?

JAT
chris

I just tried, but when I set p_options, it remains empty, very strange.
So it doesn't work for the locator date fields, but it does work for the normal form fields.

Perhaps Bruce can help me with this?

Best regards
Jeffrey

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #3 on: September 20, 2011, 10:47:35 AM »
It should - all date fields use this to create the date field entry control.
I'd be interested in what/where the difference is.

chris
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #4 on: September 20, 2011, 03:07:43 PM »
yeah, I checked the code, and it's not supported. I'll have to make a tweak to the tempalte generated code for you.

cheers
Bruce

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #5 on: September 20, 2011, 09:25:46 PM »
yeah, I checked the code, and it's not supported. I'll have to make a tweak to the tempalte generated code for you.

cheers
Bruce

Thanks Bruce,

That would be nice, so that it will be possible to have my Dutch translation on all Datepickers, also with the same options, like start on Monday, show weeknumbers etc.

Best regards
Jeffrey

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #6 on: November 01, 2011, 11:19:30 PM »
Hi Bruce,

Do you already have a tweak for this issue?

Best regards
Jeffrey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #7 on: November 02, 2011, 12:59:11 AM »
not yet.

cheers
Bruce

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #8 on: March 26, 2012, 10:25:57 AM »
Hi Bruce,

Any news on this?
Still waiting for a possiblity to translate/set the date options on Date Locators.

Best regards and thanks
Jeffrey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #9 on: April 01, 2012, 11:45:05 PM »
done for 6.27

cheers
Bruce

Jeffrey Kuijt

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Email
Re: jQuery Datepicker DateOptions not working on Date Locator!
« Reply #10 on: April 01, 2012, 11:47:47 PM »
Hi Bruce,

That's great! Thanks a lot!

Best regards
Jeffrey