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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:00:41+00:00 2026-06-03T04:00:41+00:00

I’m new to chrome extensions development and I’m building one that requires a side

  • 0

I’m new to chrome extensions development and I’m building one that requires a side panel (not the popup), like firebug but on the right side.
I’m using jsTree (with json_data) in the side panel and I want to drag elements from the webpage to the side panel.

So far, to create the side panel, I’ve used a div appended to the body with a z-index so that it appears above the webpage, but the elements’ styles in my side panel are altered because of the website’s css.

So I thought I could use an iframe to avoid any css incompatibility within my side panel.
I create the iframe dynamically, with a src=”chrome-extension:///page.html”.

I’ve managed to make my jstree work fine in my iframe by loading the jquery+jstree scripts directly in the iframe’s source page… that’s pretty bad but I can’t get the content script to be used for the iframe’s source page (despite “all_frames”: true).

I’d like to drag elements from the website’s page into jstree in the iframe…
I’ve found the iframeFix: true and refreshPositions: true, but that doesn’t seem to change anything…
Anyone knows how to do that?

If I don’t use an iframe, according to the multiple examples on the web, I can easily drop an element to the jstree using the dnd plugin.
I haven’t tried it; even if it worked, the css in my side panel will be altered and I can’t let that happen.

I’ve seen the “div layer above the iframe” technique. I can successfully drop an element from the webpage on that div above the iframe.
But, when I try to post a message (containing the dropped elements’ data) to the iframe through a port the iframe doesn’t receive the message.
My idea in this case is to somehow add the message to the json data of jstree.

I’ve read all the posts I’ve found about content_scripts and iframe, I know about the bugs… I can’t figure out if it’s fixed or not, and if it is, I don’t know how to make the port communication between the ifram and the content script work.
Anyone knows more about that?

I should also add that when I try to communicate between the content script and the iframe using a port, and copy the listener from the iframe in the background page, the background page receives the message just fine… which just means that the port communication is working fine I suppose, but not between the content script and the iframe…

Any thoughts? I’m really stuck

  • 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-03T04:00:43+00:00Added an answer on June 3, 2026 at 4:00 am

    answering my own question;
    I haven’t found a solution on how to use iframes in a chrome-extension with jstree.

    I’m just going for the hardcore way; append a <div> to the <body>, and make sure by doing a lot of testing that the css inside my <div> will remain isolated from the webpage’s css.

    Cheers

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the

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.