close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

datepicker

Thread began 8/11/2014 6:54 pm by Paul | Last modified 8/29/2014 5:15 pm by Paul | 1549 views | 42 replies |

Paul

datepicker

I have datepicker in a form and the submission of the form works, the page redirects and the email comes in, but I am getting a syntax error on line 147:

$(function(){
$('#Start Date').datepicker({
dateFormat: 'yyyy/mm/dd',
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_Start Date <---Line 147
});
});

It doesn't have any errors on the second date picker which is the "End date" on the form.

Also, in the email that I received, I get this extra content:
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/vhtdocs/userwebxxx/html/webassist/email/templates/Blank_4.php on line 34
8-11-2014 |
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/vhtdocs/userwebxxx/html/webassist/email/templates/Blank_4.php on line 34
10:56 PM UTC

I appreciate the help.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

For the date picker, please send a link so i can see the code in context.


The PHP Error means that in the php.ini file, there is no timezone set for the date.timezone

Edit the php.ini file and enter a vlid timezone for the date.timezone setting.

Alternatively, you can add the following at line 1 of the form page to set the time zone:

<?php 
date_default_timezone_set('America/Chicago');
?>



The list of valid timezones is here...

http://www.php.net/manual/en/timezones.php

Sign in to reply to this post

Paul

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

Looks like you created the datepicker instances with a space in the name:

Start Date

or
End Date

you cannot use spaces when naming the date picker instances, the date pickers will need to be recreated with no spaces in the name.

as for saving the form to a database, there is not a tutorial for this, you just need to use the Insert record behavior and bind the table columns to the form elements.

Sign in to reply to this post

Paul

Thanks...
See PM

Sign in to reply to this post

Jason ByrnesWebAssist

you would bind the form elements in the Insert record server behavior.

Sign in to reply to this post

Paul

Jason,

I went into the Form Builder and edited the datepicker to have one word names...what I found out in my code on the page is that it doesn't delete the old one, nor does it even just update it. So now i have 3 instances of the code and I am at a loss.

Why doesn't it just edit the code?

Sign in to reply to this post

Jason ByrnesWebAssist

I would recreate the form from the beginning rather than try to edit. Sometimes with invalid names for form elements, it cannot recognize the element it is supposed to edit, so creates a new one.

Sign in to reply to this post

Paul

Oh, man...I spent over 2 hours creating this yesterday. Oh well...

Fortunately, I saved all the presets and it is fine. The only thing is in the CSS Form Builder, I formatted the dates as: yyyy/mm/dd and they are not showing up like that in the email.

Any thoughts?

See PM

Sign in to reply to this post

Jason ByrnesWebAssist

Please be more specific, how are the dates displaying in the email, attach a copy of the page and a copy of the email template file and the email you receive.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...