Solved

Got undefined error using jQuery date picker in a gridview

Posted on 2014-12-28
6
187 Views
Last Modified: 2014-12-29
Hi, I'm using VS2012.
The jquery script is working in IE and Chrome but in Firefox the calendar won't pop up.  In IE and Chrome after click on Edit and then click that last cell that is date/time (display format to diaply only short date part), the calendar pop up fine.  Selects a day and then the cell would display the new date with "NAN" displayed under it.  Click on it again to bring up the calendar, select a date again, and now it dispaly "NANunderdined".
Attached is the jQuery.  Thank you
0
Comment
Question by:lapucca
  • 3
  • 2
6 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 40521096
Please post the jquery code as well as the gridview mark-up.
0
 

Author Comment

by:lapucca
ID: 40521150
Please see here, http://jsfiddle.net/2zvwsgx3/12/ 
Thank you
0
 
LVL 58

Expert Comment

by:Gary
ID: 40521221
Code is working fine, the datepicker is just that - a datepicker - it doesn't have a time

So for timepart just add in the default string for the time.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:lapucca
ID: 40521246
Gary, do you mind show me how to add in the default string in jQuery?  What is the default string?  If you're saying the default time, it's 12:00:00 am.  Thank you.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40521292
This was literally just adding in the time to the timepart var

http://jsfiddle.net/2zvwsgx3/13/
0
 

Author Closing Comment

by:lapucca
ID: 40522503
Thank you.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server Error 11 47
Why is this panel heading creating extra space 2 35
Error in script 11 46
jQuery - how can I set focus to first valid element in dropdown? 2 15
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now