Re: Hiding/showing HTML tags

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bonj (a_at_b.com)
Date: 02/20/05


Date: Sun, 20 Feb 2005 09:24:07 -0000

don't know how you're going to do this from VB, but the html for invisible
is
<div id="div1" style="display: none" ... > ... </div>

in javascript it's
<javascript>
document.getElementById('div1').style.display="none";
</javascript>

if your vb app controls the html sent to its web browser control, you could
dynamically insert the above attribute, possibly using a regular expression
to parse it

"Ivan Debono" <ivanmdeb@hotmail.com> wrote in message
news:%23%23QjFYxFFHA.4072@TK2MSFTNGP10.phx.gbl...
> Hi all,
>
> I use VB6 and the browser control to view htm pages within my app.
>
> My app has 3 modes: level1, level2 and level3. According to each mode I
> need to display a different page. Instead of having 3 different pages, I
> was thinking if it is possible to hide or show html tags according to the
> level that is passed to the page.
>
> Do I need to use DIV or SPAN or what??
>
> Are there any examples out there?
>
> Thanks,
> Ivan
>



Relevant Pages

  • Re: The Problems of TeX
    ... errors and makes very heavy use of javascript that I can only guess, ... So you're comparing what's there as HTML with what's there as PDF. ... most part demonstrate the point of offering the user control over the ... graphic sizes, ...
    (comp.text.tex)
  • Custom Control - Specific placement of HTML Textwriter output - Ho
    ... HTML from a StringBuilder in my control to add the needed JavaScript to the ... HTML output. ...
    (microsoft.public.dotnet.languages.csharp)
  • Accessing a HTML document in a resouce dll
    ... control which displays HTML pages. ... to access the document frames, I get an exception Access Denied. ... JavaScript when they are not in a resource dll. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Newbie Question on the Basics
    ... What is it in the HTML that calls the Javascript after every keypress? ... "onload" function then uses the DOM to locate nodes in the document ... when the script, not the HTML, is in control of its own ...
    (comp.lang.javascript)
  • Re: Hiding/showing HTML tags
    ... in javascript it's ... if your vb app controls the html sent to its web browser control, ... > I use VB6 and the browser control to view htm pages within my app. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)