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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:32:01+00:00 2026-05-23T11:32:01+00:00

I successful used jQuery UI.Layout Plug-in in some test pages, but I failed when

  • 0

I successful used jQuery UI.Layout Plug-in in some test pages, but I failed when I tried to integrate layouts in an AJAX website.

When I load a page that uses layouts everything is Ok the first time, but the second time I try to load the same page layout plugin don’t work. Simplifying I’ve noted that the problem is not AJAX, else the layout plugin. This is the simplest example I’ve found:

function m() {
    $("body").html('xxx');
}

function m2() {
    $("body").html('<div class="ui-layout-west">west</div><div class="ui-layout-east">east</div><div id="mainContent"></div>')
    outerLayout = $("body").layout( layoutSettings_Outer );
}

$(document).ready( function() {
    m2();

    setTimeout("m()", 3000);
    setTimeout("m2()", 5000);
});

When the document is loaded, the layout is ok. After 3 seconds the layout disapears (as expected), and 2 seconds later the original page is back, but every DIV works as if the layout plugin is not loaded.

  • 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-05-23T11:32:01+00:00Added an answer on May 23, 2026 at 11:32 am

    I’ll answer my own question:

    outerLayout.destroy() resolves the problem. It must be called if you unload any layout DIV. In this case, it is enough to call destroy() just before $(“body”).html(‘xxx’); (first line in m() function).

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

Sidebar

Related Questions

I have two web pages; Foo.aspx and Bar.aspx. Bar.aspx uses jQuery.ajax() to request a
I am using MailLogger to send a message about a failed/successful release. I would
In building a content management system that incorporates jquery ajax into it's GUI I
Help me please i'm a newbie in ajax and framework jQuery , i make
I have experienced a weird problem with javascript. The problem page uses some jQuery
I'm using Rails with the JQuery plugin, and have some really complicated validations for
I have recently used the Asual Jquery Address v.1.3 and it workes successfully with
i have select the element in jQuery who used currently clicked. i try parent
I downloaded a jquery collapsible panel script (used as a menu), which I've got
I have used a tutorial http://www.devcurry.com/2010/06/load-page-dynamically-inside-jquery-ui.html to dynammically load an aspx page into a

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.