[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Discussion:THE BIRTH OF "LAYOUT BESIDE" - Call for Opinions

Asked by SnowFlake in Cascading Style Sheets (CSS), Extensible HTML (XHTML)

Tags: claim, layout, snowflake

This Q is meant for a discussion, please Join in even if many experts already commented,
and even if it has been already closed.

Branching from http://www.experts-exchange.com/Web/Web_Languages/CSS/Q_21693043.html
which you can read for background but don't really have to.

While trying to figure out how to use CSS to layout my site ( http://JSBugHunter.com)
and almost giving it all up and going back to tables:

I Just came up with the following idea:
I have not seen this implemented or mentioned anywhere and I (Eyal Peleg a.k.a. SnowFlake on EE) "claim" it as my own,
I will name this "Layout Beside" after .Net's Code Behind (unless a better suggestion comes out)

Thinking again on how any why this whole "USE CSS FOR LAYOUT" issue came to live
I think it is based on the need to separate the information concerning the layout from the actual content,
for the same reasons we separate code from the markup (like in .Net's Code Behind).


What I did was to do just that, place the layout Beside the content and not around it.

my markup looks like this:

<div id="logo">Logo</div>
<div id="welcome">welcome Text welcome Text welcome<br/>Text welcome Text welcome Text welcome Text welcome Text welcome Text welcome Text </div>
<div id="topmenu">TopMenu TopMenu TopMenu TopMenu TopMenu TopMenu</div>
<div id="sidemenu">sideMenu<br/>sideMenu<br/>sideMenu<br/>sideMenu<br/>sideMenu</div>
<div id="content">content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content </div>
<div id="footer">Footer Footer Footer Footer Footer Footer</div>

<table id="layout">
<tr><td id="_logo"></td><td id="_welcome" valign="top"></td></tr>
<tr><td id="_topmenu" colspan="2"></td></tr>
<tr><td id="_sidemenu"></td><td id="_content" valign="top"></td></tr>
<tr><td id="_footer" colspan="2"></td></tr>
</table>

and then I added a small amount of JavaScript to pull the content nodes from the DOM tree and re-insert them into the respective nodes in the layout.
I know this script needs to be modified for better browser compatibility But I hope this won't prove to cause any problems,
Even as it it works on both my IE6.0 and FF1.5 - but I will try make it more robust.

<script>
function GetObj(id){       return document.getElementById(id); }
function MoveInto(c,e){ c.appendChild(e.parentNode.removeChild(e)) }

var elids=['logo','welcome','topmenu','sidemenu','content','footer'];
for(var i=0;i<elids.length;i++){
      var el,cel;
      el=GetObj(elids[i]);
      cel=GetObj('_' + elids[i]);
      if (el && cel) {
            MoveInto(cel,el);
      }
}
</script>

IMHO this gives me mostly benefits.
1) good old table based layouts.
2) none of the bad old layout spaghetti (and I have nothing against spaghetti as long as its on my plate and not my code)
3) layout is visible - can anyone really look as some style sheet and say "Yep, I see this Its obviously a three column layout with a header and a footer" ? Looking at the "Layout Beside" it is SO easy to see.
4) The "layout beside" HTML can be inserted into the page on the server side, based on a parameter or be implemented as a user control or what ever other server side technology.
This means you have central management of you layouts, and can easily change a layout or choose a different layout for a specific page.

The only "major" disadvantage of this method is that it requires JavaScript,
I have two things to say about it:
1) I can leave with it.
2) This can be "standardized" by adding special tags for this in some future HTML versions.
    I would suggest use <container id="containerID" /> and <content UseContainer="containerID">blha</content>)
    This should cause the content to render as a child of the appropriate container.
    maybe even just settle for a Container attribute on any other HTML Tag (no need for the "content" tag).


I am going to try and implement this tomorrow on my http://JSBugHunter.Com and see how it goes.

I am very much interested in your opinions of the "layout Beside" Idea - be they for it or against it.

as always points to most interesting/helpful comments.

 
Related Solutions
Keywords: Discussion:THE BIRTH OF "LAYOUT …
 
Loading Advertisement...
 
[+][-]01/12/06 03:13 PM, ID: 15687153Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/12/06 11:38 PM, ID: 15689532Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 12:00 AM, ID: 15689621Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 12:09 AM, ID: 15689663Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 01:14 AM, ID: 15689898Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01/13/06 01:45 AM, ID: 15690026Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/13/06 01:55 AM, ID: 15690051Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 02:05 AM, ID: 15690093Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/13/06 02:23 AM, ID: 15690179Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 02:59 AM, ID: 15690327Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/13/06 03:40 AM, ID: 15690499Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 03:46 AM, ID: 15690525Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 03:58 AM, ID: 15690576Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/13/06 05:08 AM, ID: 15690957Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 06:21 AM, ID: 15691468Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/13/06 07:18 AM, ID: 15692004Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/13/06 08:05 AM, ID: 15692511Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/14/06 04:17 AM, ID: 15699735Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/14/06 09:13 AM, ID: 15700889Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/14/06 11:01 AM, ID: 15701342Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cascading Style Sheets (CSS), Extensible HTML (XHTML)
Tags: claim, layout, snowflake
Sign Up Now!
Solution Provided By: GrandSchtroumpf
Participating Experts: 3
Solution Grade: A
 
[+][-]01/14/06 02:49 PM, ID: 15702227Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/14/06 04:53 PM, ID: 15702781Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/12/06 11:08 PM, ID: 15939157Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/13/06 03:07 AM, ID: 15940046Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81