Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Caption change event - doesnt trigger when changed by javascript

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Caption change event - doesnt trigger when changed by javascript

Value change can only be fired from an input component.

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

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Caption change event - doesnt trigger when changed by javascript

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

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

Return to “Issues”