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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:52:10+00:00 2026-06-18T09:52:10+00:00

I am currently attempting to add a listener to my button so that when

  • 0

I am currently attempting to add a listener to my button so that when it is clicked it loads what is in the ‘textId’ textfield into an html text above said textfield and button. This is so they can enter multiple things into this field and delete them if one is not needed afterwards because the text gets loaded in with a delete button.

createTextAndButton: function(fieldId, v, textId, field, text, num) {
    var n = new Number(num);
    var ct = new Ext.container.Container({
        xtype:"container",
        layout:"vbox",
        //padding:"5 0",
        items: [{
            xtype:"container",
            itemId: fieldId,
            }, {
            xtype: "container",
            layout:"hbox",
            padding: "5 0",
            items: [{
                xtype: 'textfield',
                vtype: v,
                name: textId,
                fieldLabel: field,
                validateOnBlur: true
            }, {
                xtype: "button",
                text: text,
                width: 115,
                handler: function() {
                    ct.down('#' + fieldId).add(Ext.ComponentMgr.create({
                        xtype: "container",
                        itemId: 'entry' + n,
                        layout: "hbox",
                        padding: "5 0",
                        items: [{
                            xtype: "component",
                            html: "<p>" + textId.getValue() + "</p>"
                        }, {
                            xtype: "button",
                            itemId: 'dButton',
                            text: "delete",
                            width: 80
                            }
                        }]
                    }));
                    n++;
                }
            }]
        }]
    });
    return ct;
}

I’m getting Uncaught TypeError: Object ignoreField has no method ‘getValue’ when I click on the button. I’m unsure why the textfields getValue method is not working or if I am doing something obviously wrong.

  • 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-18T09:52:11+00:00Added an answer on June 18, 2026 at 9:52 am

    Thanks to all those who attempted helping me solve this question. I was able to figure out where my fault was. for my textfields I should be using just the id: tag not name: or itemId Here is the working code for those who care.

    createTextAndButton: function(fieldId,  textId, field, text, num) {
        var n = new Number(num);
        var ct = new Ext.container.Container({
            xtype:"container",
            layout:"vbox",
            //padding:"5 0",
            items: [{
                xtype:"container",
                itemId: fieldId,
                }, {
                xtype: "container",
                layout:"hbox",
                padding: "5 0",
                items: [{
                    xtype: 'textfield',
                    id: textId,
                    fieldLabel: field,
                    validateOnBlur: true
                }, {
                    xtype: "button",
                    text: text,
                    width: 115,
                    handler: function() {
                        ct.down('#' + fieldId).add(Ext.ComponentMgr.create({
                            xtype: "container",
                            Id: 'entry' + n,
                            layout: "hbox",
                            padding: "5 0",
                            items: [{
                                xtype: "component",
                                html: "<p>" + Ext.getCmp(textId).getValue() + "</p>"
                            }, {
                                xtype: "button",
                                itemId: 'dButton',
                                text: "delete",
                                width: 80
                            }]
                        }));
                        n++;
                    }
                }]
            }]
        });
        return ct;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently having problems with attempting to style the HTML rich text editor
I'm currently writing a plugin that is attempting to add a view to the
I am currently attempting to push html updates to a page for a user
I currently have a deployed app (fortworth.herokuapp.com) that I am attempting to sort movies
I am attempting to add BASIC authentication to my RESTful web-service. Currently I have
I am currently attempting to make a bash script that executes a Java main
I'm attempting to add a custom pseudo-selector to jQuery, currently using v1.8.0, based on
I'm attempting to build a navbav that has four images, with a text link
Currently I am attempting to add a new row to a database table through
I am attempting to add some functions to backbone so that I can communicate

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.