Hi, yesterday I open 
http://demo.qooxdoo.org/devel/demobrowser/demo/widget/Window_Browser.html and 
copy the Javascript. Then I make that application on my own computer. No 
changes I do to it. But the back and next button doesn;t work...


Here is my code : 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Quickstart</title>

  <!-- Use settings to configure application -->
  <script type="text/javascript">
    qxsettings = { "qx.application" : "Application" };
  </script>

  <!-- Include compiled qooxdoo -->
  <script type="text/javascript" src="script/qx-0.js"></script>

  <!-- Add your own classes here -->
  <script type="text/javascript">

qx.Class.define("Application",
{
  extend : qx.application.Standalone,

  members :
  {
    main : function()
    {
      // Call super class
      this.base(arguments);

        var win = new qx.ui.window.Window(
        "Web Browser",
        "icon/16/categories/internet.png"
      );

      win.setLayout(new qx.ui.layout.VBox());
      win.setAllowClose(false);

      this.getRoot().add(win);


      var toolbar = new qx.ui.toolbar.ToolBar();
      win.add(toolbar);

      var btnBack = new qx.ui.toolbar.Button("Back", 
"icon/16/actions/go-previous.png");
      btnBack.addListener("execute", function(e) {
        iframeku.getWindow().history.back();
      }, this);
      toolbar.add(btnBack);


      var btnForward = new qx.ui.toolbar.Button("Next", 
"icon/16/actions/go-next.png");
      btnForward.addListener("execute", function(e) {
        iframeku.getWindow().history.forward();
      }, this);
      toolbar.add(btnForward);



      txtUrl = new qx.ui.form.TextField().set({
        marginLeft: 1,
        value: "http://web.de";,
        padding: 2,
        alignY: "middle"
      });
      txtUrl.addListener("keypress", function(e) {
        if (e.getKeyIdentifier() == "Enter") {
          surfTo(txtUrl.getValue());
        }
      });
      toolbar.add(txtUrl, {flex: 1});

      btnGo = new qx.ui.toolbar.Button("GO", 
"icon/16/actions/media-playback-start.png");
      btnGo.addListener("execute", function(e) {
        surfTo(txtUrl.getValue());
      });
      toolbar.add(btnGo);



      iframeku = new qx.ui.embed.Iframe().set({
        width: 400,
        height: 300,
        minWidth: 200,
        minHeight: 150,
        source: txtUrl.getValue()
      });
      win.add(iframeku, {flex: 1});


      function surfTo(url)
          {
            if (url.indexOf("http://";) !== 0) {
              url = "http://"; + url;
              txtUrl.setValue(url);
            }
            iframeku.setSource(url);
          }


      win.open();
    }
  }
});
  </script>
</head>
</html>


Can anyone help me?

Thank you very much



      
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to