Click here to Skip to main content
14,453,888 members

JavaScript

 
AnswerRe: Tainted Canvas Pin
enhzflep10-Nov-13 3:49
Memberenhzflep10-Nov-13 3:49 
QuestionIs there any way to avoid activex in javascript ? Pin
nnithiyanand30-Oct-13 1:27
Membernnithiyanand30-Oct-13 1:27 
AnswerRe: Is there any way to avoid activex in javascript ? Pin
_Maxxx_3-Nov-13 19:34
professional_Maxxx_3-Nov-13 19:34 
Questionneed help to code in java to read a text file...i am beginner in java..pls help me Pin
creativesmart8825-Oct-13 11:46
Membercreativesmart8825-Oct-13 11:46 
AnswerRe: need help to code in java to read a text file...i am beginner in java..pls help me Pin
Richard MacCutchan26-Oct-13 0:06
communityengineerRichard MacCutchan26-Oct-13 0:06 
AnswerRe: need help to code in java to read a text file...i am beginner in java..pls help me Pin
Richard MacCutchan28-Oct-13 0:52
communityengineerRichard MacCutchan28-Oct-13 0: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 2:08
professionalthatraja28-Oct-13 2:08 
Questionretaining jquery datepicker data between views in ASP:MultiView Pin
Brad7323-Oct-13 7:54
MemberBrad7323-Oct-13 7: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.

<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 7:35
Memberabmanish7123-Oct-13 7:35 
SuggestionRe: Want pop or new wtndow Pin
ZurdoDev29-Oct-13 10:12
mveZurdoDev29-Oct-13 10:12 
GeneralRe: Want pop or new wtndow Pin
Sunasara Imdadhusen22-May-14 0:52
professionalSunasara Imdadhusen22-May-14 0:52 
QuestionAngular/Backbone/Knockout Security Question Pin
AnalogNerd22-Oct-13 4:17
MemberAnalogNerd22-Oct-13 4:17 
Questionusing document.forms["MbrForm"].submit(); does not work - help! Pin
Member 860517720-Oct-13 5:53
MemberMember 860517720-Oct-13 5:53 
QuestionDoubt in AJAX response obj Pin
Member 1013786815-Oct-13 1:19
MemberMember 1013786815-Oct-13 1:19 
AnswerRe: Doubt in AJAX response obj Pin
thatraja15-Oct-13 6:20
professionalthatraja15-Oct-13 6:20 
QuestionScript running multiple times Pin
AnalogNerd10-Oct-13 11:49
MemberAnalogNerd10-Oct-13 11:49 
AnswerRe: Script running multiple times Pin
DaveAuld13-Oct-13 22:38
professionalDaveAuld13-Oct-13 22:38 
AnswerRe: Script running multiple times Pin
Abhinav S14-Oct-13 0:48
MemberAbhinav S14-Oct-13 0:48 
QuestionJS/JSON 'Desktop Notifications' Pin
Member 103209557-Oct-13 8:02
MemberMember 103209557-Oct-13 8:02 
Questiondropdown check for same values Pin
01karan6-Oct-13 23:05
Member01karan6-Oct-13 23:05 
AnswerRe: dropdown check for same values Pin
DaveAuld13-Oct-13 22:46
professionalDaveAuld13-Oct-13 22:46 
AnswerRe: dropdown check for same values Pin
Abhinav S14-Oct-13 0:50
MemberAbhinav S14-Oct-13 0:50 
GeneralRe: dropdown check for same values Pin
Sunasara Imdadhusen22-May-14 0:53
professionalSunasara Imdadhusen22-May-14 0:53 
Questionjavascript Date Issue Pin
wasim khan1-Oct-13 3:20
Memberwasim khan1-Oct-13 3:20 
AnswerRe: javascript Date Issue Pin
Kornfeld Eliyahu Peter6-Oct-13 11:43
mveKornfeld Eliyahu Peter6-Oct-13 11:43 

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.