Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11530
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="ISO-8859-1" |
| Message-ID | <1371529.bfuUreu131@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Fri, 10 Feb 2012 03:02:04 +0100 |
| User-Agent | KNode/4.4.11 |
| Content-Transfer-Encoding | 7Bit |
| Subject | Re: Get attribute from HTA |
| Newsgroups | comp.lang.javascript |
| References | <-uOdnYr0A5Wf-anSnZ2dnUVZ_rSdnZ2d@westnet.com.au> |
| Followup-To | comp.lang.javascript |
| MIME-Version | 1.0 |
| Lines | 52 |
| NNTP-Posting-Date | 10 Feb 2012 03:02:05 CET |
| NNTP-Posting-Host | db944eef.newsspool2.arcor-online.net |
| X-Trace | DXC=;lK2GdYo\iKX36K@\WTHGJA9EHlD;3YcB4Fo<]lROoRA8kF<OcfhCOK4LhWYJTITMLDZm8W4\YJNLb@mF9jNikdEoj7e_2SK;JFn>nF^_CM4^I |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:11530 |
Followups directed to: comp.lang.javascript
Show key headers only | 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
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