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:
01519634
Views:
54
Makes sense, but since I'm only dealing with displaying one table when a link is clicked I think putting it in the function would work. Not to mention it wont have to load both tables every time a record is searched for, only when the link is clicked.

My only problem is I don't know how to simply add the table name to the JS function...
function back(v) {document.getElementById("v").value=v;document.forms[1].submit()}
If that's the function, where does the table code go?

>>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);
>}
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform