Determine when JavaScript has finished dynamically inserting img tags

  • I'm trying to write a script that will allow me to perform some actions once the "embed" of the JavaScript version of the panorama (for iPhone/iPad) has completed, but I'm having a difficult time measuring this. Is there an event fired or just a way to determine when the krpanoiphone.js has completed and the img tags are actually in the DOM so I can perform actions on them?

  • Because I'm iframing in the panos from a separate page, I'd like to be able to assign jQuery's .load function to each img in the panorama so I can keep track of when all have loaded. At this point, I'll fade in the panorama and can assign other scripts to run to gracefully introduce it.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!