Create and Read Query Strings (URL parameters) - JavaScript Tutorial

  Рет қаралды 12,859

OpenJavaScript

OpenJavaScript

Жыл бұрын

👉 Source code: openjavascript.info/2022/10/1...
⚡ Looking for high-performance, afforable web hosting? We use HostWithLove: bit.ly/3V2RM9Q ❤️
This tutorial covers how to create and read query strings in JavaScript that can be used to send data to a URL as URL parameters.
🔔 Subscribe for more tutorials just like this: / @openjavascript
⚡ NEW: Web development courses from Meta Inc. ⚡
Front-End Developer Professional Certificate: imp.i384100.net/b3dMek
Back-End Developer Professional Certificate: imp.i384100.net/gbYorg
iOS Developer Professional Certificate: imp.i384100.net/Jr7qj2
Meta Android Developer Professional Certificate: imp.i384100.net/oeYnGo
Meta Database Engineer Professional Certificate: imp.i384100.net/BX7KGB
Website: openjavascript.info
Twitter: / openjavascript

Пікірлер: 17
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks for watching! 👉 Source code and related post: openjavascript.info/2022/10/10/how-to-create-and-decode-a-query-string-in-javascript/
@WillJonesUK
@WillJonesUK Ай бұрын
Nice video. There is a handy library called Rison that you can use to compact the query string and (if necessary) get round URL length restrictions. It is a bit like the stringify/parse process you showed, but can reduce the number of characters by quite a lot..
@trungkienluongnguyen3378
@trungkienluongnguyen3378 4 ай бұрын
this 's what i need for my projects !!! so hard to find a good and right video like this in this time !😅. Thank dude so much !
@umararsal
@umararsal 9 ай бұрын
this was so helpful . thanks a lot. i was confused in one of few things and this video cleared the ambiguity.
@valdiviaRicardo2003
@valdiviaRicardo2003 Жыл бұрын
This is such an amazing thing dude. I love it. I'm working in a school project and I really need this, thanks!
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Thanks for watching and glad you found it useful for your project!
@rafcon9141
@rafcon9141 Жыл бұрын
Loved this video. Thank you. You explained it great!
@OpenJavaScript
@OpenJavaScript Жыл бұрын
That's great, thanks for watching!
@neatelf9913
@neatelf9913 Жыл бұрын
Thanks for uploading. This is what I'm searching for.
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Great, glad to hear it!
@brayangarcia2857
@brayangarcia2857 8 ай бұрын
good job
@udintanjidin8386
@udintanjidin8386 6 ай бұрын
your voice sounds familiar, are you Steele?
@loranetwork
@loranetwork Жыл бұрын
i have this error can you guide me please? Uncaught SyntaxError: "undefined" is not valid JSON at JSON.parse ()
@OpenJavaScript
@OpenJavaScript Жыл бұрын
This error looks like it's saying that you are trying to call JSON.parse(), passing in a value that hasn't been defined yet. The problem probably lies somewhere in your previous code. I can't tell without seeing your code, but you should take a look at the related blog post for this video, because I posted working examples there: openjavascript.info/2022/10/10/how-to-create-and-decode-a-query-string-in-javascript/
@anhtuanle4991
@anhtuanle4991 Жыл бұрын
Can u explain different useSearchParams and URLsearchparams ? I think both same working .
@OpenJavaScript
@OpenJavaScript Жыл бұрын
Both are built with the same purpose in mind (interpret and work with a query string). The difference is that URLsearchparams is vanilla JS whereas useSearchParams is a React hook that you can call to work with a state value in your app.
@anhtuanle4991
@anhtuanle4991 Жыл бұрын
@@OpenJavaScript oke sir tks u so much. i trying use both, but i think use hooks better when use react
What is a QueryString?
13:00
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 14 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 56 МЛН
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 8 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 51 МЛН
Query Strings and Parameters explained - Marketers Tech Knowledge
11:26
ExpressJS - Query Parameters
13:25
Anson the Developer
Рет қаралды 14 М.
Parsing files in Javascript with the FileReader Web API in 2024
10:16
Blobs and Blob URLs | JavaScript Tutorial
15:32
OpenJavaScript
Рет қаралды 24 М.
Query Parameters in JavaScript (3+1 Ways)
17:18
DevTips
Рет қаралды 19 М.
Local Storage for Beginners | JavaScript Tutorial
15:39
OpenJavaScript
Рет қаралды 10 М.
Read a file using the FileReader API - JavaScript Tutorial
25:48
OpenJavaScript
Рет қаралды 20 М.
Save user form input data in a JavaScript object
7:10
OpenJavaScript
Рет қаралды 38 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 715 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37