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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:23:16+00:00 2026-06-06T15:23:16+00:00

I am using jquery.layout-1.2.0 by Fabrizio Balliano i want to know in my java

  • 0

I am using jquery.layout-1.2.0 by Fabrizio Balliano

i want to know in my java script whether a Layout Pane is in open state or closed state.

As per documentation i tried the following.

var lout = $('body').layout();
// get layout 'state'
var is_west_open = lout.state.west.isOpen;
alert(is_west_open);
if (!is_west_open)
  outerLayout.toggle('west');

Alert is returning ‘Undefined‘

What did i miss?

  • 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-06T15:23:18+00:00Added an answer on June 6, 2026 at 3:23 pm

    That’s right. There’s no duplicate property isOpen. Use NOT isClosed instead:

    var is_west_open = ( ! lout.state.west.isClosed);
    

    I am not ready to answer why is there no property isOpen (I dont watch on this js-library), but I’d like to give you 2 advices:

    1) Use console.log(<variable>) instead of alert(<variable>).

    • First of all, it doesn’t stop execution of the script, so you can see few log-messages at a time rather than clicking “OK” any time an alert happens;
    • You can back to the previous message;
    • Alert accepts a String, so any element provided is converted automatically with toString() method, so it is not exactly the same object that browser operate with;

    2) Try to use Developer Tools in Google Chrome or Firebug (in Firefox) or, in Opera and IE their native inspectors – it can enshort the time you debug your application – they show you all the properties and methods available for an object

    Just Click F12 and you’ll can see something like this:
    https://i.stack.imgur.com/JlSga.png

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

Sidebar

Related Questions

I want to know that can we build a data object using jquery/json, which
I am currently using jQuery to load a variable php layout depending on the
For my mobile app I am using jquery mobile with multipage layout (one html,
I'm using the jquery isotope plugin (and infinite scrolling) + fitvids.js in a layout.
I am using jquery layout and I have a very hard time getting rid
I am using the jQuery layout plugin and the jqGrid plugin in one of
I am using jquery layout for the first time. I have it working using
Is there is simple (enough) way to achieve the layout I want using CSS?
I am using jquery layout for the layout of my application. http://layout.jquery-dev.net/demos/complex.html I have
I am using JQuery as a layout switch which works fine, but when 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.