supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Custom Java Script is not working on any of the Click events

  • Hello, I wanted to add some Java Script on a click event of a pop-up but it did not work. I even tested it with simple alert('') and it does not seem to be working.
    • Another thing was, even if I deleted the java script from the click event of the button, it was still there in the screen1.js of the websource folder and the app behaves as if the JS is still there.Should not it updated the source file automatically?
      I appreciate your help.
Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Custom Java Script is not working on any of the Click events

Hello! Did you change any file on Source tab (are there blue colored files)?

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Custom Java Script is not working on any of the Click events

yes. I got rid of a JS function which was not being removed after deleting the custom JS on the click event.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Custom Java Script is not working on any of the Click events

Hello - please try to delete this blue colored files and make "Undo all source changes". Before doing it make a backup file of your project just in case.

And please check this section of our tutorials :: http://docs.appery.io/tutorials/sourc...

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Custom Java Script is not working on any of the Click events

Thanks. Is modifying this issues in consideration. I had no clue what I was doing wrong.

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

Custom Java Script is not working on any of the Click events

Hi Supriya,

Manually edit files on the Source tab should only be a last resort. If you change something in the page html document - this page is losing touch with the visual editor. That is, you can still add components to create event handlers, but they will be visible only in the visual editor, as IDE can not separate your changes from the code that generates it. IDE stops to make their changes to the page source code in order not to overwrite your changes. The same goes for page JS code and the CSS styles. These files are united by a common name that matches the Screen name.

Return to “Issues”