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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:00:53+00:00 2026-06-10T14:00:53+00:00

I am developing a Firefox add-on. It basically parses the HTML document after it

  • 0

I am developing a Firefox add-on. It basically parses the HTML document after it loads in the browser. I am able to capture events like form submission, link clicked etc. However when a HTML pages silently submits via an AJAX call and partially gets updated, I am unable to capture them – hence as such how can I trap a web page AJAX request / response in an add-on?

  • 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-10T14:00:54+00:00Added an answer on June 10, 2026 at 2:00 pm

    While you can try detecting the AJAX call – what you really want to detect are page modifications it seems. You can use mutation observers (introduced in Firefox 14) for that. For example:

    var observer = new MutationObserver(onDocumentChange);
    
    // We are interested in elements being added/removed and text changes, not in
    // attribute changes however.
    var config = { attributes: false, childList: true,
                   characterData: true, subtree: true };
    
    // Start observing the content page's document
    var doc = gBrowser.contentWindow.document;
    observer.observe(doc, config);
    

    The function onDocumentChange will be called whenever changes are made to the content document.

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

Sidebar

Related Questions

I'm developing a Firefox add-on and want to get the document content (DOM Elements)
I'm a noob developing a firefox add-on. I have been able to successfully anchor
I am developing a firefox extension and ideally would be able to get the
I'm developing a firefox add-on. Currently, once it has gathered the necessary information and
I have been tasked with developing a Firefox add-on that is capable of registering
I'm developing firefox sidebar that interacts with the main browser window. When a button
I'm working on developing a Firefox add-on using the Add-on SDK . I changed
I'm developing extensions for Chrome, Safari and Firefox, and I need to add SWF
I'm developing a firefox addon and would like to have a fixed position (relative
I'm developing a Firefox addon, after nominating the addon for public release in Firefox

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.