Message from JavaScript discussions

November 2020

— Officials may be criminals

— 

I have an external JS file where this function is used. But I want to include the JS file on a register page and make a function for that form submit how can I make it so I don't get the error loginForm cant be found? Do I need to put all submit functions internal on the page or how does it work?

— What is good practice

— ..two types, separate login form with transition and popup form which authenticates user and places indicators at the page header area, second is more complicated, so if it's not super-duper project then "traditional" login is my choice

Message permanent page

— I mean, do I need to split those functions in 2 files

— Depends on your design

— You may not need xhr/fetch at all

— It's more like I have a register page and a login page but I don't now what is good practice when it comes to do I need to make both those functions in 1 external file or do I need to make seperate files for it

Message permanent page

— Cause when I'm on the register pages some buttons and the form can not be found

— Because they are not in the page

— Good practice is the popup with social networks login (requires more effort)

— I get that but I don't wanna do a login with social network