When login button is clicked it is not redirecting to new page, what is possible solution?

|
Myke 2021-05-12 22:09:35
agzpresh 2021-05-12 20:57:34
Can you do a screenshot?

Of the code?let me send

Myke 2021-05-12 22:13:07
agzpresh 2021-05-12 20:57:34
Can you do a screenshot?

laravel_discuss-80684.jpg

Myke 2021-05-12 22:13:56
agzpresh 2021-05-12 20:57:34
Can you do a screenshot?

laravel_discuss-80686.jpg

2021-05-12 22:44:42
Hello there, Do you know a complete ecommerce source repo?
simon_an 2021-05-12 22:45:31
2021-05-12 22:44:42
Hello there, Do you know a complete ecommerce source repo?

Search for it on github.com

2021-05-12 22:46:27
simon_an 2021-05-12 22:45:31
Search for it on github.com

I’ve searched, just looking does anybody have any experience with it or not, ty

simon_an 2021-05-12 23:00:45
2021-05-12 22:46:27
I’ve searched, just looking does anybody have any experience with it or not, ty

Experience with what?

Tanish Singh 2021-05-12 23:22:46
laravel_discuss-80691.jpg

Tanish Singh 2021-05-12 23:24:24
when login button is clicked it is not redirecting to new page, what is possible solution? Thanks in advance for help
simon_an 2021-05-12 23:32:33
Tanish Singh 2021-05-12 23:22:46

Is the
onclick
event firing?

DesolatorMagno 2021-05-12 23:32:46
Try using console.log to check in what condition it is going, where does res get any value?
Tanish Singh 2021-05-12 23:33:23
nothing in console
DesolatorMagno 2021-05-12 23:34:00
I don’t see any log in the screenshot you posted
Tanish Singh 2021-05-12 23:35:36
i tried it but couldn’t find any solution using console.log
simon_an 2021-05-12 23:35:43
Tanish Where is that button? In a form?
Tanish Singh 2021-05-12 23:36:27
@Mr. Angatia yes in form
simon_an 2021-05-12 23:37:21
Tanish Singh 2021-05-12 23:36:27
@Mr. Angatia yes in form

Is it a submit button?

Tanish Singh 2021-05-12 23:37:46
DesolatorMagno 2021-05-12 23:34:00
I don’t see any log in the screenshot you posted

not even alert is working over there in line 185 which means control is not coming there but why it is don’t know

Tanish Singh 2021-05-12 23:38:05
simon_an 2021-05-12 23:37:21
Is it a submit button?

no it is not submit button

Tanish Singh 2021-05-12 23:40:14
what could be possible solution?
DesolatorMagno 2021-05-12 23:43:40
The error them is not that the page is not reloading, is that the functions is not being activated.
simon_an 2021-05-12 23:45:29
If you console.log response, what do you get?
simon_an 2021-05-12 23:46:59
simon_an 2021-05-12 23:45:29
If you console.log response, what do you get?

Do you get data?

DesolatorMagno 2021-05-12 23:48:04
Programming is not magic, you have to keep checking until you find the area where it is happening, with just a “Why this not work?” nobody can help you.
bsaqqa 2021-05-12 23:48:27
Tanish Singh 2021-05-12 23:24:24
when login button is clicked it is not redirecting to new page, what is possible solution? Thanks in advance for help

Do you check using catch after like this
$.get().catch(e=> console.error(e));

Tanish Singh 2021-05-12 23:51:46
laravel_discuss-80709.jpg

Tanish Singh 2021-05-12 23:52:07
laravel_discuss-80710.jpg

Tanish Singh 2021-05-12 23:52:43
alert in line 184 works but alert in 187 don’t work
Tanish Singh 2021-05-12 23:52:55
console.log no output
simon_an 2021-05-12 23:54:28
Tanish Singh 2021-05-12 23:52:55
console.log no output

Console.log does not return data?

Tanish Singh 2021-05-12 23:58:30
yes
simon_an 2021-05-12 23:59:25
Tanish Singh 2021-05-12 23:58:30
yes

Then start troubleshooting from there

simon_an 2021-05-12 23:59:54
Find out why it’s not returning data
bsaqqa 2021-05-13 00:00:06
Tanish Singh 2021-05-12 23:51:46

Your issue not in this file I think you try to go to line 200 from file named input.js

simon_an 2021-05-13 00:00:41
Or it doesn’t fulfill the condition stated in the if statement?
|