hta

Take a screenshot of a webpage with javascript?

Is it possible to to take a screenshot of a webpage with javascript and then submit that back to the server? I'm not so concerned with browser security issues etc as the implementation would be for HTA. But is it possible? ...

Can I Mix VBScript and JScript in a Single HTA?

Is it possible to use both JScript and VBScript in the same HTA? Can I call VBScript functions from JScript and vice-versa? Are there any "gotchas," like the JScript running first and the VBScript running second (classic ASP pages have this issue). ...

Can I embed an icon to a .hta file?

I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself. I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons? HTA files have an HTA:APPLICATION tag that allows you to specify an icon, but I want ...

How can I open a link in the default web browser from an HTA?

I'm working on an application that is implemented as an HTA. I have a series of links that I would like to have open in the system's default web browser. Using <a href="url" target="_blank"> opens the link in IE regardless of the default browser. Is there a way to use the default browser? Using JavaScript is an option. ...

drag & drop images from a HTA file

Hi everyone, From a html application (.hta file) you can drag any image and drop it into the desktop for example. Does anybody know how to disable this capability? I want the .hta files have the same behaviour than the .html files. Thanks in advance ...

Are there any known HTA file Security Issues?

Are there any known security issues related to running a web application via a .hta file. I am especially interested in the drag & drop issues related to .hta files and frames see: http://sqlblogcasts.com/blogs/jonsayce/archive/2008/01/10/drag-and-drop-problems-in-hta-frames.aspx ...

Draw graphs in VBscript

I have a HTML application, partially HTML, partially VBscript, disguised as a form. What it does is it opens a few local files, runs a DOS box containing GAWK and presents a text file as its result. I wish to expand upon it by letting it create a bitmap image with the results in a stacked bar graph, for instance as a .BMP file. But I'm s...

Is it possible to use reg free COM with HTA applications?

Since HTA applications are hosted within MSHTA.exe how does one provide a manifest? Plus I assume providing a MSHTA.exe.manifest could potentially break other HTA apps? ...

Design Advice for an HTA based Crud App...

Hi, I am developing a framework for various in-house CRUD apps. I've considered several MS technologies (WPF, Access, WinForms, ASP.NET) and have settled on ASP.NET MVC with HTA+Jquery for the client. My reason for doing so is that I need a way to write and deploy quick one-off GUI apps as well as maintaining more robust apps that are e...

Javascript - getting path of file dropped into HTA

I am building a little HTA for personal use, and would like to be able to drag and drop a file to the interface. Once the file is dropped, I would either automatically run it (assuming it fits some parameters I set, like file extension), or at least fill in the input box on the HTA interface. I've searched extensively, but can't find a ...

HTTP status code 0 - what does this mean in MS XMLHTTP?

I have an HTA (microsoft html application - just an offline html + javascript app) that is using the standard MS XMLHTTP COM object (Microsoft.XMLHTTP or Msxml2.XMLHTTP depending on version detected) via JavaScript to send some data back to the server. It is returning status code 0. This is apparently not a valid HTTP status code (they...

DAO vs ADO in HTA over wireless

I've written a small (8-10 laptops) point-of-sale system running over a wireless network, as an HTA that reads from/writes to an Access MDB located on a network share. I need to use ADO - GetString and the user roster are not available with DAO. I also need to use DAO - the MDB cannot be compacted with ADO. I know that: 1) If the databa...

IE8 causing FILE input entry to be blank via SendKeys

Application: HTA (therefore IE) This is an application that uses SendKeys to populate a FILE input field. Issue: File is never uploaded. Description: An offscreen form (invisible to user) uploads a file to the server. The file input is entered via SendKeys (javascript). Appears to be isolated to when IE8 is installed. Does anyo...

HTA's; use other browser to host?

If Microsoft's method for using IE as a local host for HTA's then, can I use any other browser instead? ...

Detecting if a file is already open in javascript/hta

I'm trying to fix a .hta that someone at my company created 3 or 4 years ago. Right now if you open a file that someone else already has open, you'll lose any work you've done on it and will have to manually do it over again. So I was thinking just checking to see if the file is already open and then either locking editing, or just mak...

How to embed external SWF from file:// protocol

Hello. I'm trying to embed an external .swf file from an HTA application that consists of HTML content, javascript and vbscript. I load the swf from javascript, using swfobject. The remote server allows 'localhost' as the originating server, and I could embed it on an HTML page on my webserver, running on http://localhost, but I need to...

don't send the cookies in iframe

dentro de un archivo HTA tengo un iframe y no esta enviando las cookies, hay alguna forma de que las envie correctamente. I've an iframe inside of a HTA file, when I call the inner page cookies aren't send to the server. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;...

Selenium RC drops error when it tries open the popup

Hi all When selenium tries to open popup window I'm getting JS error permission denied in file file:///C:/DOCUME~1//LOCALS~1/Temp/customProfileDir8708f7f69e14482ba857f4b2e74775c1/core/RemoteRunner.hta So this break script execution, could you assist? I saw a related topics at msdn and openqa but didn't find resolution that could help m...

Managing ajax Couchdb calls and IE's (hta) agressive cache.

Hello all, I'm having a quite annoying problem, and came up with a quite ugly hack to make it work. I develop an Hta application using a CouchDB database (for internal company use). The problem is there seems to be some very aggressive caching of the database queries, and it's been hard to come up with solutions. So the updated data i...

Can a browser emulate the security-related functionality of a .hta file?

Currently, we have an .hta file that employees use to update certain elements of their active directory profile. This alleviates system administrators from having to deal with that issue. The reasoning for a .hta file is obvious. It lifts a lot of the security blockades in place and allows a machine to do things (such as update an ac...