Click here to Skip to main content
15,902,445 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Having a Problem with Return Value in Javascript Function Pin
Doug Pruiett13-Nov-13 4:19
Doug Pruiett13-Nov-13 4:19 
GeneralRe: Having a Problem with Return Value in Javascript Function Pin
Richard Deeming13-Nov-13 4:51
mveRichard Deeming13-Nov-13 4:51 
GeneralRe: Having a Problem with Return Value in Javascript Function Pin
Richard MacCutchan13-Nov-13 6:10
mveRichard MacCutchan13-Nov-13 6:10 
SuggestionRe: Having a Problem with Return Value in Javascript Function Pin
chxm199016-Nov-13 3:30
chxm199016-Nov-13 3:30 
QuestionShowing Questions Below Answers After The Submit Button Is Pressed? Pin
KeonD12311-Nov-13 10:25
KeonD12311-Nov-13 10:25 
AnswerRe: Showing Questions Below Answers After The Submit Button Is Pressed? Pin
twseitex12-Nov-13 3:19
twseitex12-Nov-13 3:19 
QuestionHidden field value in javascript Pin
vkEE11-Nov-13 5:12
vkEE11-Nov-13 5:12 
AnswerRe: Hidden field value in javascript Pin
twseitex12-Nov-13 3:27
twseitex12-Nov-13 3:27 
GeneralRe: Hidden field value in javascript Pin
Kornfeld Eliyahu Peter12-Nov-13 19:19
professionalKornfeld Eliyahu Peter12-Nov-13 19:19 
GeneralRe: Hidden field value in javascript Pin
vkEE3-Dec-13 10:35
vkEE3-Dec-13 10:35 
GeneralRe: Hidden field value in javascript Pin
Amir Hamza Md. Kayes6-Dec-13 9:16
professionalAmir Hamza Md. Kayes6-Dec-13 9:16 
QuestionScript to determine the optimal weight man Pin
bosko18-Nov-13 1:11
bosko18-Nov-13 1:11 
SuggestionRe: Script to determine the optimal weight man Pin
Richard MacCutchan8-Nov-13 1:27
mveRichard MacCutchan8-Nov-13 1:27 
GeneralRe: Script to determine the optimal weight man Pin
bosko18-Nov-13 9:47
bosko18-Nov-13 9:47 
GeneralRe: Script to determine the optimal weight man Pin
Richard MacCutchan8-Nov-13 22:51
mveRichard MacCutchan8-Nov-13 22:51 
QuestionTainted Canvas Pin
Paulo Augusto Kunzel31-Oct-13 1:55
professionalPaulo Augusto Kunzel31-Oct-13 1:55 
AnswerRe: Tainted Canvas Pin
enhzflep10-Nov-13 2:49
enhzflep10-Nov-13 2:49 
QuestionIs there any way to avoid activex in javascript ? Pin
nnithiyanand30-Oct-13 0:27
nnithiyanand30-Oct-13 0:27 
AnswerRe: Is there any way to avoid activex in javascript ? Pin
_Maxxx_3-Nov-13 18:34
professional_Maxxx_3-Nov-13 18:34 
Questionneed help to code in java to read a text file...i am beginner in java..pls help me Pin
creativesmart8825-Oct-13 10:46
creativesmart8825-Oct-13 10:46 
AnswerRe: need help to code in java to read a text file...i am beginner in java..pls help me Pin
Richard MacCutchan25-Oct-13 23:06
mveRichard MacCutchan25-Oct-13 23:06 
AnswerRe: need help to code in java to read a text file...i am beginner in java..pls help me Pin
Richard MacCutchan27-Oct-13 23:52
mveRichard MacCutchan27-Oct-13 23:52 
QuestionRe: need help to code in java to read a text file...i am beginner in java..pls help me Pin
thatraja28-Oct-13 1:08
professionalthatraja28-Oct-13 1:08 
Questionretaining jquery datepicker data between views in ASP:MultiView Pin
Brad7323-Oct-13 6:54
Brad7323-Oct-13 6:54 
Let me preface this question with the fact that I am fairly inexperienced with jquery. Now to the issue, I have 3 date pickers that are placed upon two different views in an ASP:MultiView. They are working perfectly, no issues at all.

I need to retain the values entered in two of the inputs which I can do to one or the other but not both for some reason. each of these reside on a different view so I am not sure if that is the issue or not. In the code below, the data will be retained for the first if statement only. If I switch the if statements then the opposite input will retain its value but never both items. What am I doing wrong? Each if statement pertains to a different control so it is not supposed to be an if else type of scenario. It is like only one if statement is allowed to fire and I have been staring at this for a while with no idea what is happening so any help would be great.

JavaScript
<script type="text/javascript" >

       $(function () {
           $("#txtDoB").datepicker({ changeMonth: true, changeYear: true, yearRange: '-125:+0' });
           $("#txtSpouseDoH").datepicker({ changeMonth: true, changeYear: true, yearRange: '-75:+0', altField: '[id$=hfSpDoH]' });
           $("#txtHiredate").datepicker({ changeMonth: true, changeYear: true, yearRange: '-75:+0', altField: '[id$=hfHireDate]' });

           if ($("[id$=hfHireDate]").attr("Value").length > 0) {
               $("[id$=txtHiredate]").datepicker("setDate", new Date($("[id$=hfHireDate]").attr("Value")));
           }
           if ($("[id$=hfSpDoH]").attr("Value").length > 0) {
               $("[id$=txtSpouseDoH]").datepicker("setDate", new Date($("[id$=hfSpDoH]").attr("Value")));
           }
       });

   </script>

QuestionWant pop or new wtndow Pin
abmanish7123-Oct-13 6:35
abmanish7123-Oct-13 6:35 

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.