Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

webview is not displayed when tab changed

I have an application with a tabgroup which contains 2 tabs(Home & About).
A webview which loads a html file called "index.html" is displayed in "Home" tab.
Everything is ok in first load but when "index.html" is redirected to another html page through "window.location" command,the "Home" tab doesn't go back to "index.html" and displays the current html page.

Can anyone help me?
Thanks!

— asked June 4th 2010 by Sara Raminpour
  • tab
  • webview
0 Comments

2 Answers

  • Accepted Answer

    Try setting the url property you need for your webView in the window's 'focus' event.

    — answered June 4th 2010 by Kosso
    permalink
    0 Comments
  • Thank you so much Kosso,
    it worked

    — answered June 7th 2010 by Sara Raminpour
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.