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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:23:52+00:00 2026-06-11T11:23:52+00:00

I have widgets/portlets similar to <div id=100 class=portlets> <iframe src=widgets/widget1_iframe.html></iframe> </div> Within each iFrame

  • 0

I have widgets/portlets similar to

<div id="100" class="portlets">
     <iframe src="widgets/widget1_iframe.html"></iframe>
</div>

Within each iFrame is another iFrame. I can add multiple widgets/portlets and order them.

I have a script which (for each change) gets the SRC of the initial iFrame (so in this case widgets/widget1_iframe.html) and the SRC of the iFrame within the iFrame (in my testing version, it alerts the user).

So using the example before, let’s say I add a new one to have something similar to

<div id="200" class="portlets">
     <iframe src="widgets/widget2_iframe.html"></iframe>
</div>

I then decide to move the second one above the first one. My script correctly shows widgets/widget2_iframe.html but then displays nothing for the iframe within the iframe. It then shows widgets/widget1_iframe.html correctly and also the iFrame within that iframe as well.

I did a check and the iFrame (within the iframe) within the widget/portlet is not available to the DOM.

So basically, if I had 100 portlets that I added and moved one, it would show me all the correct information apart from the iframe within the iframe of the widget/portlet that has been moved. Below is the stop event of my sortable function

stop: function (event, ui) {
    var sortorder = '';
    $('.' + opts.columnClass).each(function () {
        var itemorder = $(this).sortable('toArray');
        sortorder += itemorder.toString();
    });

    var substr = sortorder.split(',');

    jQuery.each(substr, function () {
            $.post("process.php", {
                widget: $('div#' + this + ' div.widgetcontent iframe').attr("src"),
                iframe: $('div#' + this + ' div.widgetcontent iframe').contents().find('iframe').attr("src")

            }, function (data) {
                alert("Data Loaded: " + data);
            });

    });

Essentially – the value for iFrame is not being passed for the widget/portlet that has been moved

  • 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-11T11:23:53+00:00Added an answer on June 11, 2026 at 11:23 am

    I put a delay straight after stop: function(event, ui) { of 1 second which seems to sort it

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

Sidebar

Related Questions

I have two widgets that can be checked, and a numeric entry field that
I have a container widget with a QVBoxLayout. I have about 100 widgets added
I have a class this is annotated with @Path like so: @Path(widgets) @Produces(MediaType.APPLICATION_XML) public
I have a simple custom NumberField: class NumberInput(forms.widgets.Input): input_type = 'number' class NumberField(forms.DecimalField): def
I have two widgets defined as follows class mainWindow : public QWidget { Q_OBJECT
I have several widgets involved in a presentation that need to interact with each
I'm making a website to sell widgets. I have a table for widgets, each
I have text widgets that can be added on the page. A click should
I have created widgets for my website(xyz.com), which can be embedded in different websites.
Let's say that I have some widgets, and each widget has events. Each event

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.