www.webdeveloper.com
Results 1 to 3 of 3

Thread: HTA Application Communication

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    48

    Unhappy HTA Application Communication

    Hello all,

    I am trying to make a html application that opens up another one to ask for a password, once the user clicks ok i would like it to give either true or false back to the main hta that started it. I only have the part to open the new hta.

  2. #2
    Join Date
    Dec 2009
    Location
    Colorado
    Posts
    104
    I don't know if this is what you are looking for. This does pretty much what you described though.

    Code:
    <head>
    <title>Forms</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="styles/style.css" media="screen" title="style (screen)" />
    <script>
    function preview() {
       var myvar = "Name=" + document.getElementById("first_and_last_name").value;
       myvar += '<br />Birthday=' + document.getElementById("birthday").value;
       myvar += '<br /><p>Submit Information?</p>';
       //myvar += '<br /><input type="button" value="yes" id="yesbutton" onClick="window.opener.document.child_form.submit()" />';
       myvar += ' <input type="button" value=" yes " id="yesbutton" onClick="window.opener.document.getElementById(\'mybox\').value=\'Hello World!\';window.close()" />';
       //myvar += ' <input type="button" value=" Print " id="nobutton" onClick="window.print();window.close()" />';   
       myvar += ' <input type="button" value=" no " id="nobutton" onClick="window.close()" />';
       my_window= window.open ("","mywindow1","status=1,width=450,height=350");
       my_window.document.write(myvar); 
    }
    </script>
    </head>
    <body>
    <div id="wrap"> 
    	<form class="darker" name="child_form" id="child_form" method="post" action="_lib/phpmailer-fe.php" enctype="multipart/form-data">
            Name:<br />	
            <input name="First_and_last_name" id="first_and_last_name" type="text" value="First and Last Name" /><br /><br />
    		Birtdhay:<br />
            <input name="Birthday" id="birthday" type="text" value="Month and day of birthday" /><br /><br />
    		Message from popup:<br />
    		<input type="text" id="mybox" name="mybox" value="" /><br /><br />
    		<input type="button" onclick="preview()" value="Preview" />
        </form>
    </div>
    </body>

  3. #3
    Join Date
    Jul 2009
    Posts
    48
    I have tried that, It did work but it still opened up ie, i would like them both to be htas instead of just one

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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



Recent Articles