Solved

VB6 Frames and Webclasses

Posted on 1998-11-12
9
307 Views
Last Modified: 2010-04-30
Has anyone successfully used frames with VB6 Webclasses.  I am looking for an example.  The top template will include information loaded into combo boxes from which the user selects query criteria and the hits lookup.  The bottom template would return tabular results.  I do not wish to resend the top template since loading the combo boxes every time query results are returned requires transferring data which does not have to be updated between queries.
0
Comment
Question by:sarahc
  • 7
9 Comments
 

Expert Comment

by:TimeHawk
ID: 1444616
From the MSDN library disk (Search for Webclass):

HTML has a feature that allows you to divide the display area in a browser into two or more sections. These sections are called frames. Each frame can display content from a different Web page. For example, suppose you are working with a catalog application. You might use frames to display a list of all items in the catalog in one frame and detail for the selected item in a second frame.

Frames are created from an HTML page that contains tags known as FRAMESET tags. The FRAMESET tags indicate how many frames the page should contain, their size and position, and the HTML pages that should be displayed in each frame. The browser accesses the page containing the frameset information, processes the tags, and shows the resulting information to the user.

If you want to use frames with a webclass application, the simplest way to do it is to use an HTML template file to contain modified frameset information, add it to your webclass, then link webitems or events to each frame. The following HTML code shows how you might create a template file with frameset information.

<FRAMESET frameBorder=0 cols=30%,70% TARGET=Right MARGINHEIGHT=0>
   <FRAME id=Left>
   <FRAME id=Right>
</FRAMESET>

Normally, you would need to include information telling the browser what content to display in each frame. However, in a webclass application, you do not need to do this because you can link webitems or custom events to each frame and use the processing defined for those items to tell the webclass what to do. The following figure shows how the .htm file shown above would display in the page designer prior to connecting any events:

For the frames above, you might link a custom event called ShowList to the first frame, and a custom event called ShowDetail to the left frame. You would define processing for ShowList that writes a list of the items in your catalog to the leftmost frame. You would define processing for ShowDetail that displays detail information for the first item in the list. When the browser opens the frameset template file, it parses these two events and displays the results. The user can then work with the data in the list and detail frames.

For More Information   See "Frameset" in the Internet Client SDK for more information on the frameset tags.

0
 

Author Comment

by:sarahc
ID: 1444617
I am clear on the information provided above, however the documentation on frames and webclasses for VB6 is less than 2 pages in length and notes how to reference each frame.  

I am looking for a sample HTML template used with VB6 Webclasses where the setup of tags etc. has been used successfully -- I can't find one.  There are questions from others in the MSN Newsgroups who are trying to use frames as well -- some may have gotten this working but it is not clear that this is the case.

Anyone willing to share a very simple VB6 Webclass ap where a frameset has been used would be doing many of us a great favor.

Thanks...
0
 

Author Comment

by:sarahc
ID: 1444618
Edited text of question
0
 

Author Comment

by:sarahc
ID: 1444619
Adjusted points to 255
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:sarahc
ID: 1444620
Adjusted points to 290
0
 

Author Comment

by:sarahc
ID: 1444621
Adjusted points to 300
0
 

Author Comment

by:sarahc
ID: 1444622
Adjusted points to 310
0
 

Author Comment

by:sarahc
ID: 1444623
Adjusted points to 325
0
 

Accepted Solution

by:
Ludolf earned 320 total points
ID: 1444624
Give me your email and I'll send you one
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now