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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:40:54+00:00 2026-06-13T10:40:54+00:00

I am trying to make an extension that gets an XMLrequest and takes the

  • 0

I am trying to make an extension that gets an XMLrequest and takes the information and writes it to the browser action popup’s html page. Is this possible?

Here’s my manifest file

//manifest.json
"name":"myExtension",
"version":"1.0",
"manifest_version": 2,
"browser_action": {
    "default_icon":"favicon.ico",
    "default_popup": "popup.html"
}

My browser action popup html file:

<!--popup.html-->
<!DOCTYPE html>
<html>
<head>
    <title>My Title</title>
<script src="popup.js"></script>
<script src="jquery.min.js"></script>
</head>
<body>
    <p>Hello</p>
    <p class="add"></p>

</body>
</html>

And my script:

//popup.js

//Code up to this point gets xml info, I didn't include

var info = //string from xml request
$.(".add").html(info);

I see the Hello paragraph in the popup window, but never the info which should be in the add paragraph, and when I check the console, it tells me that the $ is undefined. How can I get jquery to work for me? I’m a relative newcomer to this so I’m sorry if this is really simple and I don’t understand it.

  • 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-13T10:40:55+00:00Added an answer on June 13, 2026 at 10:40 am

    There are a few points that are wrong

    • The order of adding your scripts; it should be:

      <script src="jquery.js"></script>
      <script src="popup.js"></script>
      
    • Your selector is wrong; it shouldn’t be $.(".add") but $(".add"):

      $(".add").html(info);
      
    • You need to wrap your jQuery commands into DOM ready/on load:

      $(function() {
        var info = //string from xml request
        $(".add").html(info);
      });
      

    Also, you don’t need to add the script to content_scripts if you don’t going to use it there.
    You have full access to your extensions resources from the background page and the popup.

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

Sidebar

Related Questions

I'm trying to make a Chrome extension that gets the current page's URL and
I'm trying to make an extension method that takes in an expression that points
So I'm trying to make a Chrome extension that takes in user input in
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Im trying to make an extension to Safari that authenticates with http://myphotodiary.com 's API.
I'm trying to figure out if it is possible to make an extension that
I am trying to make an extension method that will shuffle the contents of
I am trying to make a google extension that plays music. I want the
I'm trying to make a Chrome extension that will search different cache databases for
I am having some issues with an extension that i am trying to make.

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.