Read the statement by Michael Teeuw here.
can i inject javascript as part of my modules getDom content?
-
i need to discover the ACTUAL size of an image, after its loaded…
this is pretty easy in javascript… in my module, can I inject some javascript to be execute when the img load event fires? this would be included everytime the getDom() function returns its content…
-
@sdetweil
Use MutationObserver in your module. You can google it. -
@sdetweil you can also create an image with ja and set an onload event listener
-
-
@sdetweil js javascript
-
@strawberry-3-141 thanks… didn’t think I could use onload in a module JS… we shall see
-
@sdetweil well, that was easy and works great!..
gotta figure out how to have a div with a fill color to replace the black edges when the pics are not fulls screen.
also the bottom edge of the pic is clipped by the bottom of the screen somehow… half the newsfeed line is over the clip line