JS is not working properly after redirecting from a php page ! | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

JS is not working properly after redirecting from a php page !

Hey guys, I'm working with a project, in this, I'm using jQuery. I have two pages, 1.index.php 2.register.php when the form in index.php submitted, the action takes place in register.php. (it gathers the inputs form index page and validates them) if there is any error, it again redirects to index page and displays the error message in a hidden paragraph element. But, when it goes to index.php, a little jQuery for some design is affected!! it works properly only if manually refreshed!! Solution please!

22nd Jun 2018, 5:32 PM
Hemath Kumar
Hemath Kumar - avatar
5 Réponses
+ 4
Alexander Sokolov bro, I'll provide my code, but it includes three Js files and has 800 lines,it's on my PC.... so it's tough to type in Mobile!!! Will you please elaborate a bit more about your idea! It's little confusing
22nd Jun 2018, 5:55 PM
Hemath Kumar
Hemath Kumar - avatar
+ 3
how to share bro? it's big!! Can I use Sololearn in PC?
22nd Jun 2018, 6:03 PM
Hemath Kumar
Hemath Kumar - avatar
+ 2
Hello, Hemath Kumar ! try to create another file and redirect it there, and then from the new file to index.php, and I think then everything will work, also please provide your code so that other people can understand the extent of your problem
22nd Jun 2018, 5:49 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
you can copy your code on your play ground and save it and share a code link here
22nd Jun 2018, 6:09 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
Hemath Kumar can you share your code so community can help you
22nd Jun 2018, 6:02 PM
Sudarshan Rai
Sudarshan Rai - avatar