icon
Motivation

it was all inspired by Netvibes - the personalized web portal.

Netvibes enables individuals to assemble their favorite widgets on the web all in one place, while I'd like to bring that convenience to web developers to handle content integration tasks in a rapid and convenient manner.

icon
Module:m201

This module is named m201, that is, the 1st module for the 2nd Tab (ID = t2).

The content is in m201.html

icon
Module:m204

Of course more modules can be introduced in one column.

The content is in m204.html

icon
Module Definition (m301)

Firstly, define all the necessary information for a given module ID in _modules variable, e.g.,

...
m301:{l:"m301.html", t:"Module Definition"},
m302:{l:"m302.html", t:"Layout Definition"},
m303:{l:"m303.html", t:"Column Width Definition", c:"green"},
...
Wherein:
  • m301 - the module ID
  • l - short for link, defines the url of this module
  • t - short for title, defines the title of the module when loaded
  • c - short for color, defines the color theme of the module, now "red", "orange", "green", "yellow", "white" are supported with blue as default.
icon
Side Menu (m400)

This is a specific side menu, which shall load modules into column2

NavUL Text Menu
NavICON Iconized Menu
icon
Some Goodies (m500)
NavUL Text Menu
icon
RSSLi Menu (m700)
RSSLi Text Menu
icon
CNN.com US
icon
Resources & Credit

Download

Please get latest version from Google Code here at


Pros & Cons

- Easy & rapid integration of content, with minimum JavaScript knowledge required.
- Poor SEO support by design, most content invisible to Search Engines Static Modules are supported now, just insert code into one of the containters (c1, c2 or c3) and give it an id in such format - {module_id#tab_id}, where the module id must be defined in "modules.js".


Verdict

  • This framework may best suit Dynamic Web Applications, aka, feed content to user only after login (invisible to SE by default).
  • The target is to bring up a Useful and Usable framework, through proper integration of existing tech components, thus
  • Some Debuging and Finetuning work are still needed in JavaScript and CSS details to better support more browsers.

Thus, comments and critics are more than welcome to make this framework more useful to more developers.


System Requirements

  • jQuery - Tested with version 1.3.1
  • Browser - Tested with IE8 (beta), IE7, Firefox 3.0.6, Google Chrome 1.0.154.48, Safari 3.2.2 under Windows XP SP3 for now.

Credits

- the personalized web portal - the Inspiration.
- the write less, do more JS library - the Enablement.


Further requests

Feel free to drop me a mail at liwei@trilancer.com

icon
License

This framework is available for use in all personal or commercial projects under both MIT and GPL licenses. Pick one that best suits your need.

MIT
Copyright (c) 2009 Wayne Lee, http://www.trilancer.com/

Permission is hereby granted, free of charge, to any person obtaining 
a copy of this software and associated documentation files (the 
"Software"), to deal in the Software without restriction, including 
without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to 
the following conditions: 

The above copyright notice and this permission notice shall be 
included in all copies or substantial portions of the Software. 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
GPL
        GNU GENERAL PUBLIC LICENSE
           Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

          Preamble

  The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users.  This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.)  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

  To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have.  You must make sure that they, too, receive or can get the
source code.  And you must show them these terms so they know their
rights.

  We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

  Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software.  If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

  Finally, any free program is threatened constantly by software
patents.  We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary.  To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

  The precise terms and conditions for copying, distribution and
