Results 1 to 4 of 4

Thread: How to close my zimlet tab application using javascript???

  1. #1
    Join Date
    Mar 2014
    Posts
    5
    Rep Power
    1

    Default How to close my zimlet tab application using javascript???

    Hello there

    I developed a zimlet tab app and I launch it using javascript when I do click in a toolbar button. That works fine, my app is open in a tab perfectly using this:

    Code:
    var simpleAppName = this.createApp("MyApp", "zimbraIcon", " MyApp ");
    var app = appCtxt.getApp(simpleAppName);	
    app.launch();
    Inside my zimlet I have a Cancel button and I want to close my tab application (like we close the compose tab) and switch to the Mail View when I do a click on it. So far, I just manage to change the view using this:

    Code:
    appCtxt.getAppController().activateApp("Mail")
    But I steel need to close the tab which remains open but inactive, any suggestions please??????
    Thanks

  2. #2
    Join Date
    Feb 2014
    Posts
    12
    Rep Power
    1

    Default

    Quote Originally Posted by Ayi View Post
    Hello there

    I developed a zimlet tab app and I launch it using javascript when I do click in a toolbar button. That works fine, my app is open in a tab perfectly using this:

    Code:
    var simpleAppName = this.createApp("MyApp", "zimbraIcon", " MyApp ");
    var app = appCtxt.getApp(simpleAppName);	
    app.launch();
    Inside my zimlet I have a Cancel button and I want to close my tab application (like we close the compose tab) and switch to the Mail View when I do a click on it. So far, I just manage to change the view using this:

    Code:
    appCtxt.getAppController().activateApp("Mail")
    But I steel need to close the tab which remains open but inactive, any suggestions please??????
    Thanks
    I hope you are not missing out to look around or finding the required option or button to do so. Coz many a times people face such issues.

  3. #3
    Join Date
    Mar 2014
    Posts
    5
    Rep Power
    1

    Default

    Well, I've been looking around a lot, believe me, but until now, I can't find the way to do it and I really need to close my tab app....

  4. #4
    Join Date
    Mar 2014
    Posts
    5
    Rep Power
    1

    Default

    Done!!
    The solution is:

    Code:
    myapp_HandlerObject.prototype._resetApp=
    function(appName) {
    	app = appCtxt.getCurrentApp();
    	app.reset(false) ;
    	appCtxt.getAppController().activateApp("Mail") ;	
    	appCtxt.getAppChooser().getButton(this._myApp).setVisible(false);
    Hope to help somebody with this

Similar Threads

  1. Zimlet Tab with a close button
    By newscluster in forum Zimlets
    Replies: 0
    Last Post: 09-17-2012, 07:58 AM
  2. Replies: 0
    Last Post: 08-25-2010, 04:02 PM
  3. How to call a normal javascript in the zimlet?
    By anuradha_mihsra in forum Zimlets
    Replies: 1
    Last Post: 01-19-2009, 07:43 AM
  4. Invoking Zimlet JSP from Zimlet Javascript
    By Chewie71 in forum Zimlets
    Replies: 0
    Last Post: 12-22-2008, 10:12 PM
  5. zimlet javascript errors IE7
    By danpep in forum Users
    Replies: 8
    Last Post: 08-21-2007, 10:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •