this post was submitted on 24 Oct 2023
1 points (100.0% liked)

HTML

346 readers
1 users here now

founded 2 years ago
MODERATORS
 

Hi,

I would like to display an element (div) of another web page, hosted on a owned sub domain..

I was planning to use iframe, but it seem that iframe only allow to grab the entire page... any ideas ?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 2 years ago* (last edited 2 years ago) (1 children)

@[email protected] & @[email protected]

Thank you for your input !

I've finally ~~used~~ been forced to use https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API and DOMParser().parseFromString()

I say forced, because so far it's only that Prehistoric JS available for the front-end, HOPEFULLY there is some coming kick-ass technology to get rid of JS --> https://brython.info/ ❤️

[–] [email protected] -1 points 2 years ago

Never used brythom but I'm aware of it, what's the pros?