Click here to Skip to main content
15,179,257 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 13:27
professionaljkirkerx18-Dec-20 13:27 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 14:31
professionaljkirkerx18-Dec-20 14:31 
AnswerGot it Pin
jkirkerx18-Dec-20 14:47
professionaljkirkerx18-Dec-20 14:47 
QuestionFinding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 20:43
Membersimpledeveloper18-Dec-20 20:43 
QuestionRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan18-Dec-20 0:39
mveRichard MacCutchan18-Dec-20 0:39 
AnswerRe: Finding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 16:40
Membersimpledeveloper18-Dec-20 16:40 
GeneralRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan18-Dec-20 23:40
mveRichard MacCutchan18-Dec-20 23:40 
Questiondatepicker on button click not working Pin
Dhyanga17-Dec-20 4:45
MemberDhyanga17-Dec-20 4:45 
I have a datepicker which needs to have its date disabled only on button click. below is the code on button click. I actually wanted to use returned data but for now to check I am only using availableDates for blocking.
Please help.
JavaScript
posting.done(function (data) {
                            var date = new Date();
                            var temp = data.split(",");
                            alert(data);
                            var year = (new Date).getFullYear();
                            $("#datepicker").datepicker();
                            var availableDates = ['01-25-2021'];
                            $("#datepicker").datepicker({
                                beforeShowDay: function (d) {
                                    var dmy = (d.getMonth() + 1);
                                    if (d.getMonth() < 9)
                                        dmy = "0" + dmy;
                                    dmy += "-";
                                    if (d.getDate() < 10) dmy += "0";
                                    dmy += d.getDate() + "-" + d.getFullYear();
                                    if ($.inArray(dmy, availableDates) != -1) {
                                        return [false];
                                    } else {
                                        return [true];
                                    }
                                }
                            });
                        })

Dhyanga

QuestionTernary operator Pin
atomattacker-png12-Dec-20 6:06
Memberatomattacker-png12-Dec-20 6:06 
AnswerRe: Ternary operator Pin
Sandeep Mewara12-Dec-20 6:42
mveSandeep Mewara12-Dec-20 6:42 
GeneralRe: Ternary operator Pin
atomattacker-png12-Dec-20 7:01
Memberatomattacker-png12-Dec-20 7:01 
QuestionReference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 9:42
MemberMember 1492460710-Dec-20 9:42 
AnswerRe: Reference an code behind variable in an external js fn Pin
BabyYoda10-Dec-20 9:58
MemberBabyYoda10-Dec-20 9:58 
GeneralRe: Reference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 10:45
MemberMember 1492460710-Dec-20 10:45 
AnswerRe: Reference an code behind variable in an external js fn Pin
BabyYoda10-Dec-20 11:06
MemberBabyYoda10-Dec-20 11:06 
GeneralRe: Reference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 12:27
MemberMember 1492460710-Dec-20 12:27 
QuestionDrawGameScreen funtion not executing Pin
Member 150158428-Dec-20 13:19
MemberMember 150158428-Dec-20 13:19 
SuggestionRe: DrawGameScreen funtion not executing Pin
Richard MacCutchan8-Dec-20 23:24
mveRichard MacCutchan8-Dec-20 23:24 
GeneralRe: DrawGameScreen funtion not executing Pin
Member 150158429-Dec-20 9:32
MemberMember 150158429-Dec-20 9:32 
QuestionTurning Client Side Script Into Pseudocode Pin
Member 150157838-Dec-20 11:06
MemberMember 150157838-Dec-20 11:06 
AnswerRe: Turning Client Side Script Into Pseudocode Pin
BabyYoda8-Dec-20 11:12
MemberBabyYoda8-Dec-20 11:12 
AnswerRe: Turning Client Side Script Into Pseudocode Pin
Dave Kreskowiak8-Dec-20 15:21
mveDave Kreskowiak8-Dec-20 15:21 
AnswerRe: why in the world an object has stopped being a referance type Pin
Afzaal Ahmad Zeeshan20-Nov-20 13:46
mveAfzaal Ahmad Zeeshan20-Nov-20 13:46 
GeneralRe: why in the world an object has stopped being a referance type Pin
Member 1499861720-Nov-20 13:59
MemberMember 1499861720-Nov-20 13:59 
QuestionSnow fall in Javascript Pin
Member 1497619920-Nov-20 5:15
MemberMember 1497619920-Nov-20 5:15 

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.