Page 1 of 3

'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 5:41 pm
by Rafael Martínez

We have a simple page with a toggle, a dynamic list from a service, and a toggle inside the list. The event 'value change' of the toggle inside the list don't work.

Image Image Image Image

Some help?


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 6:07 pm
by Illya Stepanov

Hi Rafael - any errors in Chrome console or Firebug tool?


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 6:24 pm
by Rafael Martínez

No errors in the console using Firebug and no events for the toggle works.

It is strange that the text "On" is on the right for the toggle inside the list control.


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 6:50 pm
by maxkatz

Should work, you can try it here:

http://appery.io/app/view/f1884986-2e... Image


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 7:40 pm
by Rafael Martínez

We are going to test it again.

We obtain the values from a service and the "value change" event is triggered for every record from JSON. JS alert works fine for the "value change" but no other JS functions. We will test again.


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 8:37 pm
by Rafael Martínez

Thank you so much, this works fine. We were doing wrong.

Our problem is that we need to call to a service in the "value change" event for the toggle but only after the list is completely loaded.

Some help?


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 8:55 pm
by maxkatz

In my example the list is completely loaded.


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 9:05 pm
by Rafael Martínez

Yes !? How this can be done?. We fail to do that,


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 9:06 pm
by maxkatz

I create the list on page load (by invoking a service).


'value change' event for the toggle inside a dynamic list

Posted: Fri May 03, 2013 9:24 pm
by Rafael Martínez

There is no way?

Our list is very complex, with one grid, one label, one hidden label and one toggle......and to write it all together without using Appery UI will be a lot of hard work.