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

  • SEARCH
  • Home
  • 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 8527657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:37:05+00:00 2026-06-11T08:37:05+00:00

I have one TextBox (named BoxUser) and a PasswordBox (BoxPAssword) with value Password (

  • 0

I have one TextBox (named BoxUser) and a PasswordBox (BoxPAssword) with value Password (*******) in the GUI which i have created

Now i want to edit BoxPassword field value to: ” ” when a user write his own password to access the application.

I thought about using clickservers…

this code should work but doesnt

My handlers works right(serverHandler to clear_pass) + “Name of panel”

Please help!.


function doGet(){

  var app = UiApp.createApplication().setTitle("Panel de acceso");

  var Panel = app.loadComponent("Acceso");

  app.add(Panel);

 return app;

};


**function clear_pass(e){**

  var app = UiApp.getActiveApplication();

  var Panel = app.loadComponent("Acceso");

  var BoxPassword = app.getElementById("BoxPassword");

  BoxPassword.setText("");

  app.add(Panel);

  return app;

};
  • 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-11T08:37:06+00:00Added an answer on June 11, 2026 at 8:37 am

    Well, nobody has answered me during these hours. I’ve been working on
    it and I’ve found a solution without using GUI.


    function doGet(){
    
    var app = UiApp.createApplication().setTitle("Panel de acceso");
    
      /*var Panel = app.loadComponent("Acceso");
    
      app.add(Panel);*/
    
      var absolutePanel = app.createAbsolutePanel().setId("apbsolutePanel");
    
      var mainPanel = app.createHorizontalPanel().setId("mainPanel");
    
      var lbUser = app.createLabel("Usuario: ");
    
      var textBoxUser = app.createTextBox().setId("textBoxUser").setName("textBoxUser");
    
      var lbPass = app.createLabel("Password: ");
    
      var textBoxPass =app.createPasswordTextBox().setId("textBoxPass").setName("textBoxPass");
    
      var boton = app.createButton().setText("Entrar");
    
    
    
      var handlerClear = app.createServerHandler("clear_pass").addCallbackElement(textBoxPass);
    
      textBoxPass.addClickHandler(handlerClear);
    
    
      mainPanel.add(lbUser);
    
      mainPanel.add(textBoxUser);
    
      mainPanel.add(lbPass);
    
      mainPanel.add(textBoxPass);
    
      mainPanel.add(boton);
    
      absolutePanel.add(mainPanel);
    
      app.add(absolutePanel);
    
      return app;
    
    };
    

    function clear_pass(e){
    
      var app = UiApp.getActiveApplication();
    
      var textBoxPass = app.getElementById("textBoxPass");
    
      textBoxPass.setText("");
    
      return app;
    
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 textBox and 1 button! I want to insert text to one
I have two textboxes which binds to the same property. One textbox is for
I have a table student ( id, name ). Then I have one textbox,
In my code I have one textbox and one button. Whatever place you type
This is my problem, I have one textbox, one button and one label. Everything
see fiddle i have html table and one textbox and one button.make cell selection
I have two div's one has textbox in it and other just plain text.
In my page, I have 2 forms of textbox. The first one I have
I have two user controls, in one of them I have a textbox, i
I have a wpf control named DataPicker which has a dependency property named SelectedDate.

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.