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

The Archive Base Latest Questions

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

I have a problem with the following javascript: var stereo_form =new Ext.form.FormPanel({ id: stereoInfo_panel,

  • 0

I have a problem with the following javascript:

var stereo_form =new Ext.form.FormPanel({
        id: "stereoInfo_panel",
        autoDestroy:true,
        frame: true,
        width: 410,
        items:[{
            xtype: 'textfield',
            fieldLabel: 'DEM Resolution',
            name: 'resolution',
            value: '0.005' //sets a default value

        },{
            xtype: 'textfield',
            fieldLabel: 'Pyramid Level',
            name: 'matching',
            value: '0' //sets a default value

        },{
            xtype: 'textfield',
            fieldLabel: 'Size of DEM',
            name: 'size',
            value: '50.00' //sets a default value

        }],
            buttons: [{
                text: 'Confirm',
                handler: function()
                        {
                               // user1 = value of resolution field
                                                // user2 = value of matching field
                                                // user3 = value of size field
                            w.close();
                        }

        }]
    }); 

    var w =new Ext.Window({
        id: "stereoInfo_win",
        title: "Stereo Reconstruction Parameters",
        layout: 'form',
        height: 152,
        width: 415,
        items: stereo_form

    });

So I need the three user1, user2 and user3 variables to be assigned the values from the form fields resolution, matching and size when the ‘confirm’ button is pressed, how do I do this?

James

  • 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-10T09:29:49+00:00Added an answer on June 10, 2026 at 9:29 am

    Try this:

    var w = new Ext.Window({
            id: "stereoInfo_win",
            title: "Stereo Reconstruction Parameters",
            layout: 'form',
            height: 152,
            width: 415,
          items: {
            xtype: 'form',
            id: "stereoInfo_panel",
            frame: true,
            width: 410,
            items:[{
                xtype: 'textfield',
                fieldLabel: 'DEM Resolution',
                name: 'resolution',
                value: '0.005' //sets a default value
    
            },{
                xtype: 'textfield',
                fieldLabel: 'Pyramid Level',
                name: 'matching',
                value: '0' //sets a default value
    
            },{
                xtype: 'textfield',
                fieldLabel: 'Size of DEM',
                name: 'size',
                value: '50.00' //sets a default value
    
            }],
                buttons: [{
                    text: 'Confirm',
                    handler: function(btn)
                     {
    
                     // console.log(Ext.getVersion()); // uncomment to know your extjs version
    
                     // traverse to the form object, then get the fields values
                     var values = btn.findParentByType('form').getForm().getValues();
    
                      user1 = values['resolution'];
                     user2 = values['matching'];
                     user3 = values['size'];
    
                     // traverse up again to the window object
                     btn.findParentByType('window').close();
                 }
    
            }]
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm kinda new to javascript running on Apache but I have the following problem.
I have a following regex expression in javascript var reg = new RegExp(^[(]?[2-9]\d{2}[)]?[\-. :]?[2-9]\d{2}[\-.
I have the following problem: <script type=text/javascript> alert(1. ČĆŽŠĐčćžšđ); </script> <script type=text/javascript src=Tst.js></script> <script
I have following resourceBundle Javascript object. var resourceBundle = { en : { MSG1
I have the following problem: I have a form I need to serialize but
I do have the following JavaScript. <form> <select id=sel> <option value=1>item_1</option> <option value=2>item_2</option> <option
I have the following javascript code: var objectArray = []; var allInputObjects = [];
have the following javascript code // note: declaring i in this loop for( var
I have the following code for a fade animation in Javascript: var ticks =
I have the following javascript code: $(window).bind(scheduleComplete, (function (event, params) { var hallCount =

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.