neosubroutine event not working in mobile - Forum

Forum Navigation
You need to log in to create posts and topics.

neosubroutine event not working in mobile

Hi @luishp, I have added the below code in my page-enter event:

BEGINJS
 var myValue = ['province','myYear','mydate',{ name: 'fileURL', attr: 'data-link' } ];
 neosubroutine.listMyItem('form',myValue,true,6,'tempform');
ENDJS

It works well in the web browser see the attached video but when I compile it to android and tested on mobile it gives me this error. neosubroutine is not defined...see the attached image:

 

Uploaded files:
  • You need to login to have access to uploads.

@asmat, have you used NeoscriptToJS command first?
It's mandatory as this command will create neosubroutine.

You can do it using plain JavaScript too with this line of code:

neosubroutine = angular.element(document.getElementById("ng-view")).scope();

Let me know if this works.

Regards.

@asmat

Same with me his problems and i think is there "angular" method unfollow various mobile device needed.

Any scope .. and .. more hook

I think the problem is due to I have run the above code on first page of my app, I have put the code onto the second page, the problem solved automatically. maybe this is the cause of the declaration.