Reputation: 107
I intend to create an HTML report from a perl script on Linux/Unix side. The report contains various statistics mainly in the tabular format. Since there are many such tables I want to split them into categories using Tabs. The report then will be sent to some email-ids, as an attachment.
The questions are:
Is there a good example of HTML + Javascript to create such tabs? I could not find a complete example
Libraries like jQuery fits the bill except that I need to give the .js file as well, which becomes a bit tedious. Is it possible to somehow embed jQuery (or any other library) in HTML?
Thanks in Advance!
Upvotes: 0
Views: 410
Reputation: 26076
Take a teaser approach to this one where its a hybrid of INLINE html + actual links to go to real content.
The real tabs can use jQuery UI as others have suggested.
Upvotes: 1
Reputation: 12184
I hope this answers your questions
Use jQuery UI which is an extension of jQuery library, Or you can use ExtJS and there are lots of UI library depending on how much you want.
Why does giving JS file become tedious ? use script tags to call the external JS files to use these libraries. Embedding JS in your HTML will clutter it and its a BAD practice.
Checkout
EDIT:
If you are planning to use JS in emails, forget it. A lot of email clients remove JS content. Instead
Upvotes: 1