Click here to Skip to main content
15,887,821 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: web application for marathi input Pin
Ravindra Bisen18-Jul-14 0:29
Ravindra Bisen18-Jul-14 0:29 
QuestionDate and time validation are not working. Any ideas? <Resolved> Pin
samflex5-Jul-14 12:54
samflex5-Jul-14 12:54 
AnswerRe: Date and time validation are not working. Any ideas? Pin
Richard Deeming7-Jul-14 3:02
mveRichard Deeming7-Jul-14 3:02 
GeneralRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 4:21
samflex7-Jul-14 4:21 
GeneralRe: Date and time validation are not working. Any ideas? Pin
Richard Deeming7-Jul-14 4:27
mveRichard Deeming7-Jul-14 4:27 
GeneralRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 4:36
samflex7-Jul-14 4:36 
QuestionRe: Date and time validation are not working. Any ideas? Pin
Richard Deeming7-Jul-14 4:45
mveRichard Deeming7-Jul-14 4:45 
AnswerRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 4:51
samflex7-Jul-14 4:51 
Yes, I have both server and client scripts in place.

I had to convert the server code to vb.net since that's what the rest of code is written in.

No errors from the Javascript.

I have a btnSave_Click sub. My thinking ( and I could be wrong) is that when user clicks the btnSave_Click to submit to the database but if minimum hour is not up to 4 hours, then the error is raised from your code.

Hope that's the way it should be done.

Thanks sir for your continued assistance and patience.

UPDATE: Now that I think about it, I *THINK* I know what the problem is.

Before your code, the validation included date:

PHP
  var theDate =  $("table[id*=Gridview1] input[id*=txtdate]").val();
  var timeStart = new Date(theDate + ' ' + sHour + ':' + sMinutes + ' ' + sAmPm).getHours();
var timeEnd = new Date(theDate + ' ' + eHour + ':' + eMinutes + ' ' + eAmPm).getHours();


And also based on button click:

$('#btnSave').on('click', function () {


I am not sure how to reconcile these with your nice code Richard.

modified 7-Jul-14 11:12am.

GeneralRe: Date and time validation are not working. Any ideas? Pin
Richard Deeming7-Jul-14 5:17
mveRichard Deeming7-Jul-14 5:17 
GeneralRe: Date and time validation are not working. Any ideas? Pin
samflex7-Jul-14 5:31
samflex7-Jul-14 5:31 
AnswerRe: Date and time validation are not working. Any ideas? Pin
Kornfeld Eliyahu Peter7-Jul-14 3:31
professionalKornfeld Eliyahu Peter7-Jul-14 3:31 
Questionhow to check if user is fan of a facebook page using javascript? Pin
Meax3-Jul-14 6:50
Meax3-Jul-14 6:50 
AnswerRe: how to check if user is fan of a facebook page using javascript? Pin
zeGeek9-Jul-14 14:28
zeGeek9-Jul-14 14:28 
AnswerRe: how to check if user is fan of a facebook page using javascript? Pin
Vfleitao14-Jul-14 22:27
Vfleitao14-Jul-14 22:27 
Questionauto refresh marker on google map with directions Pin
popsompong1-Jul-14 0:10
popsompong1-Jul-14 0:10 
QuestionAngular JS Pin
chauhanvatsal30-Jun-14 20:40
chauhanvatsal30-Jun-14 20:40 
AnswerRe: Angular JS Pin
Kornfeld Eliyahu Peter30-Jun-14 21:41
professionalKornfeld Eliyahu Peter30-Jun-14 21:41 
AnswerRe: Angular JS Pin
gaupoit3-Jul-14 5:27
gaupoit3-Jul-14 5:27 
Questionhow to get data from json url ? Pin
Tamil Purushothaman29-Jun-14 20:43
Tamil Purushothaman29-Jun-14 20:43 
AnswerRe: how to get data from json url ? Pin
Graham Breach29-Jun-14 22:18
Graham Breach29-Jun-14 22:18 
Questionmouseout isn't firing Pin
ThetaClear29-Jun-14 1:34
ThetaClear29-Jun-14 1:34 
AnswerRe: mouseout isn't firing Pin
ThetaClear29-Jun-14 23:21
ThetaClear29-Jun-14 23:21 
AnswerRe: mouseout isn't firing Pin
Kornfeld Eliyahu Peter30-Jun-14 1:16
professionalKornfeld Eliyahu Peter30-Jun-14 1:16 
GeneralRe: mouseout isn't firing Pin
ThetaClear30-Jun-14 1:26
ThetaClear30-Jun-14 1:26 
GeneralRe: mouseout isn't firing Pin
ThetaClear30-Jun-14 3:38
ThetaClear30-Jun-14 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.