Code that runs when an object is fully loaded
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, jquery
- Ambito
- frontend
Direzione di ricerca
The issue names no repository files, tests, or entry points. Start by reproducing the dynamically inserted object and its jQuery load-listener setup, then define the expected completion behavior before identifying a suitable change and verification approach.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Let's say divSomeObject could be too large to fit in a rectangle that has been allocated for it.
It could have an image in it, so when the object is first created, we have no way of knowing whether or not the contents will fit in the box.
So let's have some code run when the object if fully loaded, using jQuery.
$(divSomeObject).on ("load", function () {
runSomeCode ();
});
But this isn't happening.
I've read all I can find on the web about this, but they seem to be concerned with objects that load when the page loads. There's no requirement that this happen at page-load time. Sometimes the objects appear dynamically while the app is running.
I've made sure the object is inserted in the DOM when we set up the listener for the "load" event.
Any suggestions welcome.
- Lingua principale
- HTML
- Stelle
- 134
- Fork
- 10
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scripting/Scripting-News
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
scripting/Scripting-News#353 · 6 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
scripting/Scripting-News#332 · 25 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
scripting/Scripting-News#362 ·
-
Matt is moved aside Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
scripting/Scripting-News#361 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
scripting/Scripting-News#360 · 1 commento · 1 reazione ·
Tutte le issue di scripting/Scripting-News
Issue simili
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
n0-computer/iroh#4550 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/nocturne#1425 ·
-
ui/ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Theme loads third-party resources on every page (jsdelivr web font, cdnjs Font Awesome) – GDPR Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
docToolchain/docToolchain#1705 ·