<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[can i inject javascript as part of my modules getDom content?]]></title><description><![CDATA[<p dir="auto">i need to discover the ACTUAL size of an image, after its loaded…</p>
<p dir="auto">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…</p>
]]></description><link>https://forum.magicmirror.builders/topic/8748/can-i-inject-javascript-as-part-of-my-modules-getdom-content</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 15:59:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8748.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Sep 2018 16:17:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Sun, 16 Sep 2018 20:54:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> well, that was easy and works great!..</p>
<p dir="auto">gotta figure out how to have a div with a fill color to replace the black edges when the pics are not fulls screen.</p>
<p dir="auto">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</p>
]]></description><link>https://forum.magicmirror.builders/post/44480</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44480</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 16 Sep 2018 20:54:44 GMT</pubDate></item><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Sat, 15 Sep 2018 16:23:03 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 thanks… didn’t think I could use onload in a module JS… we shall see</p>
]]></description><link>https://forum.magicmirror.builders/post/44441</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44441</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 15 Sep 2018 16:23:03 GMT</pubDate></item><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Sat, 15 Sep 2018 16:17:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> js javascript</p>
]]></description><link>https://forum.magicmirror.builders/post/44440</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44440</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sat, 15 Sep 2018 16:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Sat, 15 Sep 2018 15:18:00 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 ja?</p>
]]></description><link>https://forum.magicmirror.builders/post/44437</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44437</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 15 Sep 2018 15:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Sat, 15 Sep 2018 01:08:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> you can also create an image with ja and set an onload event listener</p>
]]></description><link>https://forum.magicmirror.builders/post/44420</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44420</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Sat, 15 Sep 2018 01:08:26 GMT</pubDate></item><item><title><![CDATA[Reply to can i inject javascript as part of my modules getDom content? on Fri, 14 Sep 2018 22:12:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Use <strong>MutationObserver</strong> in your module. You can google it.</p>
]]></description><link>https://forum.magicmirror.builders/post/44416</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/44416</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 14 Sep 2018 22:12:04 GMT</pubDate></item></channel></rss>