Hi,
I would refactor everything you do inside the initialize method inside another
method.
For example myInit : function() {
}
then I would add a listener to the page "start" event. This event is executes
everytime the page gets visible.
page.addListener("start",this.myInit,this);
Please make sure to dispose all elements you want to re-create, before.
Overwise you would get memory leaks after multiple starts of the page.
Greetz Christopher
Am 12.02.2014 um 15:32 schrieb Dragonheart <[email protected]>:
> Hello!
>
> What is the best way of refreshing mobile NavigationPage's content?
>
> For example I have a page with clickable list where click on every item
> shows another page and transfers some array to it - I have two binded
> properties for that and debugging shows that the destination page gets all
> the data ok. But inside of it I have a generation of embed html inside of
> _initialize method that uses the data from array property.
>
> The problem is - everything is fine when I'm opening the second page for the
> first time, but if I go back to the page with list, then click on some item
> and open the second page - I still have the old data, since _initialize
> method doesn't run for the second time. I can run it manually inside of an
> apply method of the property, but in this case I just have a new content
> added to the old content. In other cases i've solved such problems in
> different ways, but I have no ideas how to solve the updating of embed html
> content (to make usage of new updated html string). I tried things like
> .initialize() inside of the event showing second page, but no luck.
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Refreshing-mobile-NavigationPage-s-content-tp7585313.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel