Rick_C137,
@Rick_C137@programming.dev avatar

@UFODivebomb & @ExperimentalGuy

Thank you for your input !

I’ve finally used been forced to use developer.mozilla.org/en-US/docs/Web/…/Fetch_APIand 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 --> brython.info ❤️

ExperimentalGuy,

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

Rick_C137,
@Rick_C137@programming.dev avatar

You can interact with the HTML DOM with Python !!!

ExperimentalGuy,

Instead of using JavaScript to grab it from that other page, it might be worth it to make that snippet of html its own file and then call it, both in the original page and the page you’re making. It sounds like this is feasible too if you have ownership over that other subdomain. I know they used to use this technique a lot back in the old days of just html, so it’d probs work for you.

UFODivebomb,

developer.mozilla.org/…/HTML_in_XMLHttpRequest

Grab the HTML. Slice up the DOM to get the div. Add to the page.

Probably want more than just the div. Might run into cross origin issues.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • html@programming.dev
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines