Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WestWind/database filter help
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01516279
Message ID:
01519346
Views:
78
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform