Hi,
I am loading a two views into a cell like this:
landingLayout.cells(‘a’).view(‘home’).attachURL(‘home.html’);
landingLayout.cells(‘a’).view(‘preferences’).attachURL(‘preferences.html’);
When I set try to switch views by using the two buttons using the below statements the URL corresponding to the view gets reloaded every time. This is resulting in the previous content not being retained and when user is entering a form the content is lost if he switches the views in between.
Button 1: onclick
landingLayout.cells(‘a’).view(‘home’).setActive();
(or)
Button 2: onclick
landingLayout.cells(‘a’).view(‘preferences’).setActive();
This behaviour is exhibited in Firefox 14.
In case of IE 9 when I switch views after attaching URL the last added view alone remains.
E.g: In the above case since ‘preferences’ view is added after ‘home’ view only preferences content is retained. On switching view to ‘home’ from ‘preferences’ the view is blank.
I observed that this happening only with attachURL and not other attach.
Thanks in advance,
Prasanth