Andrew Poulos wrote:
> 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 :-(
Only comes with experience. My assumption was that if I see a start tag
where the first part has a colon in it, that is referring to XML namespaces:
<
http://www.w3.org/TR/REC-xml-names/>
>>> and document.getElementsByTagName("HTA:APPLICATION")
>>>
>>> but both return 0 elements.
>>
>> Tough luck.
>>
>> document.getElementsByTagName("APPLICATION") should work as it also works
>> in MSXML.
Correction: "HTA:APPLICATION" might have worked as well. Because MSXML does
not appear to be *fully* namespace-aware. I found that out when writing
JSX:xpath.js and I had to trim the namespace prefix for the XPath expression
with *user-defined* prefixes to work in Internet Explorer:
<
http://PointedEars.de/websvn/filedetails.php?repname=JSX&path=/trunk/xpath.js>
(No line numbers yet; look for `else if (isMethod(contextNode,
"selectNodes"))'.)
>>> 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.
ACK.
I googled "HTA", which after a few not so useful links to "*H*ochschule
Luzern - *T*echnik & *A*rchitektur" lead me to the German Wikipedia article
[1], in which was a link to the MSDN Library as the first one in the section
"Weblinks" [2]. Then as I saw that despite the German-language interface
the referred content was in English, so I tried "en-us" instead of "de-de".
This worked. Then I clicked on "border", and there it is.
HTH
PointedEars
______
[1] <
http://de.wikipedia.org/wiki/HTML-Applikation>
[2] <
http://msdn.microsoft.com/de-de/library/ms536471(en-us,VS.85).aspx>
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <
http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)