Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error with JScript in MS IE 8

2 views
Skip to first unread message

Dr J R Stockton

unread,
Oct 31, 2009, 1:22:31 PM10/31/09
to
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.

David Mark

unread,
Nov 1, 2009, 10:08:37 PM11/1/09
to
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?

Dr J R Stockton

unread,
Nov 3, 2009, 12:26:16 PM11/3/09
to
In microsoft.public.scripting.jscript message <ab2096af-99a7-49df-
a9c1-235...@b18g2000vbl.googlegroups.com>, Sun, 1 Nov 2009
19:08:37, David Mark <dmark....@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)

jonny

unread,
Nov 15, 2009, 2:46:28 AM11/15/09
to
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.


"Dr J R Stockton" <repl...@merlyn.demon.co.uk> wrote in message
news:8i9v8xO4...@invalid.uk.co.demon.merlyn.invalid...

jonny

unread,
Nov 15, 2009, 3:03:54 AM11/15/09
to
<a href="news:/message-ID/">xxx</a>

As for your honerable concern about opening groups
from within the browser.

Google bought dejavu a long time ago.

If you would like to put code that shows for everyone,
how they can open / use newsgroups as part of a 'click'
as such, please show an example.


Show an example how to click in a browser and
get a read / write view of e.g. OE.


All other is British nonchalance.

-------------------

And remember, you are as much related to Turing,
as a see shell is to Old Bailey.


"Dr J R Stockton" <repl...@merlyn.demon.co.uk> wrote in message
news:8i9v8xO4...@invalid.uk.co.demon.merlyn.invalid...

0 new messages