Component transfer from one html file to another using Javascript.
Is it possible that using querySelector i get one component say a card from one html and insert it into another html page.(no click function the second page auto fetches it from the other page)
I think I can use querySelectorAll to get the component. But dont know how to insert it or if it's possible. If there is any video or you can show just a single code.
17 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
what do you mean? I'm new so I dont understand the term.
it's just static html css
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Like say I've a
<div class="card"></div>
on page1.html using javascript can I like fetch it and use it on the page2.htmlUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok
Thank You tho.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
🙂
can you send me blog
or vid regarding that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok. One more question if you dont mind.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I tried using astro. but the css doesn't seem to work.
it got imported and shows up in dist folder
https://discord.com/channels/436251713830125568/1094765808170836138
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok. Thank you for the help.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah, sorry about that, we were getting a bunch of spambots posting discord links. Currently monitoring how the new filter rule works, and how many spam links it blocks versus legitimate uses
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View