When using MS IE 8, but not when using Firefox Opera Safari Chrome, having loaded a Web page into an iframe, if that Web page contains the form <a href="news:/message-ID/">xxx</a>, then, on accessing the corresponding element of the links array, trying for Link.protocol gives an "Invalid argument" error. Link.protocol for a preceding <a href="news:it.comp.lang.javascript">xxx</a> is accessible, as it is fot all other <a href...> that I've tried.
Just thought that Microsoft users might like to know.
-- (c) John Stockton, nr London UK. ?...@merlyn.demon.co.uk Turnpike v6.05 MIME. Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. In MS OE, choose Tools, Options, Send; select Plain Text for News and E-mail. Don't quote more than is needed, and respond after each quoted part.
On Oct 31, 12:22 pm, Dr J R Stockton <reply0...@merlyn.demon.co.uk> wrote:
> When using MS IE 8, but not when using Firefox Opera Safari Chrome, > having loaded a Web page into an iframe, if that Web page contains the > form <a href="news:/message-ID/">xxx</a>, then, on accessing the > corresponding element of the links array, trying for Link.protocol gives > an "Invalid argument" error.
Only in an iframe? ISTM we went over this before with news links in IE7. Trying for link.href gave the same result. IIRC, the link element is an "unknown" type (typeof Link == 'unknown') for some news links. This is not an error in JScript, but an odd (and perfectly allowable) quirk of an IE host object. If you fail to avoid this exception (by whatever means), the error is definitely in your program.
> Link.protocol for a preceding <a > href="news:it.comp.lang.javascript">xxx</a> is accessible, as it is fot > all other <a href...> that I've tried.
> Just thought that Microsoft users might like to know.
There aren't as many of those (meaning people who program IE-only Javascript) as there are JS programmers who must support IE among the rest of the browsers. Why hide this here?
In microsoft.public.scripting.jscript message <ab2096af-99a7-49df- a9c1-23565d485...@b18g2000vbl.googlegroups.com>, Sun, 1 Nov 2009 19:08:37, David Mark <dmark.cins...@gmail.com> posted:
>On Oct 31, 12:22 pm, Dr J R Stockton <reply0...@merlyn.demon.co.uk> >wrote: >> When using MS IE 8, but not when using Firefox Opera Safari Chrome, >> having loaded a Web page into an iframe, if that Web page contains the >> form <a href="news:/message-ID/">xxx</a>, then, on accessing the >> corresponding element of the links array, trying for Link.protocol gives >> an "Invalid argument" error.
>Only in an iframe?
I wrote "into an iframe", meaning "into an iframe". If I had meant "only into an iframe", I would have written "only into an iframe" or something else of similar meaning.
>There aren't as many of those (meaning people who program IE-only >Javascript) as there are JS programmers who must support IE among the >rest of the browsers. Why hide this here?
Elsewhere one meets predominantly those who do not expect MS IE to behave correctly. Here one meets those who use only MS software and MS newsgroups, and has a somewhat greater chance of getting MS aware of the matter.
On that basis I'll add that, in JScript 5.8.22886 and previously, for S a string of over 20 digits, parseFloat(), Number(), and unary + are all correct with S but WRONG BY A FACTOR OF TEN on S+".0". Or so it seems to me.
-- (c) John Stockton, Surrey, UK. ?...@merlyn.demon.co.uk Turnpike v6.05 MIME. Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036) Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Read up access to links - upper case / lowercase - "Link.protocol " != javascript, for sake of continuity - as for forms, forms do not have such elements, the element must be "innerHTML" of a form element; Think of <img/> not a form element per se.
> In microsoft.public.scripting.jscript message <ab2096af-99a7-49df- > a9c1-23565d485...@b18g2000vbl.googlegroups.com>, Sun, 1 Nov 2009 > 19:08:37, David Mark <dmark.cins...@gmail.com> posted: >>On Oct 31, 12:22 pm, Dr J R Stockton <reply0...@merlyn.demon.co.uk> >>wrote: >>> When using MS IE 8, but not when using Firefox Opera Safari Chrome, >>> having loaded a Web page into an iframe, if that Web page contains the >>> form <a href="news:/message-ID/">xxx</a>, then, on accessing the >>> corresponding element of the links array, trying for Link.protocol gives >>> an "Invalid argument" error.
>>Only in an iframe?
> I wrote "into an iframe", meaning "into an iframe". If I had meant > "only into an iframe", I would have written "only into an iframe" or > something else of similar meaning.
>>There aren't as many of those (meaning people who program IE-only >>Javascript) as there are JS programmers who must support IE among the >>rest of the browsers. Why hide this here?
> Elsewhere one meets predominantly those who do not expect MS IE to > behave correctly. Here one meets those who use only MS software and MS > newsgroups, and has a somewhat greater chance of getting MS aware of the > matter.
> On that basis I'll add that, in JScript 5.8.22886 and previously, > for S a string of over 20 digits, parseFloat(), Number(), and unary + > are all correct with S but WRONG BY A FACTOR OF TEN on S+".0". Or so it > seems to me.
> -- > (c) John Stockton, Surrey, UK. ?...@merlyn.demon.co.uk Turnpike v6.05 > MIME. > Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & > links. > Proper <= 4-line sig. separator as above, a line exactly "-- " > (SonOfRFC1036) > Do not Mail News to me. Before a reply, quote with ">" or "> " > (SonOfRFC1036)
> In microsoft.public.scripting.jscript message <ab2096af-99a7-49df- > a9c1-23565d485...@b18g2000vbl.googlegroups.com>, Sun, 1 Nov 2009 > 19:08:37, David Mark <dmark.cins...@gmail.com> posted: >>On Oct 31, 12:22 pm, Dr J R Stockton <reply0...@merlyn.demon.co.uk> >>wrote: >>> When using MS IE 8, but not when using Firefox Opera Safari Chrome, >>> having loaded a Web page into an iframe, if that Web page contains the >>> form <a href="news:/message-ID/">xxx</a>, then, on accessing the >>> corresponding element of the links array, trying for Link.protocol gives >>> an "Invalid argument" error.
>>Only in an iframe?
> I wrote "into an iframe", meaning "into an iframe". If I had meant > "only into an iframe", I would have written "only into an iframe" or > something else of similar meaning.
>>There aren't as many of those (meaning people who program IE-only >>Javascript) as there are JS programmers who must support IE among the >>rest of the browsers. Why hide this here?
> Elsewhere one meets predominantly those who do not expect MS IE to > behave correctly. Here one meets those who use only MS software and MS > newsgroups, and has a somewhat greater chance of getting MS aware of the > matter.
> On that basis I'll add that, in JScript 5.8.22886 and previously, > for S a string of over 20 digits, parseFloat(), Number(), and unary + > are all correct with S but WRONG BY A FACTOR OF TEN on S+".0". Or so it > seems to me.
> -- > (c) John Stockton, Surrey, UK. ?...@merlyn.demon.co.uk Turnpike v6.05 > MIME. > Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & > links. > Proper <= 4-line sig. separator as above, a line exactly "-- " > (SonOfRFC1036) > Do not Mail News to me. Before a reply, quote with ">" or "> " > (SonOfRFC1036)