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 7885893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:11:08+00:00 2026-06-03T05:11:08+00:00

I have added a Button in the View { xtype:’button’, id:’when_button_click’, text:’Button Click’, ui:’alert’

  • 0

I have added a Button in the View

{
     xtype:'button',
     id:'when_button_click',
     text:'Button Click',
     ui:'alert'
}

In the controller, i have the following code;

1.) The problem i have is that it doesn’t execute from Ext.Ajax.request({ line onwards in the onNewNote function. How can i make the program send data to that URL.

2.) In the View, i have several textfields, so when the user taps on the button, i need the values entered in the textfields to be sent to the Controller class and then send it over the webservice. How can i send textfield data from the View class to the Controller class ?

Ext.define('myapp.controller.testcont', {

                      extend: "Ext.app.Controller",
                      config: {
                      refs: {
                      newNoteBtn: "#when_button_click"
                      },
                      control: {
                      newNoteBtn: {
                      tap: "onNewNote"
                      }
                      }
                      },
                      onNewNote: function () {

                     console.log("inside onNewNote function");

           Ext.Ajax.request({
                            url: 'http://call.com/the_webservice',
                            params : values,

                            failure: function (response) {
                            var text = response.responseText;
                             console.log("fail");

                            },                              success: function (response) {
                            var text = response.responseText;
                             console.log("success");

                            }

                            });

           var view = Ext.create('Ext.navigation.View', {
                                 fullscreen: true,
                                 items: [
                                         {
                                         title: 'Navigation View',
                                         html: 'This is the first item in the stack!'
                                         }
                                         ]
                                 });

                      }

                      // init and launch functions omitted.
                      });
  • 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-03T05:11:10+00:00Added an answer on June 3, 2026 at 5:11 am

    Typically when you define multiple form fields, you have to wrap them in a FormPanel component first, set an id for it, let’s say id: 'form', then in your controller:

    Ext.getCmp('form').getValues();

    will return an object containing values from each field in your form panel.

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

Sidebar

Related Questions

I have added UITabButtonItem onto my view controller using following code. Could anyone please
In my VIew, i have added a button and when i click on it,
I have a button that when pressed, a tableview section will be added and
I have table view with button. I have added UIPanGestureRecognizer to button to allow
i have added a UIViewController's view and a button to scrollview as subview...now how
hi i have a NSTableView in a view controller class i have added an
I have added a UIButton in a table view. Now when I click a
I have populated datagridview using the following method and I have added button column
I want to display PickerView when I click the button. I have a view
EXACT duplicate of Datagrid View Button repeat I have added button to datagrid view

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.