Results 1 to 4 of 4

Thread: Working with frames within an HTA

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Posts
    30

    Exclamation Working with frames within an HTA

    I'm trying to create an HTA application, and so far things are going well. However, I would like to add two images to the top of the HTA window, and within a frame.

    However, from what I know about frames (which is very little working knowledge), you have to provide a SRC link to an HTML page. Is there any other way of displaying content within a frame without a SRC?

    Thanks,

    Chris

    {EDIT}

    Just in case, here is the code I'm using:

    Code:
    <html>
      <body>
    	<frameset rows="25%,75%" BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>
    		<frame name="_header" scrolling=0>
    			<img align=left src="http://www.axcentsolutions.com/images/axcent.jpg">
    			<img align=right src="http://www.axcentsolutions.com/images/questionmark.jpg">
    		</frame>
    		<frame name="_body">
    			<form name="DomainAssessment">
    				<B>Please enter in the following:</B><BR>
    				<BR>	
    				<B>Company name:</B><input id=companynamefield class=text type=text name="companyname_field" tabindex=1><BR>
    				<B>Report path:</B><input id=HTMLReportLocation size=50 type=text name=HTMLReportLocation tabindex=2><font color=ff0000></font><BR>
    				<B>Please select a domain or multiple domains from the list:</B><BR>
    				<div id="ListOfDomains">
    				</div>
    			
    		
    				<HR>
    				<input id=runbutton  class="button" type="button" value="Run"  name="run_button"  onClick="RunScript()" tabindex=4>
    				<input id=quitbutton class="button" type="button" value="Quit" name="quit_button" onclick="QuitScript()" tabindex=5>
    				<BR>
    				<input id=Debuggingcheckbox class="checkbox" type="checkbox" name="debug_checkbox" tabindex=6>Debug output?<BR>
    				<font size="1">If selected, report will be saved to C:\DEBUG.TXT</font>
    			</form>
    			<div align=Left><font color=#000080 size=1>©2003 Chris Lynch</font><BR>
    			<div align=Left><font color=#000080 size=1>©2003 Axcent Solutions, Inc.</font><BR>
    			<font size=4>ALPHA RELEASE</font>
        	</frame>
        </frameset>
      </body>
    </html>
    {/EDIT}
    Last edited by Shadow07; Sep 19th, 2003 at 12:20 PM.
    Chris Lynch

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    What is HTA?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2003
    Posts
    30
    HTML Application

    MSDN Link

    It's a way to provide an interface for an application utilizing the IE browser. It provides HTML content (basically anything that you can do within IE, you can provide within an HTA).
    Chris Lynch

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Right...


    Well, there's no alternative way to display content in a frame than providing a src attribute. <frame> is an empty element which means that it does not have an end element and must not contain content. It also means that in XHTML you write <frame ... />.

    You can try alternative ways to make something scroll and the rest not.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width