Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8053499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:51:55+00:00 2026-06-05T07:51:55+00:00

Suddenly the scripts I was working on, are all stating this error when I

  • 0

Suddenly the scripts I was working on, are all stating this error when I use a click handler: Error Encountered: An unexpected error occurred

For example :

var clickHandlerColapse = app.createServerClickHandler("respondColapse");
upButton.addClickHandler(clickHandlerColapse);<br>
clickHandlerColapse.addCallbackElement(verPanel);

Calling the function:

function respondColapse(e) {
    var app = UiApp.getActiveApplication();
    app.getElementById('abpanel').setVisible(false);
    return app.close();
}

Any ideas what could cause this or why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:51:58+00:00Added an answer on June 5, 2026 at 7:51 am

    try this simple code :

    function buttontest() {
      var app = UiApp.createApplication().setHeight('50').setWidth('150');
      app.setTitle("test this button");
      var panel = app.createFlowPanel()
      var quit = app.createButton('quit');
      app.add(panel.add(quit));
    
      var QHandler = app.createServerHandler("quit");
      quit.addClickHandler(QHandler);
    
      var doc = SpreadsheetApp.getActive();
      doc.show(app);
    }
    //
    function quit(){
      var app = UiApp.getActiveApplication();
      app.close()
      return app;
      }
    

    On Chrome and safari (mac) It causes an error ‘An unexpected error occurred’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm receiving suddenly this error on a Win2003 Server Web Application: Microsoft VBScript runtime
The following code was working very well. Suddenly, the Edit button click stopped working.
I am getting this error on an existing server. No configuration change. Suddenly, it
I am suddenly getting a most unwelcome error on this page : Error: $(#accordion).accordion
Suddenly I started getting the following error: Fatal error: Class 'Mongo' not found in
My xinetd daemon suddenly stopped working after a kernel upgrade (from 2.6.24 to 2.6.33).
I am suddenly experiencing an intermittent error using the Google Checkout ASP.NET control GCheckout.
I have been using this script for a while and suddenly it just stopped
I'm having problems with Ruby scripts finding the right gems. It seems this is
Consider the following nonsense script as an example: use strict; use warnings; my $uninitialisedValue;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.