Create HTML page dynamically through VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Create HTML page dynamically through VB

  1. #1
    Sarah Guest

    Create HTML page dynamically through VB


    Hi all,
    I'm working on a project that has the following requirements.
    A VB application allows the user to select certain fields (name, address,
    pin etc.) through the use of checkboxes/multiple select list boxes. When
    the submit button is clicked, the checked items in the VB interface have
    to be displayed in the HTML page.
    For example if I have 'Name' as a checked item in the VB application, I need
    to display on the HTML page a label and a textbox for 'Name'.
    In short, the HTML page is created dynamically depending on what is selected
    in my VB form. Once the HTML page is displayed, VB does not need to control
    its working.
    What is the best and easiest way to do this in VB 6.0? I am not using .NET
    -Sarah

  2. #2
    Russell Jones Guest

    Re: Create HTML page dynamically through VB

    There are several ways to solve your problem. One way is to simply build the
    HTML string in memory in your VB app and then write the results to disk,
    pointing the browser at the new file to display the information.

    Another way is to control IE from your VB application and use IE's DOM to
    create the elements you need dynamically.

    Perhaps the best way is to create an XML document containing the data you
    want in your VB app. You would also create an XSLT stylesheet to transform
    the data into HTML. After users make their selections, you create the XML
    document, load the stylesheet, and write the results of the transformation
    to disk (or dynamically set IE's contents) to the resulting HTML.

    The advantage of the last way is that you isolate the HTML itself (the look,
    feel, and element positioning) from your VB application.

    "Sarah" <sarahmapg@hotmail.com> wrote in message
    news:3cc8ab21$1@10.1.10.29...
    >
    > Hi all,
    > I'm working on a project that has the following requirements.
    > A VB application allows the user to select certain fields (name, address,
    > pin etc.) through the use of checkboxes/multiple select list boxes. When
    > the submit button is clicked, the checked items in the VB interface have
    > to be displayed in the HTML page.
    > For example if I have 'Name' as a checked item in the VB application, I

    need
    > to display on the HTML page a label and a textbox for 'Name'.
    > In short, the HTML page is created dynamically depending on what is

    selected
    > in my VB form. Once the HTML page is displayed, VB does not need to

    control
    > its working.
    > What is the best and easiest way to do this in VB 6.0? I am not using .NET
    > -Sarah




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center