GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
JQuery::Tabs(3) User Contributed Perl Documentation JQuery::Tabs(3)

JQuery::Tabs - Have tabs to see different pages

   my @tabs = ("tab 1","tab 2","tab 3","tab 4") ; 
   my @texts = ("line 1","line 2","line 3","line4") ; 

   my $tab = JQuery::Tabs->new(id => 'myTab',
                            tabs => \@tabs,
                            texts => \@texts,
                            addToJQuery => $jquery,
                           ) ;

   my $tab = JQuery::Tabs->new(id => 'myTab',
                               tabs => \@tabs,
                               remote => 'true', # no texts needed if remote
                               remoteProgram => '/cgi-bin/jquery_tabs_results.pl',
                               rm => 'myMode',
                               addToJQuery => $jquery,
                               spinner => 1,
                              ) ;
    my $html = $tab->HTML ;

Allow the user to see different pages using tabs. For an example of how it looks, see <http://www.stilbuero.de/jquery/tabs/>.

This module sets up tabs for different pages. The HTML can be supplied directly, or the page can be updated remotely. When used remotely, the program returns the run mode parameter, rm, as well as the parameter tab, which contains the text in the tab header.

In remote mode, taconite is not used to refresh the page. All that is expected is a normal html. If you are using CGI, something like this is expected:

   use CGI ;    
   my $q = new CGI ; 
   print $q->header(-type=>'text/html');
   print $env ;

new
Instantiate the object
HTML
Get the HTML for the object

id
This is the id of the tab
addToJQuery
The JQuery object to be added to.
tabs
This is a list of tab names for the headers
texts
This is a list of HTML texts needed for each tab. If the page is going to be updated remotely, this is not needed.
rm
The run mode that will be returned to the server.
spinner
When updated remotely, this add a little spinning wheel to the tab to show that it is being updated.
bookmarkable
Allow the back button in the browser to give the expected results.

Peter Gordon, "<peter at pg-consultants.com>"

Please report any bugs or feature requests to "bug-jquery-taconite at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=JQuery>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc JQuery

You can also look for information at:

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/JQuery>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/JQuery>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=JQuery>

  • Search CPAN

    <http://search.cpan.org/dist/JQuery>

Copyright 2007 Peter Gordon, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.