Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

HTA attributes undefined in IE=Edge/10/EmulateIE10

$
0
0

Greetings, I'm developing an HTA application to track information at work and I've got a bit of a quandary.  I can't seem to get an HTA to work in IE=10 Standards.  I've scoured the internet and can't seem to find a resolution for this.

According to the compatibility seciont on the MSDN site you can just use an x-ua-compatible tag to set the document mode and it's true that I can, yet when I do, it kills off the hta tag's attributes and everything becomes undefined.

The reason I want IE=10 is it gives me all the formatting options I want 

When I run a JS script that pulls the values, this is what comes up under IE=10

applicationName  = undefined
border           = undefined
id               = Trackers
caption          = undefined
icon             = undefined
maximizeButton   = undefined
scroll           = undefined
selection        = undefined
showInTaskBar    = undefined
singleInstance   = undefined
sysMenu          = undefined
status           = undefined
version          = undefined
Document Mode    = IE10
User Agent       = 

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Tablet PC 2.0; InfoPath.3)

And here's what it comes up with under IE=7

applicationName  = trackers
border           = thin
id               = Trackers
caption          = yes
icon             = \\***/***/***.ico
maximizeButton   = no
scroll           = no
selection        = yes
showInTaskBar    = yes
singleInstance   = yes
sysMenu          = yes
status           = yes
version          = 1.0.0
Document Mode    = IE7
User Agent       = 
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Tablet PC 2.0; InfoPath.3)


Here's the code I'm working with.  It is nothing fancy and functions fine if I comment out the meta tag or set it to IE=7, but the second I put it back in, it stops functioning.

<!DOCTYPE html><html><head><meta http-equiv="X-UA-Compatible" content="IE=10" /><title>Surface Trackers</title><hta:application 
	applicationname="trackers"
	border="thin"
	icon="\\***/***/***.ico"
	caption="yes"
	id="Trackers"
	maximizeButton="no"
	scroll="no"
	selection="no"
	showintaskbar="yes"
	singleinstance="yes"
	status="yes"
	sysmenu="yes"
	version="1.0.0"
	/>

Viewing all articles
Browse latest Browse all 3527

Trending Articles