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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:40:58+00:00 2026-05-22T00:40:58+00:00

I have an Extjs window which has two buttons ‘Save and Refresh’ and ‘Clear’

  • 0

I have an Extjs window which has two buttons ‘Save and Refresh’ and ‘Clear’ Buttons.

Now I need to refresh the window on button click of the ‘Save and Refresh’ button.

could you please explain me how to do this?

Thanking You,

Regards,
Sathya

  • 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-05-22T00:40:59+00:00Added an answer on May 22, 2026 at 12:40 am

    You’ll need a reference to the button. Hopefully you already have one in your code, but if not you could try the Ext.Windows public “buttons” property:

    var = saveAndRefreshButton = myExtWindow.buttons[0]; // or 1
    

    Although if I remember right the buttons property went away in 4.0… all the more reason to keep your own reference to the button.

    To reload the page as soon as the button is clicked:

    saveAndRefreshButton.on('click', function() {
        window.location.reload();  // standard JavaScript to reload a page.
    });
    

    more likely you’ll want to wait for an AJAX request to complete the save (guessing based on the ajax tag on your question and common sense)

    saveAndRefreshButton.on('click', function() {
        Ext.Ajax.request({
            url: 'save.php',
            // jsonData, params, or whatever to pass down the data to save,
            success: function() {
                window.location.reload();
            },
            failure: function() {
                // couldn't save... show an error or something.
            }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple ExtJS 4 (xtype form) inside a window. It has two
In our application, we have a window containing a Grid and two buttons -
I have a window which opens up on a button click. The window takes
I have a JavaScript application which opens an ExtJS Window, containing an ExtJS TabPanel,
I have an ExtJS grid that has a button set up in it. The
I have a button in a panel which gets rendered inside a window. And
On Click of a button, opens a window in which i have a form
I have an ExtJS grid on a web page and I'd like to save
I'm using ExtJS on a registration page which should have no effect on this.
ExtJS has Ext.each() function, but is there a map() also hidden somewhere? I have

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.