Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post

    Question Willy Duitt - Openig Files

    Hello Willy Duitt

    You may recall a while ago you had a bit of a sour posting sesion with a certain someone. (nnjjll)

    It was about opening html files with different file extensions as a normal HTML page and navigate towards it as the borwser would if the file had a .htm or.html ending.

    Here's the thing. I dont know If you have read any fo my posts on my little astronomy project for my friend whom is a teacher.

    This little thing has become quite in depth and runs nicely as a little Client Side app.

    The school as offered to purchase this from me instead of just giving it to them.

    So I want to make it look a bit more professional. I dont want a different file extesion (but on may be there if needed) I just want it to be a blank 'file'. So it doesnt look so much like a website.

    I recall in the last few posts you said that you could do it in a few lines.

    So what I ask you, is please could you let me know how this is done?

    If you do not want to post it here or you want to question me a bit, please email me : seigaku_ace@hotmail.com.

    This is also my MSN messenger ID.

    Please. If you cant or dont want to, let me know.

    Thanks alot!
    -DR.Wong

    Wheres the food at?

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Posts
    114
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Maybe you should try PMing him instead of posting on a public forum, hoping he would see.

  • #3
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post
    Point taken, but if anyone else knows...
    -DR.Wong

    Wheres the food at?

  • #4
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post

    Lightbulb

    Problem 2;
    he does not accept PM's
    -DR.Wong

    Wheres the food at?

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts
    Try looking into HTAs.

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do not really understand what you are looking for...
    But, as Glenn suggested, I think you want an HTA...
    Below is an example... Save As with the file extension .hta...

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
      <TITLE>HTA Demo</TITLE>
      <HTA:APPLICATION ID="oHTA"
         APPLICATIONNAME="myApp"
    	 BORDER="thin"
    	 BORDERSTYLE="normal"
    	 CAPTION="no"
    	 ICON="graphics/face01.ico"
    	 MAXIMIZEBUTTON="yes"
    	 MINIMIZEBUTTON="yes"
    	 SHOWINTASKBAR="no"
    	 SINGLEINSTANCE="no"
    	 SYSMENU="yes"
    	 VERSION="1.0"
    	 WINDOWSTATE="maximize"
      >
    
      <SCRIPT>
    
      /* This function also gets the value of commandLine,
         which cannot be set as an attribute  */
       
      function fnShowProp()
      {
        sTempStr = "applicationName  = " + oHTA.applicationName + "\n" + 
                   "border           = " + oHTA.border          + "\n" +
                   "borderStyle      = " + oHTA.borderStyle     + "\n" + 
                   "caption          = " + oHTA.caption         + "\n" +
                   "commandLine      = " + oHTA.commandLine     + "\n" +
                   "icon             = " + oHTA.icon            + "\n" +
                   "maximizeButton   = " + oHTA.maximizeButton  + "\n" +
                   "minimizeButton   = " + oHTA.minimizeButton  + "\n" + 
                   "showInTaskBar    = " + oHTA.showInTaskBar   + "\n" +
                   "singleInstance   = " + oHTA.singleInstance  + "\n" +  
                   "sysMenu          = " + oHTA.sysMenu         + "\n" + 
                   "version          = " + oHTA.version         + "\n" + 
                   "windowState      = " + oHTA.windowState     + "\n" ;
    		  
        oPre.innerText = sTempStr;		  
      }
      </SCRIPT>
    </HEAD>
    <BODY>
    <P>The attribute values for this HTA are listed below.
    Click the button to get the corresponding property values.</P>
    <PRE CLASS="clsCode">&lt;HTA:APPLICATION ID="oHTA"
         APPLICATIONNAME="myApp"
    	 BORDER="thin"
    	 BORDERSTYLE="normal"
    	 CAPTION="no"
    	 ICON="graphics/face01.ico"
    	 MAXIMIZEBUTTON="yes"
    	 MINIMIZEBUTTON="yes"
    	 SHOWINTASKBAR="no"
    	 SINGLEINSTANCE="no"
    	 SYSMENU="yes"
    	 VERSION="1.0"
    	 WINDOWSTATE="maximize"
      &gt;
      </PRE>
      <BUTTON onclick="fnShowProp()">Retrieve HTA Property Values</BUTTON>
      <PRE ID="oPre">  
      </PRE>
      <HR>
      <BUTTON onclick="window.close()">Quit Application</BUTTON>
    </BODY>
    </HTML>
    .....Willy


  •  

    Posting Permissions

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