Page 1 of 2

Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Sun Dec 15, 2013 12:40 am
by kskk02

This is a headscratcher. Try clicking on "Map the Events" in the link below

http://volunteermatch.app.appery.io/M...

The app hangs. However, if you go directly to the page - http://volunteermatch.app.appery.io/M...

It works.

Why does it hang? Note that this is a general problem whenever I have a page with javascript HTML component.


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Sun Dec 15, 2013 1:39 am
by Illya Stepanov

Hi -

Can you share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Sun Dec 15, 2013 1:44 am
by kskk02

Done


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Sun Dec 15, 2013 8:13 am
by Alena Prykhodko

Please try to debug your app http://docs.appery.io/documentation/d...
Also tell page with issue and how to reach this http://volunteermatch.app.appery.io/M... on Preview testing?


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Sun Dec 15, 2013 4:46 pm
by kskk02

THank you. If you go directly to the page, its fine, but if you try to navigate to the page through http://volunteermatch.app.appery.io/M...
then clicking on the bottom "Map The Events" button, then it just hangs. It seems to be a subtle appery bug though so I am unable to debug using the usual console means.


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Mon Dec 16, 2013 10:29 am
by Maryna Brodina

Hello! You have an error in file JavaScript2.js. In JS asset you can't use tags pre<script type="text&#47;javascript">/pre and pre<&#47;script>/pre delete them and let us know result.


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Mon Dec 16, 2013 8:42 pm
by kskk02

Hi maryna, THank you for your response. You are right about that but that script is not pertinent for the page in question. In any case, the issue is because the google API is not loading the initialize function in time for the rendering. I.e. the page loads before the google API can be called. After fixing this, it works on the appery platform when tested (although when i remove the frames in the test window it no longer works) but doesnt work on the published website - http://volunteermatch.app.appery.io/M... - click on "Map the Events" .

http://stackoverflow.com/questions/14...

Any more advice? Thank you so much Maryna !!


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Mon Dec 16, 2013 10:06 pm
by Kateryna Grynko

Hi,

You can run JavaScript on Page Show event to make sure the whole page is loaded.


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Mon Dec 16, 2013 11:39 pm
by kskk02

Thanks Katya, I think that problem is now resolved. However, if you navigate to the page as I mentioned in my last post, the page appears in a strange manner. However, if you navigate to the page directly (i.e. type the URL directly), then it works fine.


Appery Application Hangs When Transitioning to a Screen with HTML COmponent with Javascript

Posted: Mon Dec 16, 2013 11:48 pm
by Alena Prykhodko

In what browser do you test? Checked published website in Firefox 25.0.1 - works fine.