Simple onclick event?
2005/08/03 07:27
Viewed 13204 times
Replies: 1/1

Mihai, a wonderful component! Thank you.

A small problem. I've got a reports database that lists 10 rows of records per page (and allows a user to navigate between pages as necessary). I wish to use the Rollbar Tabs to organize individual report categories (10 report categories = 10 individual tabs).

Is there any way to assign a link to the tab onclick event? I know this defeats the functionality somewhat (as content on ALL tabs should be loaded on initial page load), but loading several pages of report lists (rowperpage * tabs) is a bit overwhelming.

I guess what I'm asking for is a way to reload the page with a specified URL on each tab click.

<div id="tabControl">
<div title="First Tab" onclick="location.href='index.php?tab=1'"></div>
<div title="Second Tab" onclick="location.href='index.php?tab=2'"></div>
</div>

Again, this bypasses the main functionality of your widget, but for simplicity's sake it would be a nice alternative to calling event handlers (if I understand that correctly).

Re: Simple onclick event?
2005/08/03 20:45
Viewed 16610 times
Replies: 0/0

After combing the documentation, I found a naughty workaround:

<div id="tabControl">
<div>
<label><a href="#" onclick="location.href='index.php?tab=1'" style="text-decoration: none; color: #000000;">Tab Title</a></label>
</div>
</div>

last
Google