Achieving and accessing multiple left panels in Jquery/CSS and automatically adjusting the main content container

Delving deeper into advanced CSS and JQuery for a unique layout, I've hit a roadblock. It seems like I might be overlooking something obvious or this could require more intricate scripting to achieve. Despite days of searching, I haven't come across any JQuery and CSS examples that closely match what I need. While single sliding panel demos are easy to find, I can't seem to find anything that caters to two or three overlapping panels and also demonstrates how to position the main content alongside these moving panels.

The goal is to have three panels slide in and out from the left side of the window, with handles located on the panels themselves (similar to a vertical handle at the bottom of a text field). These panels should allow all to be opened simultaneously while leaving a 15px portion along the right edge for user interaction. Additionally, as the panels expand or retract, the width of the main content block should adjust accordingly. It would be a bonus if the panels could remember their positions through cookies even after a browser refresh.

The JQuery script needs to keep track of the open/close state of each panel and the positioning based on whether other panels are extended or retracted. For instance, the third panel may have four different position possibilities depending on the states of the first and second panels.

DETAILS:

(A.) The main window encompasses everything with overflow hidden and fluid height and width. (B.) A header bar within the window holds content and controls with a fixed height of 50px and 100% width. (C.) Below the header lies the main content area that scrolls vertically as needed. (D.) Along the left side, there's a requirement for three independently sliding panels between the header bar and bottom of the window. Each panel is 200px wide and 100% vertical, showing 15px of the right side when retracted, encompassing a vertical handle for user interaction. (E.) The width of the main content space should adjust automatically as panels open or close.

Below are links to three reference screenshots for clearer visualization. Any help would be greatly appreciated - Thank You in advance.

Answer №1

In my opinion, you should definitely try working on it yourself, but just to be nice, I've set up the sliding panels and a quick pop-up from the upper-right corner to get you started. It's not finished yet, but it will give you a good launching point. If you have more specific questions as you progress, feel free to reach out again. Check out the code here: http://jsfiddle.net/TqNRg/1/. Make sure to adjust the overflow:scroll in your CSS for proper scrolling and play around with jQuery to show/hide the pop-ups in the top right corner.

Edit: I've made some updates to the fiddle...forgot to save earlier changes. This version is getting closer to completion.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

When using IE10/IE11 in compatibility mode 8, there is an issue with the jquery.fileupload.js (v9.5.2) where uploading a

We are facing a challenge where we need to use IE10/IE11 in compatibility mode IE 8 to support older online sites that utilize iframes and newer html5 applications built with technologies like jquery and angular. Specifically, we are encountering an issue ...

Unable to trigger click events for marker connected to the end of the line

I need help with the following code. It includes a line with a marker attached to the end. I have written click events for both the line and the marker. However, the click event does not work when I click on the marker element, and the cursor properties ar ...

How to retrieve a form submission from Jquery HandsonTable in PHP using $_POST

Recently, I've started diving into the world of javascript/jquery/ajax. My current project involves fetching data from a jQuery handsonTable () and integrating it with my PHP code. The process includes generating a table from a MySQL database, utili ...

JQuery Slideshow Automation

I have created a slideshow using Javascript and JQuery for my webpage. However, I am encountering an issue where only one of the slideshows cycles through all the pictures and then starts over, while the second one ends after cycling once. Can someone as ...

Material-UI: Eliminate the missingOppositeContent:before element from TimelineItem

I'm currently using Material-UI to construct a timeline. Here is the code snippet I am working with: <Timeline align="right" className={classes.monthlyContainer}> <TimelineItem > <TimelineSeparator className={class ...

How can you animate the background of a website using AngularJS - CSS or JavaScript?

My aim is to create a dynamic animation for the background image when the view changes. The current background image is set through a function defined within MainController: // app/js/controllers.js $scope.getBg = function() { return $route.current.sco ...

Preserve selected option in select box after page refresh in JSP

I'm working on a jsp page that contains a simple select html element. Right now, when I select an option and click the Wyswietl button, the page refreshes, the table data is refreshed, but the selected option resets to default... How can I make it sta ...

Silence from PHP script after executing jQuery post() method

I've run into an issue while trying to retrieve data from a PHP file that reads a mySQL database. The data is delivered successfully when accessed through a browser: However, when attempting to access the data using jQuery's get() or post() meth ...

Elements of <nav> within a <footer> section

I've recently started using HTML5 display elements like header, footer, and nav. While reading about the nav element in particular, I found this interesting information in the HTML5 spec: The nav element is primarily intended for major navigation b ...

What is the best way to align this alert in the center of the screen

Hey there, I'm facing an issue with aligning an alert horizontally when a user clicks a button. I've been trying different methods but can't seem to get it right. The goal is to keep the alert within #main. You can check out this fiddle for ...

Concealing specific outcome by implementing jQuery and AJAX with a database

I have an HTML list that appears as follows: <ul> <li>something</li> <li>something1</li> <li>something2</li> <ul> <div class="randomwrapper"> <img src="<?php echo $databaseresult[$i];?& ...

Using jQuery to extract all image sources from a parent element and remove a portion of the source URLs

I need to extract all the img src attributes from a parent element using a pointer in order to remove part of them. When I have an image selected, the src ends with _selected.jpg. Then, when I click on a link containing another image, I want to remove the ...

Issues arising from jQuery dialog functionality when trying to link specific IDs

Having little to no experience with JavaScript, I came across a code snippet on jQuery's website that I am using. Here is the code: $(function(){ $("a").on('click', function(e){ e.preventDefault(); $('<div/>&ap ...

Chart showing a Google Timeline: Allow for each bar to be colored differently when there are multiple bars on the same line

It appears that the Google Timeline charts have a feature to color individual blocks on the timeline as indicated in the documentation at However, there seems to be an issue when two bars overlap on the same line, which is evident in this fiddle: http://j ...

Using Javascript, access the 'second child' element by referencing the 'first child' element within a shared 'parent element'

// Retrieve the child_2 element using core javascript let parent = document.querySelector('.child_1').closest('.parent'); let child_2 = parent.querySelector('.child_2'); How can I achieve the same functionality as the jQuery ...

The variable $_FILES is non-existent, while the variable $_POST is simply an empty

I'm experimenting with ajax file upload. The script worked fine in a previous project, but now it's not functioning properly. When I use var_dump($_FILES["uploadFiles"]); on the server side, I get 'Null', and var_dump($_POST["uploadFile ...

How to Implement Horizontal Sorting with jQuery Using Various HTML Elements

Here is the current setup I have: http://www.bootply.com/sfLr2AJ7EU The issue I am facing is with moving the image (id) boxes horizontally. While I have managed to make it work vertically, attempting to do so horizontally has been unsuccessful. The image ...

When trying to use bootbox.confirm within a dynamically loaded AJAX div, the modal unexpectedly opens and

I have implemented bootbox into my project, which was downloaded from . user_update.php is being loaded in a div within users.php using ajax functionality. Within user_update.php, there is a JavaScript function called validateForm(). Right after the functi ...

Mobile FPS suffering due to slide-out drawer performance issues

My application features a drawer menu that functions smoothly on desktop, but experiences issues on mobile devices with noticeable lag. Within the header, I have implemented a boolean value that toggles between true and false upon clicking the hamburger i ...

The POST request did not yield an HttpResponse object; instead, it returned None

When I submit a selection from a dropdown form to views as a POST request, and then use this selection to query data from Django, I encounter an issue while trying to map Django models data to Highcharts following this approach. The error message "the view ...