Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WestWind/database filter help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01516279
Message ID:
01519346
Vues:
79
>Reading the whitepages now.
>
>Couldn't I just take the table name and put it in the JS function so when that function is called, it displays the table?
>
>I mean if I have the code in the HTML to physically display the table, it seems only logical that if I place that within the JS function it will only get display when it runs.
>

Yes, you can do that. The only reason I might not would be if I wanted to implement a toggle (show/hide) on the table and I wasn't going to display the same table for each link. For example, you had a list of items (each one of them being a link) and you wanted a different table to be shown depending on which link was clicked.
(hopefully this sample works, I didn't test it)
  <a href="#" onclick="ToggleTable($("#IdOfTable"));return false;">Link here</a>

function ToggleTable(table) {
   if (table.css('display') == 'none')
      table.Show(500);
   else
      table.Hide(500);
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform