Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Problem with Page show & load page events

Problem with Page show & load page events. I added an alert statement & console.logs as steps in both page show & load page but they don't fire. Even if I insert a console.log into a script I'm almost sure runs (I'm doubting myself now) nothing happens. I did change the project source (I noticed the js editor was complaining about missing ";" and some that had too many ";" so I fixed that in there.) but not sure if related. Any ideas ?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Problem with Page show & load page events

Hello,

Sometimes JS code don't fire because there is JS error. Please check browser console are there any errors? If there is no any errors, please post app publick link.

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Problem with Page show & load page events

No js errors showing in console. Here's the link http://appery.io/app/mobile-frame?src...

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Problem with Page show & load page events

It appears as though if I add an event its being ignored but if I change some javascript that is already in the list of events it runs

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Problem with Page show & load page events

Hi Bob.

It's hard to say what's wrong.
Please share your application with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, tell its name and steps to test so we will take a look.

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Problem with Page show & load page events

OK. Is now shared. Name is "Call Sheets". The first screen asks for user name & password. Use user = bobf, p/w = abcd1234. You'll see it stays on that page. When you click on "Log In" (or press enter) it should run a service called serviceLogin. That in turn when complete runs some javascript. The first line in that is an alert saying "service login complete". Further down the same script it runs a function called doAPP. I've changed this to do an alert saying "running log in". This one shows... the other doesn't...

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Problem with Page show & load page events

Dear Bob.

As we can see you have changed login.js file on the Sources tab

Please follow next document:

http://docs.appery.io/tutorials/sourc...
pre
It’s important to remember that if you try to make any changes in the visual builder after you have edited the source, the changes won’t be seen./pre

That's why you didn't have changes when you change js in editor.

To fix :

In "WEB_RESOURCES" delete login.js, and for this folder select "Undo all souce changes"

Note: after this processing all change you have done in this file would be canceled.
Please read more about editing Sources in the doc above.

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Problem with Page show & load page events

OK. Thanks.Thought it was something stupid I did

Return to “Issues”