Click here to Skip to main content
14,358,640 members

JavaScript

 
AnswerRe: Trying to download Zip files that's returned from Api React Pin
simpledeveloper21-Oct-19 9:10
membersimpledeveloper21-Oct-19 9:10 
QuestionAppending an Array of strings is giving me objects instead of strings separated with commas, my code and results are as below Pin
simpledeveloper14-Oct-19 7:32
membersimpledeveloper14-Oct-19 7:32 
AnswerRe: Appending an Array of strings is giving me objects instead of strings separated with commas, my code and results are as below Pin
Richard Deeming14-Oct-19 8:32
mveRichard Deeming14-Oct-19 8:32 
GeneralRe: Appending an Array of strings is giving me objects instead of strings separated with commas, my code and results are as below Pin
simpledeveloper14-Oct-19 9:18
membersimpledeveloper14-Oct-19 9:18 
QuestionCalling Api post method on button click in React Pin
simpledeveloper10-Oct-19 13:11
membersimpledeveloper10-Oct-19 13:11 
AnswerRe: Calling Api post method on button click in React Pin
jkirkerx10-Oct-19 14:40
professionaljkirkerx10-Oct-19 14:40 
GeneralRe: Calling Api post method on button click in React Pin
simpledeveloper10-Oct-19 16:18
membersimpledeveloper10-Oct-19 16:18 
QuestionI am trying to read from a Web api call and assign it to a state in React component Pin
simpledeveloper9-Oct-19 12:31
membersimpledeveloper9-Oct-19 12:31 
Hi mates, I am conditionally setting up the state in my React component, I did it in the following way, it works but please let me know if there is any better approach to do it in React - thanks a lot.

handleDDLCommunityChange = event => {
    this.setState(
        {
            selectedCommunity: event.target.value
        });

    if (event.target.value == "") {
        this.setState(
            {
                files: null
            });
    }
    else {
        fetch(clientConfiguration['filesApi.local'] + '/' + event.target.value)
            .then((response) => { return response.json(); })
            .then(data => {
                this.setState({
                    files: data.map(file => {
                        return {
                            fileName: file,
                            checked: false
                        }
                    })
                })
            })
            .catch(error => {
                console.log(error);
                debugger;
            });
    }

};


modified 9-Oct-19 21:09pm.

AnswerRe: I am trying to read from a Web api call and assign it to a state in React component Pin
jkirkerx10-Oct-19 14:31
professionaljkirkerx10-Oct-19 14:31 
Questionprogramming a dropdown menu to display specific points in the charts Pin
Gibby905-Oct-19 7:41
memberGibby905-Oct-19 7:41 
QuestionSearch Engine without DB using JS Pin
javadev20904-Oct-19 10:06
memberjavadev20904-Oct-19 10:06 
AnswerRe: Search Engine without DB using JS Pin
jkirkerx8-Oct-19 14:45
professionaljkirkerx8-Oct-19 14:45 
GeneralRe: Search Engine without DB using JS Pin
javadev20908-Oct-19 20:44
memberjavadev20908-Oct-19 20:44 
GeneralRe: Search Engine without DB using JS Pin
jkirkerx9-Oct-19 8:35
professionaljkirkerx9-Oct-19 8:35 
Questionjquery validation in drop down Pin
Shraddha_Patel3-Oct-19 19:50
memberShraddha_Patel3-Oct-19 19:50 
AnswerRe: jquery validation in drop down Pin
ZurdoDev4-Oct-19 2:04
professionalZurdoDev4-Oct-19 2:04 
AnswerRe: jquery validation in drop down Pin
jkirkerx8-Oct-19 14:47
professionaljkirkerx8-Oct-19 14:47 
QuestionHow to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
codeguy13-Oct-19 20:14
membercodeguy13-Oct-19 20:14 
AnswerRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
ZurdoDev4-Oct-19 2:07
professionalZurdoDev4-Oct-19 2:07 
GeneralRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
codeguy14-Oct-19 20:42
membercodeguy14-Oct-19 20:42 
AnswerRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
ZurdoDev6-Oct-19 9:54
professionalZurdoDev6-Oct-19 9:54 
GeneralRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
codeguy16-Oct-19 17:00
membercodeguy16-Oct-19 17:00 
QuestionRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
ZurdoDev6-Oct-19 17:29
professionalZurdoDev6-Oct-19 17:29 
AnswerRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
codeguy16-Oct-19 17:47
membercodeguy16-Oct-19 17:47 
GeneralRe: How to display a Javascript alert and display a iframe using a javascript dynamic drop-down list Pin
phil.o6-Oct-19 22:39
mvephil.o6-Oct-19 22:39 

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.