Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Missing Javascript?

I have inherited an application from another developer who is not currently available for questioning. When I start this application, the user is logged in automatically, and a couple of fields from the database are displayed in "alert()"s. I have checked all of the events, and all of the services, and I cannot find where the code to create these alerts are created to remove them. Is there a bug or perhaps another way to add code to application that I may not be aware of?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Missing Javascript?

Hi Michael,

You should probably check the events, especially for the database services.

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Missing Javascript?

I have examined the events VERY carefully. There is no code in my events that show these alerts. In addition, I have also, again, VERY carefully, checked each of the service responses. There is no javascript in any of these. Green buttons all around. I've also searched through all of the javascript files (control+f) for the word 'alert' and none of them are responsible for the alerts that I am seeing. I promise that I am not asking a bone-head question.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Missing Javascript?

Michael,

Then share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a please so we could take a look.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Missing Javascript?

Open app on browser, open dev-tools (F12 in Chrome).
If you run in mobile tester choose app frame context in the bottom:
Image
After you choose context enter in console:
codealert = undefined; /code and do actions to force alert to appear. Next to the error in the console there will be a direct reference to the place in the code where call alert() - this is Step 3.

Michael Martinez
Posts: 0
Joined: Fri Aug 30, 2013 7:00 pm

Missing Javascript?

My bad... it was a bonehead question after all. :)

Return to “Issues”