JavaScript Problem: Passing a JavaScript Value Between HTML Pages

  Рет қаралды 67,001

All Things JavaScript, LLC

All Things JavaScript, LLC

Күн бұрын

Пікірлер: 41
@neeharikachinimilli9720
@neeharikachinimilli9720 3 жыл бұрын
Thank you so much .I have been watching lots of videos for redirecting my html page .But your lecture video made my day.It helped me in completing my project .Thanks a lot 🤗🤗
@AllThingsJavaScript
@AllThingsJavaScript 3 жыл бұрын
Glad it helped!
@Rajeshkumar-jb9pf
@Rajeshkumar-jb9pf 5 жыл бұрын
Awesome! Please post videos on js Design patterns...
@nathanheath1328
@nathanheath1328 4 жыл бұрын
This solved the problem I was having for my personal project ! Thank you !
@RagHelen
@RagHelen 5 жыл бұрын
About the replacing with regex: Is there nothing less costly, like splitting or find and slice in Python?
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
There are several solutions since the data is a string. Here is a tutorial on split: kzbin.info/www/bejne/f37QYnqphLp6rLM
@aabirsabil4393
@aabirsabil4393 Жыл бұрын
Thanks for this video
@pritichhetri135
@pritichhetri135 4 жыл бұрын
It's a nice video! I have a form, I want the value entered in that form to be displayed on another page! Is it possible using Javascript?? If yes, please give me the link of a video about that, please?
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
I don't have a tutorial for the specific situation you mentioned, but just grab the value entered in the form and pass it using one of the techniques in this tutorial.
@chchan8977
@chchan8977 5 жыл бұрын
Thank you for the awesome tutorial. How to reset the elapsed time in every refresh or attempt?
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
To reset the elapsed time, you could get the date again at the same time you reset the variable for tracking the keys.
@Jan_Jan_
@Jan_Jan_ 2 жыл бұрын
This solved my problem! 👏Thank you so much! :D
@AllThingsJavaScript
@AllThingsJavaScript 2 жыл бұрын
Glad it helped!
@ntigirishari
@ntigirishari 4 жыл бұрын
This has been reaaaally helpful!! Thank you :-)
@anips3192
@anips3192 4 жыл бұрын
Hello sir, Awesome tutorial :) I have a doubt @10:31 in line 12 instead of function(){init();} i did init() directly and it is not working and what s the difference between the two. I am pretty new to js i started just today so I don't understand the difference
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
There are a couple of differences, but the main difference is that whenever you put parentheses after a function it causes it to invoke. So if you put in init() with parens, it will invoke immediately not in response to the event. You could put just init (without parens). In my code a defined an anonymous function and then had that function invoke init. Though not necessary sometimes I do that because of issues that can be encountered with the this keyword in JavaScript or if I want to do more than one function in response to the event.
@anips3192
@anips3192 4 жыл бұрын
thank you sir tht clarified my doubt . I tried init and it worked bery well
@jeguestudio5686
@jeguestudio5686 5 жыл бұрын
Good video but i have any question. We can't change the value propertye from a html element? For example: var htmlElement = document.getElementById("idElement"); htmlElement.value = "someValue"; It didn't work for me as it did work before.
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
You can do this. What type of HTML Element was it? You probably want to use innerHTML for changing the contents.
@blueskyandseablue
@blueskyandseablue 5 жыл бұрын
This video was really useful! I tried with erb file instead of html, but it did not work... It worked fine with html files. Would be very nice if you let me know how to fix it!
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
Sorry, I don't work in Ruby so not sure why it didn't work.
@jeogk
@jeogk 4 жыл бұрын
What do we put in the span tag of present5.html to replace the static text? When I run it, I get "Here is the amount of time that has passed: TIME"
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
That is handled by the code in app3.js. Just make sure it has the right id 'time'.
@johanbondennysveen4418
@johanbondennysveen4418 3 жыл бұрын
Can you use the LocalStorage -technique to pass a score from a game (game.html) over to a highscore table(highscore.html) on another file?
@AllThingsJavaScript
@AllThingsJavaScript 3 жыл бұрын
Local storage works per a domain. So if it is on the same domain you can access it.
@johanbondennysveen4418
@johanbondennysveen4418 3 жыл бұрын
@@AllThingsJavaScript the thing is I am only working local on my pc. I dont have a public domene. But the two html files are under in the same folder.
@AllThingsJavaScript
@AllThingsJavaScript 3 жыл бұрын
@@johanbondennysveen4418 I would set up a local server. There are so many ways to do this. If you are using VS Code, there is a server extension. You can do it with node as well: kzbin.info/www/bejne/faKkfJKags5ghpo and many other ways.
@johanbondennysveen4418
@johanbondennysveen4418 3 жыл бұрын
@@AllThingsJavaScript yeah, I am using VS Code but were thinking about doing it with node. I am not that experienced tho. But, thanks for your answers! I will check out your video too:)
@scottk5083
@scottk5083 4 жыл бұрын
Thank you so much for this!
@jaerap8585
@jaerap8585 4 жыл бұрын
You are a fucking genius, you solved my problem with such a good explanation, Thank you very much!
@codewithdoge
@codewithdoge 4 жыл бұрын
I just wanted to take out the heading text of one page and show it on other html that this the heading how to do so
@SK-xr7up
@SK-xr7up 4 жыл бұрын
very helpful....
@Musfiq77
@Musfiq77 4 жыл бұрын
Thank you sir
@williamvv1587
@williamvv1587 4 жыл бұрын
Thank you so much! This solved my problem perfectly! :)
@quickprogrammer7920
@quickprogrammer7920 4 жыл бұрын
really
@jetmonkey9474
@jetmonkey9474 4 жыл бұрын
I'm having trouble getting the technique to work. I want once the script is executed for the other page to be permanently edited, is there a way to do that with this technique or is that not possible?
@AllThingsJavaScript
@AllThingsJavaScript 4 жыл бұрын
Not exactly sure what you mean by "permanently edited". Are you saying you want to change the underlying HTML page? That is not possible from the client side, but if you are trying to permanently change something perhaps that data should be coming from a database??
@bilawalhussain4557
@bilawalhussain4557 5 жыл бұрын
Thanks man It works !! I was facing some dynamic data storage between 2 pages but you helped me out from it .... Thumbs Up and A Subscribe for you :)
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
Functional programming is difficult to address in a single tutorial. I've done a course on it: www.udemy.com/functional-programming-in-javascript-a-practical-guide/?couponCode=KZbin19
@AllThingsJavaScript
@AllThingsJavaScript 5 жыл бұрын
Sorry, replied to the wrong comment with the functional course. :-)
@bilawalhussain4557
@bilawalhussain4557 5 жыл бұрын
@@AllThingsJavaScript Its okay xDD Thanks for comment btw !
JavaScript Problem: Responding to and Tracking Key Presses
10:28
All Things JavaScript, LLC
Рет қаралды 1,2 М.
Understanding JavaScript Callbacks
15:39
All Things JavaScript, LLC
Рет қаралды 115 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 186 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 60 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
Getting Started with indexedDB
26:18
All Things JavaScript, LLC
Рет қаралды 44 М.
Pass a Variable Value from One HTML Page to Another
12:24
OpenJavaScript
Рет қаралды 60 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 642 М.
Demystifying JavaScript Closure
16:08
All Things JavaScript, LLC
Рет қаралды 27 М.
The Weird History of JavaScript
12:09
Fireship
Рет қаралды 1,2 МЛН
Use JavaScript to Get Value from a Textbox and Display on the Page
7:00
Six Minutes. Smarter.
Рет қаралды 210 М.
javascript local storage pass value one html web page to another
6:31
Haritha Computers & Technology
Рет қаралды 148 М.
JavaScript Problem: Searching an Array for a Value
13:43
All Things JavaScript, LLC
Рет қаралды 38 М.
JavaScript Question: What is a Prototype?
10:48
All Things JavaScript, LLC
Рет қаралды 39 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 186 МЛН