Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

get error when try to show busy indicator

fabrizio_d_
Beginner
1,266 Views

i added notification cordova plugin but still get the error "Uncaught TypeError: Cannot read property 'showBusyIndicator' of undefined index_user_scripts.js:13(anonymous function) index_user_scripts.js:13x.event.dispatch jquery.min.js:5v.handle" when triyng to show busy indicator.

this is the javascript:

 $(document).on("change","#sel_produttori", function(evt)
    {
        intel.xdk.notification.showBusyIndicator();
    });
  Thanks.

0 Kudos
7 Replies
Elroy_A_Intel
Employee
1,266 Views

I recommend using the Apache Cordova equivalent plugins instead of intel xdk plugins. Currently intel xdk plugins are not being maintained. You can find the Cordova* Notification plugin in the Core Plugins section under the Plugins Management dialog on the Projects Tab.

0 Kudos
PaulF_IntelCorp
Employee
1,266 Views

By "system busy indicator" I assume you are referring to the Android LED? If so, please read this SO post > http://stackoverflow.com/questions/6169291/changing-led-color-for-notifications -- if that is not what you mean, please clarify.

0 Kudos
PaulF_IntelCorp
Employee
1,266 Views

Fabrizio -- our IT blocks access to some sites. The site you are using to show an image of your issue is blocked, so I can't see the image. Can you simply attach the image to your post using the "Attach Media" button below the edit window?

0 Kudos
fabrizio_d_
Beginner
1,266 Views


just attached the image.

0 Kudos
Anusha_M_Intel1
Employee
1,266 Views

@Fabrizio. I noticed you issue was resolved here: http://stackoverflow.com/questions/34182122/how-to-show-showbusyindicator-into-xdk-html5-hybrid-application

 

0 Kudos
fabrizio_d_
Beginner
1,266 Views

yes i know, the only problem is that it does'nt work in emulator.

Also i dont understood if it is working only on android or other so too, i've no one to test.

0 Kudos
PaulF_IntelCorp
Employee
1,266 Views

Fabrizio -- testing it in the Emulate tab will not be a confirmation that your app runs properly on real devices, the Emulate tab does not represent real devices, it is simply a "Cordova API simulator." Getting an app to work in the Emulate tab does not mean it will work on a real device. Please see this doc page > https://software.intel.com/en-us/xdk/docs/intel-xdk-dev-emulator-limitations

0 Kudos
Reply