Zazzium,
I've included dateJS -all in productionnu2 of Nubuilder and changed my field settings to yyyy-M-dd.
Alert start_date returns date in format dd-M-yyyy so that part is ok.
Alert of end_date gives no return. I've set var end_date = Date.today(); Also whitout result.
Johan
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
update date field
-
- Posts: 84
- Joined: Mon Jul 04, 2011 12:52 am
-
- Posts: 392
- Joined: Sun Feb 27, 2011 11:16 am
- Location: Belgium
Re: update date field
zazzium,
With firebug get error : Date.today() is not a function. So I think I've done something wrong installing datejs.
If I run test.html of datejs everything is ok.
Any idea?
Thanks again
Johan
With firebug get error : Date.today() is not a function. So I think I've done something wrong installing datejs.
If I run test.html of datejs everything is ok.
Any idea?
Thanks again
Johan
-
- Posts: 84
- Joined: Mon Jul 04, 2011 12:52 am
Re: update date field
try to include the date.js file on the form u need it.
make a new HTML object on the form, and insert in the HTML section
just in case make it the first object on the form
(be sure the date.js is located in the 'js' folder in your nuBuilder 'productionnu2')
make a new HTML object on the form, and insert in the HTML section
Code: Select all
<script src="js/date.js"></script>
(be sure the date.js is located in the 'js' folder in your nuBuilder 'productionnu2')
-
- Posts: 392
- Joined: Sun Feb 27, 2011 11:16 am
- Location: Belgium
Re: update date field
Zazzium
It works with an html object on top of the form having this code
Thanks for all your help.
Maybe an idea to integrate Datejs in Nubuilder, it does a nice job.
Johan
It works with an html object on top of the form having this code
Code: Select all
<script type="text/javascript" src="date.js"></script>
Maybe an idea to integrate Datejs in Nubuilder, it does a nice job.
Johan