Page 1 of 1

Page show event - javascript does not run

Posted: Fri Jan 31, 2014 3:02 pm
by Mark Tetrode

I have several issues with the page show event. I have an app that has four screens and that makes use of a template.

If I understand Appery.io correctly, the Load event is run only once, when the DOM is loaded, so any initialisation must be done in this Load event.

Question #1: When using templates and the above mentioned four screens, is the Load event triggered only once in total, or only once per screen? Do you have a link that explains which event is triggered at what moment?

Question #2: When opening the Chrome DevTools with F12, I can see the Home.css, Home.html, Home.js but not the other generated files. I know they are there, because when I download an export I see them. How do I get Chrome to display them?

Issue #1: In the screen 'More', a Page show event is present, that updates the header via JavaScript. However, this does not work in the present state. The last line is a comment. When you remove this line and also the Enter, it works. When you put in this comment at the beginning, it does not work. When you put one or more Enters at the end of the JavaScript, it does not work.Can you please have a look at it?

Issue #2: a similar issue is present on the 'Home' screen. A Page show event is present with JavaScript, but it is not triggered. Moreover, when I look in the Home.js where I expect the Page show event to be present, I cannot find it.

I have shared the application 'Smartconnect Kit' with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a already.

My environment: Windows 7, Chrome 32.

Thanks in advance

Mark


Page show event - javascript does not run

Posted: Fri Jan 31, 2014 6:05 pm
by Kateryna Grynko

Hi Mark,

Question #1: You understand correctly. Load event fires separately for each page.
Question #2: In Chrome on Sources tab there is a 'Show navigator' button - it opens a file tree.

Issue #1, 2: Please try cleaning cache. This must be working if there are no console errors.


Page show event - javascript does not run

Posted: Sun Feb 02, 2014 7:50 pm
by Mark Tetrode

Hi Katya

Thank you for answering my questions. Regarding the issues: There are no console errors. I tried the following:

  1. clear the cache of Chrome, the result is exactly the same.

  2. clear all data of Firefox: the result is exactly the same

    In both environments only Home.html / Home.js / Home.css are present, none of the other files that you would expect...

    Can you please have a look at the project I shared?

    Thanks

    Mark


Page show event - javascript does not run

Posted: Mon Feb 03, 2014 4:50 pm
by Maryna Brodina

Hello! It's a bug unfortunately, we'll fix it as soon as possible. Sorry for inconvenience.


Page show event - javascript does not run

Posted: Tue Feb 04, 2014 10:12 am
by Mark Tetrode

Hi Katya

Do you have an estimated date when this would be fixed?

Mark


Page show event - javascript does not run

Posted: Tue Feb 04, 2014 10:48 am
by Kateryna Grynko

Hi Mark,

Hope in a week.


Page show event - javascript does not run

Posted: Tue Feb 11, 2014 1:55 pm
by Maryna Brodina

Hello! This bug should be fixed now.