Why are u not getting redirected to msg.html even after entering valid username & then submitting the form? Check at 10:55 min !!! Pls reply. @Simple Snippets @Telusko
Nice tutorial Tanmay, bhai please plan coming videos tutorial on "how to make http calls (GET/POST) via JS and shown data with the help of HTML". It will be very helpful and much appreciated by all.
@@jv18creator b'ze in form tag, there is still action = message.html. when we make button of submit type, we tells the form to go to message.html and when we make it of type ,"button ", browser checks onclick event . I guess onclick is not for submit type button, so it completely ignores it.
Its actually because our button is not a submit type button. It is a regular button which is specified in the type attribute. Actually the motto of this video was to just start off with regular expressions and nothing related to form. :)
ES6 videos are not really a part of this beginner level basics. I am yet to decide whether to include them or not. Maybe at the very end which could take a month more from now :-)
HI @Telusko ,i m watching ur videos regularly these are really good but i m facing an issue regarding alert function in visual code is "Function is not working" not for this video only but for previous videos also.I am coding in visual code only
Regular expression page
/*this program related to show regular expression powerful pattern matching Regular expressions are case sensitive for testing regular expression use 'regex101' website regular expression in JS treating as object */ function validate(){ var uname=document.getElementById("uname").value; var regx=/F101/; if(regx.test(uname)){ //this is one way to use regular expression ,here test is used to check //the expression in regx is in textbox or not alert("valid employee name"); } else{ window. alert("invalid employee name"); document.getElementById("lbl") .style.visibility="visible" ; } }
I too am facing the same issue. Quickly it redirects to message.html. if I remove action then the page refreshes quickly and I will not be able to see the Invalid user name in both the cases
I like your voice. It's crisp and clear.
And concerning the content - again crisp and clear.
Why are u not getting redirected to msg.html even after entering valid username & then submitting the form?
Check at 10:55 min !!!
Pls reply.
@Simple Snippets
@Telusko
Nice tutorial Tanmay, bhai please plan coming videos tutorial on "how to make http calls (GET/POST) via JS and shown data with the help of HTML". It will be very helpful and much appreciated by all.
USE FETCH
alert box not coming what to do
what about the action tag here, why is not going to "message.html" page after the correct credentials
how to remove the invalid text after we put a correct info
just remove second line of else code
I believe he has an other UA-cam channel. I watched his data structures and algorithms with C ++. He is far better than my teachers
why message.html page is not appear after validate
when i select the input and hit enter it is redirected to the page we want(message.html)
so how can i resolve this problem?
try this............ make the button type as button, you prbably have done it of type submit. hope it works :)
@@shreyadeo315 thank u so much.
@@shreyadeo315 Working fine. Could you explain why was that happening?
@@jv18creator b'ze in form tag, there is still action = message.html. when we make button of submit type, we tells the form to go to message.html and when we make it of type ,"button ", browser checks onclick event . I guess onclick is not for submit type button, so it completely ignores it.
@@shreyadeo315 okay...Thanks
When I am manipulating css the home page is redirecting to message page and the css is also not manipulating
Thank u tanmay brother for making such a useful video. Plzz try to make video on Nodejs
Too the point and crystal clear explanation
How about if i input "asdE00" ??
is it valid input ??
it it like since 'i' is for case insensitive, 'g' is for global
and if so can we use both? and how?
Yes we can. write them side by side for eg - var regex = /abc/ig ;
why the code is not working now?
Why are we not sent to "message.html" page which is mentioned in the action attribute of form tag ??
Could you please explain me ☺️☺️☺️
Its actually because our button is not a submit type button. It is a regular button which is specified in the type attribute. Actually the motto of this video was to just start off with regular expressions and nothing related to form. :)
@@SimpleSnippets got it Bro Tq
Peace ✌️
why you dont traduce all the playlist?????
i am unable to use that regx expression
sir what is that in action message.html file because if i enter that file did not recognize
this is a another html file having a message "Welcome"... you can do it by simple html
Js is not working in sublime text 3
Perfection,! Well bro👏,
And It's better to have next video link too,in the description...!
Thank you Avinash :-)
@@SimpleSnippets My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this
if(regx.test(uname)) in this condition "test" is predefined method or not brother?
test is a predefined method
Could you please suggest any book for js ?
I have never studied from books, I dont think you will need a book, you can get everything online buddy :-)
Please make video for English ,your English is amazing
I have few videos regarding this on my channel Simple Snippets :-)
dear tanmay i want u to upload html5,css3,bootstrap & jquery videos
please give us the code in description and the website link
Sir when you start es6 part in JavaScript
ES6 videos are not really a part of this beginner level basics. I am yet to decide whether to include them or not. Maybe at the very end which could take a month more from now :-)
@@SimpleSnippets sir please include it will be very helpful...for us
Yes but I myself haven't really used it a lot. So not sure about it :-) Still will check up on it :-)
@@SimpleSnippets Bro do upload ES6 videos that will help full for us. Am waiting bro.
Why message.html page is not executed although action='message.html' is there.?
look as well you are not doing form validation to submit a form it's regular ex... hope you undrestood
here what is the type of regx
Great Video bro. Subscribed to SImple snippets also :)
Thank you so much Aravind. Means a lot to me buddy. Do share the channel with your friends too :-)
Have also subscribe to all. But we need a series on PHP.
Good series going on..it will be better if you sir explain topics with more and more examples..thank you sir....
Sir your videos are very helpful plz also make series on es6
the (invalid username) lalabel is not working. I removed the form action and kept it as simple form. how to debug this issue.
write type="button" in button tag
Please upload videos on django
My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this
Good example
Simple explanation
Awesome
HI @Telusko ,i m watching ur videos regularly these are really good but i m facing an issue regarding alert function in visual code is "Function is not working" not for this video only but for previous videos also.I am coding in visual code only
Regular expression page
/*this program related to show regular expression powerful pattern matching
Regular expressions are case sensitive
for testing regular expression use 'regex101' website
regular expression in JS treating as object
*/
function validate(){
var uname=document.getElementById("uname").value;
var regx=/F101/;
if(regx.test(uname)){ //this is one way to use regular expression ,here test is used to check
//the expression in regx is in textbox or not
alert("valid employee name");
}
else{
window. alert("invalid employee name");
document.getElementById("lbl") .style.visibility="visible" ;
}
}
Invalid Employee name
submit
please help to resolve this issue
you should use instead of
Here is the code:
Employee
function validateEmployee()
{
var emp = document.getElementById("employee").value
var regex = /F101/
if(regex.test(emp))
{
alert("Valid user")
}
else
{
alert("Invalid user")
}
}
Employee
Mera invalid user pe bhi action event work kr Raha hai
I too am facing the same issue. Quickly it redirects to message.html. if I remove action then the page refreshes quickly and I will not be able to see the Invalid user name in both the cases
Can you please give me example code
Thank you so much Tanmay
one suggestion : when you make video must provide source code about video
very informative!
Thank you :-)
How to store the input data into a file
what type of file are you talking about? can you please ellaborate...!
@@gagangautam8260 like word, excel, pdf.
can you provide source code also
Sir amazing explaination sir
THANK YOU 😭😭😭😭
Awesome.
Nice video but jeez man but some subtitles on!
Give that code.
Bro this video has no dislikes🤔🤔wow
let me add one ;)
@@rajatpachauri2546 lol thanks Rajat 😜
nice explanation it is like playing pubg without lag
Thank you so much buddy 😇
just half way to go:)
Nice man
ty
nice
so helpful
ohh..just 7 more to go:)
I am first
21
My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this
Please check did you put "#" in the form action. If not please put it.
I think so you have given an Button input as submit so that's the reason. Use type as button