简体   繁体   English

从另一个打开一个应用程序

[英]Open an application from another one

Let's say I have an app (www.myappsmenu.com) and after selecting some info, input user and password, etc. I need to open www.myapp1.com or www.myapp2.com depending data introduced, all apps made with qooxdoo standalone and different web hosting. 假设我有一个应用程序(www.myappsmenu.com),选择了一些信息,输入了用户名和密码等后,我需要打开www.myapp1.com或www.myapp2.com,具体取决于引入的数据,所有使用qooxdoo制作的应用程序独立和不同的虚拟主机。 How to open the second app and then close the first one ? 如何打开第二个应用程序然后关闭第一个应用程序?

Best regards 最好的祝福

If I'm understanding you correctly, this isn't really qooxdoo-specific. 如果我对您的理解正确,那么这并不是qooxdoo特有的。 You can redirect to a new URL with something like 您可以使用以下方法重定向到新的网址

window.location.href = "http://www.myapp1.com";

You can put that in a qooxdoo event listener, eg, 您可以将其放在qooxdoo事件监听器中,例如,

button = new qx.ui.form.Button("MyApp1");
container.add(button);
button.addListener(
  "execute",
  function(e)
  {
    window.location.href = "http://www.myapp1.com";
  },
  this);

This will redirect to the new page when the button is pressed. 当按下按钮时,它将重定向到新页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM