0

Restablishing Connection And Dinamic Menu

Hi!

I'm trying to reload my dynamic menu when my connection is restablishing.

Here are the steps i'm trying to do:

1 - change the method onNetworkRestored in EventHandlers.js

CODE
	onApplicationStartup: function(event){
$API.fetchMenu();
},
onNetworkRestored: function(event) {
$API.fetchMenu();
}


2 - add the method in init.js

CODE
EventHandlers.onNetworkRestored.subscribeTo(KONtx.application, ['onNetworkRestored','onNetworkConnectionReconnect'], EventHandlers);


I'm starting disconnected my connection and trying to execute the snnipet and the widget return a information message about the connecting lost, but when i connecting again, widget don't restarting to working, how make my widget understand he needs restablished connection?

Regards,
Rafael Bueno

by
1 Reply
  • here is the example video: http://www.screencast.com/t/YjljMzM2NWY
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets