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


Groups > comp.lang.javascript > #11536

Re: Get attribute from HTA

Date 2012-02-10 18:51 +1100
From Andrew Poulos <ap_prog@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Get attribute from HTA
References <-uOdnYr0A5Wf-anSnZ2dnUVZ_rSdnZ2d@westnet.com.au> <1371529.bfuUreu131@PointedEars.de>
Message-ID <89ednbWlvLntUanSnZ2dnUVZ_gydnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


On 10/02/2012 1:02 PM, Thomas 'PointedEars' Lahn wrote:
> 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.

I wish I knew a couple of percent of what you know :-(

>> 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?

I was sharing what I thought was difficult-to-find info.

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

Far out, how do you find all these references. I googled and searched 
MSDN and couldn't find it.

Andrew Poulos

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