Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 To: John Prescott
  Where is John Prescott?
 Bromley
 United Kingdom
 John Prescott
 Tags
Subject: RE: Hiding a listbox on an HTML page
Thread ID: 365246 Message ID: 365283 # Views: 45 # Ratings: 3
Version: Visual FoxPro 9 Category: VFP and .NET
Date: Sunday, December 23, 2012 10:04:54 PM         
   


> My Webconnect Fox program fires a range of variables to an HTM page. If a particular variable is saying 'No', I need to hide a list box on the form of the HTM page.
> How do I go about doing that in the HTM page? I suspect it may require javascript of something else. Would anyone have some code for doing this?
>
>
> John Prescott
> Bromley, Kent. UK

John,

In addition to Tushar's advice, I have a couple more suggestions.   Two CSS properties to explore are "display" (as Tushar pointed out) and also "visibility".   Good source of documentation and examples is w3Schools.com

CSS display
CSS visibility

If you want something dynamic, then some simple Javascripts are out there:

Javascript/CSS hide/show

Finally, a few months back I posted an example showing how to communicate between VFP tables and HTML documents in the VFP browser.   Take a look at the Javascripts there for some more ideas.

Dan B.





ENTIRE THREAD

Hiding a listbox on an HTML page Posted by John Prescott @ 12/22/2012 7:13:59 PM
RE: Hiding a listbox on an HTML page Posted by tushar @ 12/22/2012 7:26:58 PM
RE: Hiding a listbox on an HTML page Posted by Dan Baker @ 12/23/2012 10:04:54 PM
RE: Hiding a listbox on an HTML page Posted by John Prescott @ 12/24/2012 8:37:44 AM