Page 1 of 1

Caption change event - doesnt trigger when changed by javascript

Posted: Tue Oct 22, 2013 2:47 pm
by Andy Parker

Hi, I'm using the following code to capture a change of orientation:

function doOnOrientationChange()
{
switch(window.orientation)
{
case -90:
case 90:
Tiggzi("orientation").text("landscape");
break;
default:
Tiggzi("orientation").text("portrait");
break;
}
}

the "orientation" variable is a caption object on the screen, and I can see this change accordingly when the orientation changes.

However, I have added a "value change" event (a simple alert) to the caption object but this doesn't trigger.

Am I missing something?


Caption change event - doesnt trigger when changed by javascript

Posted: Tue Oct 22, 2013 3:38 pm
by maxkatz

Value change can only be fired from an input component.

You should be using Appery(...) function, not Tiggzi(...).


Caption change event - doesnt trigger when changed by javascript

Posted: Tue Oct 22, 2013 3:40 pm
by Andy Parker

ok, thanks for that Max, I'll change the way I'm coding this.

Good point about the Tiggzi vs Appery - old habits.......