how do i rectify the undefined output for this.Status?

25
May 02, 2021, at 10:10 PM

My AJAX code for a reqres server doe not display the desired output or it does not update the default text when hit on submit. enter image description here

And when i try to print the value of this.Status, in shows undefined on the chrome console enter image description here

and when i remove the this.Status condition from the if statement, i get the desired output enter image description here

what could be the reason and how do i rectify it? please help me

Answer 1

XMLHttpRequest.status is lower case (JavaScript is case sensitive like most of the languages)

READ ALSO
How to write an equation with a changing variable and a click counter, but the result stays the same? [closed]

How to write an equation with a changing variable and a click counter, but the result stays the same? [closed]

Want to improve this question? Update the question so it focuses on one problem only by editing this post

23
Trying to execute an update query where rows are variables from TEdit

Trying to execute an update query where rows are variables from TEdit

I have a table which has values that need to be updatedThere are quite a few typos as different people have added items in the past, so I have to use 'like' despite everything

54
Can I have only one Xamarin Content Page with no full screen in Android?

Can I have only one Xamarin Content Page with no full screen in Android?

I have seted android:windowFullscreen = false for achiving to fix an issue that was kicking out from screen some element views when soft keyboard is openI was able to solve the problem, but now my whole app has no full screen mode

44
Compser require maatwebsite/excel [closed]

Compser require maatwebsite/excel [closed]

Want to improve this question? Add details and clarify the problem by editing this post

46