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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:29:42+00:00 2026-06-06T07:29:42+00:00

I have some html5 postMessage code: window.addEventListener(message, FA.recieveMessage, false); That listener invokes this function:

  • 0

I have some html5 postMessage code:

    window.addEventListener("message", FA.recieveMessage, false);

That listener invokes this function:

FA.recieveMessage = function(e){
if (e.data == "closeFA"){
            console.log("Type of data: "+e.data);
}
};

Now on ie8 this code doesnt work, cause it doesnt support html5 messaging. So I thought if there is a way to invoke that function by sending an ajax request of type jsonp!?

Is there a way to emulate messaging with jsonp?

if i do send jsonp request to another server, does it mean that it is a new request and it wont be aware of all the events that were triggered now?

UPDATE

Okay here is what I want. I want to close an iframe. So on one page, I have got this javascript:

        $.ajax({url:      'http://api.apps.com/html/'+FA.appID,
      data:      {},
      dataType: 'jsonp',
      timeout:  10000,
      jsonp: "closeIFrame"
      });

This should instruct the apps/html page to invoke the closeIframe function is that right?

function closeIFrame() {
    jQuery("#fa-iframe-container").fadeOut(300, function(){ jQuery(this).remove(); });
FA.bannerShown = false;

}

  • 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-06T07:29:44+00:00Added an answer on June 6, 2026 at 7:29 am

    Yes technically you could emulate messaging with jsonp, each call will be a new request but the session will be available so the jsonp service could be state aware.

    Update

    In my experience you don’t call functions within a file instead each file represents a function so you may have services like:

    http://example.com/add?message=hello

    http://example.com/get

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

Sidebar

Related Questions

I have some code that uses a multi-part form and HTML5 file object to
We have some code that is making use of the new postMessage functionality in
I have some html5 canvas code to make an image, the current fillstyle is
I have external html5 canvas that you can paint on some lines using your
I have seen some articles about HTML5 Manifest, which say that we must add
I have an application that uses html5 to let the user listen to some
So I'm working on some HTML5 code using HAML and SASS. I currently have
I have the following javascript code to play some HTML5 sounds: var html5_audiotypes={ //define
I have an HTML5 canvas image where I've drawn some points and I want
I have some html stored in database . I dont know that html stored

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.