Page 1 of 1

Appery HTML 5 Website - Error on HTML 5 website hosted by Appery - not found in tester

Posted: Wed Apr 29, 2015 7:32 pm
by Bruce Stuart

Happy Wednesday,

I have an app - which I am using as a mobile website for business purposes.

I've published the app to SoftwareStudio.app.appery.io

The same app - when run in the mobile tester - works fine. There are no errors. However, on the HTML site published above, when walking through the menu selections - education, register, and then picking a class to register for - Errors out during the page load as follows:

Uncaught ReferenceError: PayPalGetToken is not defined

  • PayPalGetToken is the name of a service in the App - and at the point of error - the app is attempting to create a new DataSource - using this service.

    The source for the page (Or at the point of error ) - I've saved here.

    http://the-software-studio.com/javasc...

    If you need access to my Project - I've shared the project with support. You can find that running it in test mode - works fine.

    please help. I'm unsure as to why this service is not recognized? Something in the name of the service that I need to change?

    Bruce


Appery HTML 5 Website - Error on HTML 5 website hosted by Appery - not found in tester

Posted: Wed Apr 29, 2015 7:44 pm
by Bruce Stuart

Also - Here are images of the Error coming back from the site when running the HTML 5 source, and an image of my builder - where the dataSource is defined as well as the service consuming it.

Image

Image

Image


Appery HTML 5 Website - Error on HTML 5 website hosted by Appery - not found in tester

Posted: Wed Apr 29, 2015 10:26 pm
by Bruce Stuart

As a further piece of evidence.... on my Chrome browser - the application crashes as shown above - however, on my iPhone and iPad safari browsers, the App does not crash.


Appery HTML 5 Website - Error on HTML 5 website hosted by Appery - not found in tester

Posted: Wed Apr 29, 2015 10:36 pm
by Bruce Stuart

Problem solved - name of service cannot include GetToken or Token - I'm unsure of which - I removed the GetToken from the name - and replaced it entirely with Pay_Pal_make_key - and things now work.

I'm not sure if this is an undocumented keyword in Chrome - or if it's a keyword in Appery that should not be used - changing the name has fixed the issue.

Best,

Bruce