Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #11530

Re: Get attribute from HTA

Message-ID <1371529.bfuUreu131@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-02-10 03:02 +0100
Subject Re: Get attribute from HTA
Newsgroups comp.lang.javascript
References <-uOdnYr0A5Wf-anSnZ2dnUVZ_rSdnZ2d@westnet.com.au>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Andrew Poulos wrote:

> If I have this in the head of a HTA
> 
> <HTA:APPLICATION
>    id="test"
>    applicationname="Test"
>    icon="content/scripts/test.ico"
>    border="thick"
>    borderStyle="normal"
>    caption="yes"
>    contextMenu="no"
>    navigable="yes"
>    scroll="yes"
>    selection="no"
>    showInTaskbar="yes"
>    singleInstance="yes"
>    windowState="normal">
> 
> How do I get the value of 'scroll'?
> 
> I tried
> document.getElementsByTagName("HTA")

This cannot work.  `HTA' is the namespace prefix, not the element type name.  
Please get a minimum clue.

> and document.getElementsByTagName("HTA:APPLICATION")
> 
> but both return 0 elements.

Tough luck.

document.getElementsByTagName("APPLICATION") should work as it also works in 
MSXML.
 
> The answer appears to be, in my case,
> 
> document.getElementsByTagName("head")
[0].getElementsByTagName("APPLICATION")[0].scroll

Why oh why on Earth are you asking, then?

RTFM: <http://msdn.microsoft.com/en-us/library/ms536476(VS.85).aspx>


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Get attribute from HTA Andrew Poulos <ap_prog@hotmail.com> - 2012-02-10 11:25 +1100
  Re: Get attribute from HTA Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-10 03:02 +0100
    Re: Get attribute from HTA Andrew Poulos <ap_prog@hotmail.com> - 2012-02-10 18:51 +1100
      Re: Get attribute from HTA Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-10 10:40 +0100
  Re: Get attribute from HTA Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-11 23:33 +0000

csiph-web