0

Clearing sideviews with backbutton

I need to clear the controls of a sideview when the backbutton is depressed.
Problem is that when the sidebar is called again, the previous contents is still visible until the onactivate is serviced
I did set up an 'onSelect' event, which gets called.
Problem is when I try to clear control an error is generated:
The onSelect Code: this.element.itemText.setText("");
or
this.element.itemText.data = "";
Error generated is: this.element.itemText has no properties.

Is there a way to clear?
Thanx in advance

by
1 Reply
  • QUOTE (billwhitman99 @ May 31 2010, 04:24 PM) <{POST_SNAPBACK}>
    I need to clear the controls of a sideview when the backbutton is depressed.
    Problem is that when the sidebar is called again, the previous contents is still visible until the onactivate is serviced
    I did set up an 'onSelect' event, which gets called.
    Problem is when I try to clear control an error is generated:
    The onSelect Code: this.element.itemText.setText("");
    or
    this.element.itemText.data = "";
    Error generated is: this.element.itemText has no properties.

    Is there a way to clear?
    Thanx in advance

    Hi Bill,
    It looks like you have a scoping issue. Please provide some code.

    - Ben
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets