title: example code of dialog box does nothing
body: <p><strong>I opened a new question: <a href="https://stackoverflow.com/questions/17184071/example-code-of-dialog-box-makes-a-mess">example code of dialog box makes a mess</a></strong></p>
  
  <p>I am trying to run the example in <a href="https://developers.google.com/apps-script/reference/ui/dialog-box" rel="nofollow noreferrer">https://developers.google.com/apps-script/reference/ui/dialog-box</a></p>
  
  <pre><code>function doGet() {
      var app = UiApp.createApplication();
      // Create a dialog box.
      var dialog = app.createDialogBox();
      // Add a label to the dialog and set the dimensions and position.
      dialog.setPopupPosition(100, 100).setSize(500, 500).show();
      // Show the dialog. Note that it does not have to be "added" to the UiInstance.
      dialog.show();
      return app;
  }
  </code></pre>
  
  <p>and nothing happens. what am I missing?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I didn't know about the need for deploying as webapp, but now I have another problem
  after running the code above as webapp I get:
  <img src="https://i.stack.imgur.com/OhsX9.jpg" alt="that whats happens"></p>
  
  <p>What am I missing this time?</p>