• Liens & ressources
  • Mes liens
  • Tags
  • RSS
  • Connexion
Filtrer par liens sans tag

Getting HTML asynchronously from another page (with native JavaScript) | Go Make Thingshttps://gomakethings.com/getting-html-asynchronously-from-another-page/

  • shaarli
  • shaarli

On a recent project, I needed to load the form on a contact page in a modal window on a different page.
That’s typically something you’d turn to jQuery for, but I want to show you can achieve the same effect with native JavaScript.
Asynchronous HTML This approach uses XMLHttpRequest web API.
While this API is supported back to IE 7, HTML requests are only supported in IE10 and higher. #shaarli

Permalien
March 8, 2023 at 6:39:35 PM GMT+1
Shaarli 1649 shaares · 1122 liens privés · Shaarli · Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli · Documentation · Theme : Stack · Font : DINish
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? The personal, minimalist, super-fast, database free, bookmarking service par la communauté Shaarli