<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Run a function when a new view (window) is loaded in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019676#M37656</link>
    <description>&lt;P&gt;Hi, I am new in Intel XDK , and the version I am using is 1878. I am trying to fire a function when the system change page (new view show). I did try the following&amp;nbsp; code :&lt;/P&gt;

&lt;P&gt;document.getElementById('agreementPage').addEventListener('panelload', &lt;STRONG&gt;function&lt;/STRONG&gt;(){&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;alert("you're in agreementPage &amp;nbsp;view!");&lt;/P&gt;

&lt;P&gt;}, &lt;STRONG&gt;false&lt;/STRONG&gt;);&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;But this did not work. It’s look like the notion of panel is not used anymore, The system just hidden and show the div containing the information of the new view.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;lt;div class="upage vertical-col hidden" id="mainpage"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;div class="upage vertical-col left " id="agreementPage"&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I also did try to include a onpropertychange="functionOnShow()" tag to the div without success.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I will appreciate all advice.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2015 02:15:10 GMT</pubDate>
    <dc:creator>Denis_L_</dc:creator>
    <dc:date>2015-04-11T02:15:10Z</dc:date>
    <item>
      <title>Run a function when a new view (window) is loaded</title>
      <link>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019676#M37656</link>
      <description>&lt;P&gt;Hi, I am new in Intel XDK , and the version I am using is 1878. I am trying to fire a function when the system change page (new view show). I did try the following&amp;nbsp; code :&lt;/P&gt;

&lt;P&gt;document.getElementById('agreementPage').addEventListener('panelload', &lt;STRONG&gt;function&lt;/STRONG&gt;(){&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;alert("you're in agreementPage &amp;nbsp;view!");&lt;/P&gt;

&lt;P&gt;}, &lt;STRONG&gt;false&lt;/STRONG&gt;);&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;But this did not work. It’s look like the notion of panel is not used anymore, The system just hidden and show the div containing the information of the new view.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;lt;div class="upage vertical-col hidden" id="mainpage"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;div class="upage vertical-col left " id="agreementPage"&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I also did try to include a onpropertychange="functionOnShow()" tag to the div without success.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I will appreciate all advice.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2015 02:15:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019676#M37656</guid>
      <dc:creator>Denis_L_</dc:creator>
      <dc:date>2015-04-11T02:15:10Z</dc:date>
    </item>
    <item>
      <title>I am assuming you are using</title>
      <link>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019677#M37657</link>
      <description>&lt;P&gt;I am assuming you are using the Intel App Framework, but you don't mention which version you are using: 2.x or 3.x.&lt;/P&gt;

&lt;P&gt;Please see &lt;A href="https://software.intel.com/en-us/forums/topic/543018"&gt;this discussion thread&lt;/A&gt; from the App Framework section of the board which might be helpful.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2015 13:42:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019677#M37657</guid>
      <dc:creator>Barry_Johnson</dc:creator>
      <dc:date>2015-04-11T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot Barry, this</title>
      <link>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019678#M37658</link>
      <description>&lt;P&gt;Thanks a lot Barry, this discussion tread was very useful.... everything is in order now... Thanks again Denis&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 04:35:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Run-a-function-when-a-new-view-window-is-loaded/m-p/1019678#M37658</guid>
      <dc:creator>Denis_L_</dc:creator>
      <dc:date>2015-04-13T04:35:37Z</dc:date>
    </item>
  </channel>
</rss>