modification follow.

        GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

    a) You must cause the modified files to carry prominent notices
    stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in
    whole or in part contains or is derived from the Program or any
    part thereof, to be licensed as a whole at no charge to all third
    parties under the terms of this License.

    c) If the modified program normally reads commands interactively
    when run, you must cause it, when started running for such
    interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a
    notice that there is no warranty (or else, saying that you provide
    a warranty) and that users may redistribute the program under
    these conditions, and telling the user how to view a copy of this
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

  3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable
    source code, which must be distributed under the terms of Sections
    1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three
    years, to give any third party, for a charge no more than your
    cost of physically performing source distribution, a complete
    machine-readable copy of the corresponding source code, to be
    distributed under the terms of Sections 1 and 2 above on a medium
    customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer
    to distribute corresponding source code.  (This alternative is
    allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such
    an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

  5. You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

  7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

  10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

          NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
icon
Tabs Control (m401)

Simple Tab Example:

  • Lorem ipsum
  • Aliquam tincidunt
  • Vestibulum auctor
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.
Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.
Morbi interdum mollis sapien. Sed ac risus. Phasellus lacinia, magna a ullamcorper laoreet, lectus arcu pulvinar risus, vitae facilisis libero dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, adipiscing in, lacinia vel, tellus. Suspendisse ac urna. Etiam pellentesque mauris ut lectus. Nunc tellus ante, mattis eget, gravida vitae, ultricies ac, leo. Integer leo pede, ornare a, lacinia eu, vulputate vel, nisl.


Ajax Tab Example with lazy loading:

  • Module 201
  • Module 202
  • Module 203
  • Module 204
icon
Accordion Control (m402)

Basic Accordion Example:

Definition list
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.
Lorem ipsum dolor sit amet
Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.
Sed egestas, ante et
Morbi interdum mollis sapien. Sed ac risus. Phasellus lacinia, magna a ullamcorper laoreet, lectus arcu pulvinar risus, vitae facilisis libero dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, adipiscing in, lacinia vel, tellus. Suspendisse ac urna. Etiam pellentesque mauris ut lectus. Nunc tellus ante, mattis eget, gravida vitae, ultricies ac, leo. Integer leo pede, ornare a, lacinia eu, vulputate vel, nisl.


Multiple Open Accordion Example, each part can be open/closed individually:

Definition list
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.
Lorem ipsum dolor sit amet
Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.
Sed egestas, ante et
Morbi interdum mollis sapien. Sed ac risus. Phasellus lacinia, magna a ullamcorper laoreet, lectus arcu pulvinar risus, vitae facilisis libero dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, adipiscing in, lacinia vel, tellus. Suspendisse ac urna. Etiam pellentesque mauris ut lectus. Nunc tellus ante, mattis eget, gravida vitae, ultricies ac, leo. Integer leo pede, ornare a, lacinia eu, vulputate vel, nisl.
icon
Philisophy

Please share some of my design philosophy:

  • Less is more - instead of building a full-blown framework with tons of features, only minimum necessary ones are provided for easier jump start.
  • Separation of Content, Appearance and Behavior - No action and styling code is used in HTML. By following simple conventions, a plain HTML section can be automatically turned into a vivid control, e.g., Tabs, Accordion ...
  • Convention over configuration - By following simple naming conventions, new content can be loaded without complex and error-prone configuration or settings.
  • It is easier to make simple things better than making better things simple - Yes, lots "traditional" portal features are omitted - purposely. But enhancements as well as customization can be applied at ease.

The target of this framework is to provide a handy tool for easy content integration. Yet I believe it is powerful enough to serve as cornerstone for more advanced portals.

icon
Module:m202

The content shall be written in plain HTML, WITHOUT the html, header and body tags.

The content is in m202.html

icon
Module:m206

And a module can be put in any column and tab.

The content is in m206.html

icon
Layout Definition (m302)

Secondly, define where to put all the modules in _layout variable, e.g.,

...
{i:'m301', c:'c1', t:'t3'},
{i:'m302', c:'c2', t:'t3'},
{i:'m303', c:'c3', t:'t3'},
...
Wherein:
  • i - short for id, the module ID
  • c - short for column, defines which column this module goes to, c1, c2 or c3
  • t - short for tab, defines the tab the module shall appear
icon
Local Link (m501)

A Local Link is one that changes the content of its parent module only

< a href="m502.html" class="local" >m502< /a >
< a href="m503.html" class="local" >m503< /a >

Go to module Ajax Forms
Go to module Tab Link

Just add a class="local" attribute and it will work. Web pages normally don't need this feature, but when loaded as a module in this framework, links without the "local" mark will affect the entire page by default.

icon
Ajax Forms (m502)

Go to Local Link Module

Forms in the framework without specially treatment will affect on the entire when submitted. A form with a class="ajaxform1" will be automatically turned into an AJAX form when loaded. And when submitted, the result will replace current module.


AJAX Form 1 Example:

Type your first name:
Type your last name:


Another AJAX Form (class="ajaxform2"), when submitted, the returned results will replace a DIV.result section embedded in the form.

Type your first name:
Type your last name:
Return result goes here!
icon
Tab Link (m503)

Go to Local Link Module

A Tab Link is one that simply switch to another tab. Just add a class="tab" attribute to a link and its ID equivalent to your target tab.

Now go to Tab 3.

icon
Thickbox (m504)

Thickbox 3.1 is integrated with a little modification to enable TB links in a module when being loaded.

Now plese bring up: m201 m202 m203 m204

icon
RSS Reader (m701)

Dynamic RSS Reader

Include the RSS links you want in a "rssul" unordered list as you've seen on the left, e.g.,

< ul class="rssul">
	< li >< a href="http://news.google.com/news?ned=us&topic=h&output=rss">Google News< /a>< /li>
	< li >< a href="http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml">MSNBC< /a>< /li>
	...
< /ul>

Once clicked, an AJAX request to rss.php with parameter q={encoded URI of the rss link} will be sent to server side, then rss.php will load the resource and convert the content into readable HTML format.

A comprehensive PHP Ajax RSS Reader example can be found here at http://www.w3schools.com/php/php_ajax_rss_reader.asp


Static RSS Reader

Below is a static RSS Reader module, whose definition can be found in modules.js (m702)

icon
Alexa Widget Sample
icon
Buzz

Major Features:

  • Content Integration - Lots stuff gets aggregated fast and easy.
  • Sound User Experiences - Slick UI, responsive interaction ...
  • Basic Module Themes - Colors can be assigned to modules.

And core JS weighs only 5K minimized

Multiplex Developer Support:

  • Content Integrator - Basic HTML skills and a little knowledge about JSON shall be enough to accomplish basic content integration tasks fast.
  • Interface Dresser - Advanced CSS knowledge and skills shall be mandatory to customize and improve the look and feel of this framework, i.e., the modules and the overall layout
  • Framework Extender - knowledge and JavaScript skills are required to further extend and customize this framework to address your advanced requirements.

Walk through more features or go to Download now.

icon
Module:m203

DOCTYPE is omitted, but the markup should be consistent with that of index.html.

The content is in m203.html

icon
Module:m205

As you may see, the naming convention is arbitary, as long as it helps organizing content.

The content is in m205.html

icon
Column Width Definition (m303)

Lastly, define widths of the columns for the tab in _tabs variable, e.g.,

...
t1:{c1:"33.3%",c2:"33.3%",c3:"33.3%",helper:true},
t2:{c1:"200px",c2:"400px",c3:"200px"}
t3:{c1:"50%",c2:"50%",c3:"100%",helper:true},
t4:{c1:"200px",c2:"auto",c3:0}
...
Wherein:
  • t2, t3, t4 - tab ID
  • c1, c2, c3 - column widths definitions. Valid combination include:
    %, %, % - columns will float alongside each other. If the sum is greater than 100%, columns may appear on different rows
    px, px, px - fixed widths are set likewise. If the sum is greater than 100%, columns may appear on different rows
    px, "auto", 0 - c1 is given a fixed width, and c2 will fill the rest of the row, and c3 is usually hidden
    ...
    More features can be added by adjusting function HeaderTabClickdefined in myext.js.
  • helper - an optional value, when set to true, will load a helper page above the columns named after tab ID, aka, "t3.html" in this case
icon
Soduku
icon
Loading... Loading...