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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:16:49+00:00 2026-06-03T06:16:49+00:00

I have an Extjs 4 app that is running as an iframe in another

  • 0

I have an Extjs 4 app that is running as an iframe in another web app (written in Javascript). I would like to somehow fire an event externally and catch it in the framework.
That is, I would like to emulate

 this.application.fireEvent('myevent', myparams);

I currently have a workaround. In my external app, I can do things like…

var w = document.getElementById('myIFRAME').contentWindow;
if (w) {
    w._myFunctionInExtjs(myParam);
}

…which calls a global function declared in my Ext code. It would be a lot cleaner if it’s done through the Ext events though, so any help is appreciated.

  • 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-03T06:16:50+00:00Added an answer on June 3, 2026 at 6:16 am

    I ended up using my workaround and created ONE global function. All it does it fires off Ext events.

    //  global function that is used for triggering Ext events 
    function _appFireEvent(eventName, objParam) {
        _extApp.fireEvent(eventName, objParam);    
    }
    

    Now, from my external site, I can call it and tell it which event I want raised:

    var w = document.getElementById('myIFRAME').contentWindow;
    if (w) w._appFireEvent('mycustomevent', myparam);
    

    Hope this helps someone.

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

Sidebar

Related Questions

I have a web app for commercial property management that needs spreadsheet-like functionality for
I'm using ExtJS 2.2.1 In my web app, I used to have a TreePanel
In my ExtJS 4.0.7 app I have some 3rd party javascripts that I need
I am new to ExtJS and have written a sample App using Ext.application with
I have a web app built using ExtJS framework. I have a tree in
I have an ExtJS grid on a web page and I'd like to save
I have an ExtJS xtemplate that is throwing errors because of the way a
I have an ExtJS Viewport with a container that has the border layout and
I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel
I have a MVC app built with extJS 4. I want to disable a

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.