Page 2 of 2

Re: update date field

Posted: Wed Nov 14, 2012 6:30 am
by johan
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

Re: update date field

Posted: Wed Nov 14, 2012 10:33 am
by zazzium
use firebug, this way u can see what part of the script causes problems.

Re: update date field

Posted: Fri Nov 16, 2012 6:39 am
by johan
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

Re: update date field

Posted: Fri Nov 16, 2012 10:17 am
by zazzium
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

Code: Select all

<script src="js/date.js"></script>
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')

Re: update date field

Posted: Sat Nov 17, 2012 12:08 pm
by johan
Zazzium

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>
Thanks for all your help.

Maybe an idea to integrate Datejs in Nubuilder, it does a nice job.

Johan

Re: update date field

Posted: Sat Nov 17, 2012 1:35 pm
by zazzium
glad u sorted it out

Re: update date field

Posted: Wed Nov 21, 2012 11:53 pm
by admin
.