close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

datepicker issues

Thread began 2/08/2013 5:55 am by JamieEff | Last modified 6/14/2013 11:08 am by Jason Byrnes | 2923 views | 11 replies |

JamieEff

datepicker issues

Hey Jason

Have added a datepicker to e _results and an _insert page and both of them are showing " Invalid format.Please enter a value." next to the datepicker field.

Also, although I have set the datepicker to use the UK format (ie dd/mm/yyyy) the results page shows in the US format and is getting the months muddled with the days and so on....

TIA

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

please include a copy of the pages.

Sign in to reply to this post

JamieEff

here you go Jason

Attached Files
blog_insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the insert page, change the following code:

var BlogDate_Spry = new Spry.Widget.ValidationTextField("BlogDate_Spry", "date", {isRequired: false, format:'mm/dd/yyyy', validateOn:["blur"]});



to:

var BlogDate_Spry = new Spry.Widget.ValidationTextField("BlogDate_Spry", "date", {isRequired: false, format:'dd/mm/yyyy', validateOn:["blur"]});



on the updatepage, change the following code:

var BlogDate_Spry = new Spry.Widget.ValidationTextField("BlogDate_Spry", "date", {isRequired: false, format:'mm/dd/yyyy', validateOn:["blur"]});



to:

var BlogDate_Spry = new Spry.Widget.ValidationTextField("BlogDate_Spry", "date", {isRequired: false, format:'dd/mm/yyyy', validateOn:["blur"]});



and this code:

php:
<input id="BlogDate" name="BlogDate" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("blogupdate","BlogDate"):"".(($row_WADAblog["BlogDate"])?date("n/d/Y",strtotime($row_WADAblog["BlogDate"])):"")."")); ?>" class="formTextfield_Medium" tabindex="2" onBlur="hideServerError('BlogDate_ServerError');">



to:

php:
<input id="BlogDate" name="BlogDate" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("blogupdate","BlogDate"):"".(($row_WADAblog["BlogDate"])?date("m/d/Y",strtotime($row_WADAblog["BlogDate"])):"")."")); ?>" class="formTextfield_Medium" tabindex="2" onBlur="hideServerError('BlogDate_ServerError');">
Sign in to reply to this post

JamieEff

thats not changed whats happening I'm afraid... on the insert or update page, the 'error' Invalid format.Please enter a value. is showing regardless of whether or not there is any content in the field. Also, on the results page, if I have entered 15 Nov 2010 on an insert or update page, the date showing in the results page is: 30 Nov -0001 (and then subsequently showing that in the update page)

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

this_is_me

similar issue

I have two datepicker events on the insert page - a start and a stop field.
The start field populates the database correctly: 2013-11-06 00:00:00, but the stop field shows: 1970-01-01 01:00:00

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

this_is_me

thank you Jason

I am on a development server, because the public webspace is not online yet. Where do have to look. I can live with the fact that the code is buggy insofar as the Spry validation field does not switsch to the new date format. I have don this manually.

Sign in to reply to this post

Jason ByrnesWebAssist

Originally Said By: this_is_me
  I am on a development server, because the public webspace is not online yet. Where do have to look. I can live with the fact that the code is buggy insofar as the Spry validation field does not switsch to the new date format. I have don this manually.  
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...