Quantcast

Calendar in input field.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Calendar in input field.

Rafael Chacón
Hello,

The calendar in input field "<input alt="$_SESSION['DefaultDateFormat']" class="date" maxlength="10" name="DateBanked" onchange="isDate(this.value, '$_SESSION['DefaultDateFormat']')" required="required" size="10" tabindex="2" type="text" value="$FormatedValue" /> works with formats "d/m/Y", "d.m.Y", "m/d/Y", and "Y/m/d", but it does not work with format "Y-m-d". That is: calendar does not go to the date displayed in the field.

Anyone have any idea where could be the problem?

Best regards, Rafael.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Calendar in input field.

gsavix

see what locale your server is using for inference format currencies ... decimals and dayes. this is hard coded inside default functions. look at sources.


Em 16/10/2016 18:18, "Rafael Chacón" <[hidden email]> escreveu:
Hello,

The calendar in input field "<input alt="$_SESSION['DefaultDateFormat']" class="date" maxlength="10" name="DateBanked" onchange="isDate(this.value, '$_SESSION['DefaultDateFormat']')" required="required" size="10" tabindex="2" type="text" value="$FormatedValue" /> works with formats "d/m/Y", "d.m.Y", "m/d/Y", and "Y/m/d", but it does not work with format "Y-m-d". That is: calendar does not go to the date displayed in the field.

Anyone have any idea where could be the problem?

Best regards, Rafael.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Calendar in input field.

phildaintree
The JavaScript function isDaye() in JavaScript miscfumctions.js

Phil
Phil Daintree
+64 (0)275 567 890

On 17/10/2016, at 11:27 AM, gilberto dos santos alves <[hidden email]> wrote:

see what locale your server is using for inference format currencies ... decimals and dayes. this is hard coded inside default functions. look at sources.


Em 16/10/2016 18:18, "Rafael Chacón" <[hidden email]> escreveu:
Hello,

The calendar in input field "<input alt="$_SESSION['DefaultDateFormat']" class="date" maxlength="10" name="DateBanked" onchange="isDate(this.value, '$_SESSION['DefaultDateFormat']')" required="required" size="10" tabindex="2" type="text" value="$FormatedValue" /> works with formats "d/m/Y", "d.m.Y", "m/d/Y", and "Y/m/d", but it does not work with format "Y-m-d". That is: calendar does not go to the date displayed in the field.

Anyone have any idea where could be the problem?

Best regards, Rafael.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
If anyone is wondering about the persistently nasty comments made by Tim Schofield and wants the full story please see: http://timschofield.blogspot.com/ Hell hath no fury like a woman (or Tim) scorned
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Calendar in input field.

Rafael Chacón
Gilberto, Tim and Phil:

Thank you, very much for your help. I fixed the function convertDate(dS,dF) in ~/javascripts/MiscFunctions.js.

Best regards, Rafael.


2016-10-16 18:32 GMT-06:00 Phil Daintree <[hidden email]>:
The JavaScript function isDaye() in JavaScript miscfumctions.js

Phil
Phil Daintree
+64 (0)275 567 890

On 17/10/2016, at 11:27 AM, gilberto dos santos alves <[hidden email]> wrote:

see what locale your server is using for inference format currencies ... decimals and dayes. this is hard coded inside default functions. look at sources.


Em 16/10/2016 18:18, "Rafael Chacón" <[hidden email]> escreveu:
Hello,

The calendar in input field "<input alt="$_SESSION['DefaultDateFormat']" class="date" maxlength="10" name="DateBanked" onchange="isDate(this.value, '$_SESSION['DefaultDateFormat']')" required="required" size="10" tabindex="2" type="text" value="$FormatedValue" /> works with formats "d/m/Y", "d.m.Y", "m/d/Y", and "Y/m/d", but it does not work with format "Y-m-d". That is: calendar does not go to the date displayed in the field.

Anyone have any idea where could be the problem?

Best regards, Rafael.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
Loading...