Click here to Skip to main content
15,867,568 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 12:27
professionaljkirkerx18-Dec-20 12:27 
AnswerRe: Looking to run a PHP page in the background using pure Javascript Pin
jkirkerx18-Dec-20 13:31
professionaljkirkerx18-Dec-20 13:31 
AnswerGot it Pin
jkirkerx18-Dec-20 13:47
professionaljkirkerx18-Dec-20 13:47 
QuestionFinding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 19:43
simpledeveloper18-Dec-20 19:43 
QuestionRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan17-Dec-20 23:39
mveRichard MacCutchan17-Dec-20 23:39 
AnswerRe: Finding the definition of a component from the place of its use Pin
simpledeveloper18-Dec-20 15:40
simpledeveloper18-Dec-20 15:40 
GeneralRe: Finding the definition of a component from the place of its use Pin
Richard MacCutchan18-Dec-20 22:40
mveRichard MacCutchan18-Dec-20 22:40 
Questiondatepicker on button click not working Pin
Dhyanga17-Dec-20 3:45
Dhyanga17-Dec-20 3: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 5:06
atomattacker-png12-Dec-20 5:06 
AnswerRe: Ternary operator Pin
Sandeep Mewara12-Dec-20 5:42
mveSandeep Mewara12-Dec-20 5:42 
GeneralRe: Ternary operator Pin
atomattacker-png12-Dec-20 6:01
atomattacker-png12-Dec-20 6:01 
QuestionReference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 8:42
Member 1492460710-Dec-20 8:42 
AnswerRe: Reference an code behind variable in an external js fn Pin
BabyYoda10-Dec-20 8:58
BabyYoda10-Dec-20 8:58 
GeneralRe: Reference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 9:45
Member 1492460710-Dec-20 9:45 
AnswerRe: Reference an code behind variable in an external js fn Pin
BabyYoda10-Dec-20 10:06
BabyYoda10-Dec-20 10:06 
GeneralRe: Reference an code behind variable in an external js fn Pin
Member 1492460710-Dec-20 11:27
Member 1492460710-Dec-20 11:27 
QuestionDrawGameScreen funtion not executing Pin
Member 150158428-Dec-20 12:19
Member 150158428-Dec-20 12:19 
SuggestionRe: DrawGameScreen funtion not executing Pin
Richard MacCutchan8-Dec-20 22:24
mveRichard MacCutchan8-Dec-20 22:24 
GeneralRe: DrawGameScreen funtion not executing Pin
Member 150158429-Dec-20 8:32
Member 150158429-Dec-20 8:32 
QuestionTurning Client Side Script Into Pseudocode Pin
Member 150157838-Dec-20 10:06
Member 150157838-Dec-20 10:06 
AnswerRe: Turning Client Side Script Into Pseudocode Pin
BabyYoda8-Dec-20 10:12
BabyYoda8-Dec-20 10:12 
AnswerRe: Turning Client Side Script Into Pseudocode Pin
Dave Kreskowiak8-Dec-20 14:21
mveDave Kreskowiak8-Dec-20 14:21 
AnswerRe: why in the world an object has stopped being a referance type Pin
Afzaal Ahmad Zeeshan20-Nov-20 12:46
professionalAfzaal Ahmad Zeeshan20-Nov-20 12:46 
GeneralRe: why in the world an object has stopped being a referance type Pin
Member 1499861720-Nov-20 12:59
Member 1499861720-Nov-20 12:59 
QuestionSnow fall in Javascript Pin
Member 1497619920-Nov-20 4:15
Member 1497619920-Nov-20 4: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.