how to determine which tab from post im in.. need to perform actions based on tab

how to determine which tab from post im in.. need to perform actions based on tab

Im using flexigrid, and tabs (comes with jquery). I have it set, so each tab does a different url: post. Is there something i can use in the jscript to determine which tab Im currently on?
[code]
    else if (com=='Add')
        {
           <? if (!$_GET['tid']) {
           ?>alert('You cannot add a customer in "All Towers" View, please select a tower and try again.');
           <? } else { ?>
            alert('Add New Item Action');
           <? } ?>
        }  [/code]

Or is there another way i should be trying to achieve this. I plan on adding ajax edit/add/remove, but still very new to jquery..


each tab has code like this
$("#flex4").flexigrid
(
{
url: 'post2.php?tid=3',
dataType: 'json',
colModel : [

I want to make actions based on the tid if possible, but since the code isnt being called in the url i dont know how to achiev this. ive tried both _GET and _POST...
    • Topic Participants

    • kelso