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

  Рет қаралды 14,489

OpenJavaScript

OpenJavaScript

Күн бұрын

Пікірлер: 17
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
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 7 ай бұрын
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 10 ай бұрын
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 Жыл бұрын
this was so helpful . thanks a lot. i was confused in one of few things and this video cleared the ambiguity.
@neatelf9913
@neatelf9913 2 жыл бұрын
Thanks for uploading. This is what I'm searching for.
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
Great, glad to hear it!
@valdiviaRicardo2003
@valdiviaRicardo2003 2 жыл бұрын
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 2 жыл бұрын
Thanks for watching and glad you found it useful for your project!
@rafcon9141
@rafcon9141 2 жыл бұрын
Loved this video. Thank you. You explained it great!
@OpenJavaScript
@OpenJavaScript 2 жыл бұрын
That's great, thanks for watching!
@brayangarcia2857
@brayangarcia2857 Жыл бұрын
good job
@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
@udintanjidin8386
@udintanjidin8386 Жыл бұрын
your voice sounds familiar, are you Steele?
What is a QueryString?
13:00
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 14 М.
URL Params as State in React (Complete Tutorial)
20:33
Cosden Solutions
Рет қаралды 19 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Read a file using the FileReader API - JavaScript Tutorial
25:48
OpenJavaScript
Рет қаралды 23 М.
Sending a form using the FormData object - JavaScript Tutorial
13:10
OpenJavaScript
Рет қаралды 42 М.
HTML5 URL and SearchParams Objects
10:08
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 5 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 120 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 561 М.
JavaScript Fetch API - One Mistake I ALWAYS MAKE!
4:47
James Q Quick
Рет қаралды 36 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН