Titanium Community Questions & Answer Archive

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

Hide/Remove webView?

Added a webView to a window with

win1.add(webview);

Works fine.

How do I hide and or remove this webView to reveal the original window??

— asked March 17th 2010 by Eldon Benz
  • iphone
  • view
  • views
  • web
  • window
0 Comments

12 Answers

  • we have fixed the remove crash in head

    — answered March 17th 2010 by Nolan Wright
    permalink
    0 Comments
  • try

    win1.remove(webview);

    does that work?

    — answered March 17th 2010 by Kosso
    permalink
    0 Comments
  • No win1.remove(webview); causes the app to crash.

    I just tried win1.hide(webview);
    THe web view goes away but the screen is then black.

    Thanks.

    — answered March 17th 2010 by Eldon Benz
    permalink
    0 Comments
  • I have a feeling they're looking in to this.

    Though it might not suit your needs for now (as it still takes up the space it used), but you could try webview.hide() or webview.visible = false

    — answered March 17th 2010 by Kosso
    permalink
    0 Comments
  • If you're able to build the SDK from the source on github, I think you'll find this has just been fixed ;)

    — answered March 17th 2010 by Kosso
    permalink
    0 Comments
  • No win1.remove(webview); causes the app to crash.

    I just tried win1.hide(webview);
    THe web view goes away but the screen is then black.

    Thanks.

    — answered March 18th 2010 by Eldon Benz
    permalink
    0 Comments
  • webview.hide() leaves the screen black.
    i would have thought the original screen would be visible?
    What am I missing?

    Not set up to build via github.

    It would appear that this is dealt with somehow in the Kitchen sink app but I surely can't find it. Its great to have all the examples in Kitchen sink but its very difficult to find the appropriate code for each example within the 198 js files. Sometimes code from more than one file is needed.

    There must be a better way.

    — answered March 18th 2010 by Eldon Benz
    permalink
    0 Comments
  • remove() just seems to not work. lets say I make a back button.

    back.remove(); // doesn't do anything!!

    win.remove(back); // crashes!!

    — answered March 22nd 2010 by Alex Grande
    permalink
    0 Comments
  • win1.close();
    

    That works for me.

    — answered June 17th 2010 by M B
    permalink
    0 Comments
  • win1.close();
    

    That works for me.

    — answered June 17th 2010 by M B
    permalink
    0 Comments
  • win1.close(); works for me

    — answered June 17th 2010 by M B
    permalink
    0 Comments
  • win1.close(); works for me

    — answered June 17th 2010 by M B
    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.