From: Mike Duffy on
David Mark <dmark.cinsoft(a)gmail.com> wrote in
news:8af6ac3f-3ffc-4a29-af37-9f19a529e01b(a)t42g2000vba.googlegroups.com:

> On Dec 23, 11:36�pm, Mike Duffy <resp...(a)invalid.invalid> wrote:
>> David Mark <dmark.cins...(a)gmail.com> wrote

>
> In FF go to about:config and change
> security.fileuri.strict_origin_policy to false.

1) My apologies to all for the recent double-posting of my messages. AIEO
via Xnews was showing "Done. Waiting for confirmation." indefinitely.
Without the "Confirmation" I cannot resist the compulsion to post again,
despite the fact that it will usually end up making me look compulsive.

2) Thanks again David. As you may see, I have successfully added clocks to
all my web pages to show server time and local time.

http://pages.videotron.com/duffym/

3) Re your point above about security policies, thanks, I might use this on
a private area of my web site to get the correct time from a government
time server instead of from the local machine. But since this configuration
is not the installed default, I cannot assume that web visitors will have
this option (or the similar IE option) enabled.

But that brings up another question: How does Google implement an Ajax API
(such as the translation one I use extensively) to work without the warning
messages? They "google.com" are, in fact, receiving XML HTTP requests from
everyone all over the place. Most of these users use default security
settings. They are not bothered by those security warning messages.

The google code is obfuscted, I do not need to know THAT much how they do
it. I looked up (on the web) how to do this sort of thing in general, and
there are workarounds, but they all involve setting up a proxy on the end-
user's ISP system.

Do any of you know how they do it?

From: Dr J R Stockton on
In comp.lang.javascript message <Xns9CEC76BECB67Drespondinvalidinvali(a)85
..214.113.135>, Fri, 25 Dec 2009 16:40:24, Mike Duffy
<respond(a)invalid.invalid> posted:
>
>2) Thanks again David. As you may see, I have successfully added clocks to
>all my web pages to show server time and local time.

How do you get that to work for David and not for me?

>http://pages.videotron.com/duffym/

Putting the US flag first and the others in what looks like alphabetical
order of English form of language name is politically incorrect. The
flags should be in alphabetical order of the language currently being
shown, and the correct flag for English is of course the Cross of St
George. Latin & Esperanto seem to be missing.


The astro page has NaNs.

The puns page does not translate well.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
From: David Mark on
On Dec 25, 11:40 am, Mike Duffy <resp...(a)invalid.invalid> wrote:
> David Mark <dmark.cins...(a)gmail.com> wrote innews:8af6ac3f-3ffc-4a29-af37-9f19a529e01b(a)t42g2000vba.googlegroups.com:
>
> > On Dec 23, 11:36 pm, Mike Duffy <resp...(a)invalid.invalid> wrote:
> >> David Mark <dmark.cins...(a)gmail.com> wrote
>
> > In FF go to about:config and change
> > security.fileuri.strict_origin_policy to false.
>
> 1) My apologies to all for the recent double-posting of my messages. AIEO
> via Xnews was showing "Done. Waiting for confirmation." indefinitely.
> Without the "Confirmation" I cannot resist the compulsion to post again,
> despite the fact that it will usually end up making me look compulsive.

NP.

>
> 2) Thanks again David. As you may see, I have successfully added clocks to
> all my web pages to show server time and local time.
>
> http://pages.videotron.com/duffym/

I'll check it out when I get a chance...

>
> 3) Re your point above about security policies, thanks, I might use this on
> a private area of my web site to get the correct time from a government
> time server instead of from the local machine. But since this configuration
> is not the installed default, I cannot assume that web visitors will have
> this option (or the similar IE option) enabled.

The suggestion was just for local testing.

>
> But that brings up another question: How does Google implement an Ajax API
> (such as the translation one I use extensively) to work without the warning
> messages? They "google.com" are, in fact, receiving XML HTTP requests from
> everyone all over the place. Most of these users use default security
> settings. They are not bothered by those security warning messages.

I'll have to look at it.

>
> The google code is obfuscted, I do not need to know THAT much how they do
> it. I looked up (on the web) how to do this sort of thing in general, and
> there are workarounds, but they all involve setting up a proxy on the end-
> user's ISP system.
>
> Do any of you know how they do it?

Not sure until I look at it.
From: Mike Duffy on
David Mark <dmark.cinsoft(a)gmail.com> wrote in
news:1990d22f-05ad-4307-8049-89a98c45dd93(a)g12g2000vbl.googlegroups.com:

> Not sure until I look at it.

If you're curious. But like I said, it is not important for me. I have what
I want. They *might* be using the 1x1 invisible iframe trick to pass data
across domains. Thanks again.
From: Mike Duffy on
Dr J R Stockton <reply0952(a)merlyn.demon.co.uk> wrote in
news:CiEk2TJcApNLFws5(a)invalid.uk.co.demon.merlyn.invalid:

> How do you get that to work for David and not for me?
>
>>http://pages.videotron.com/duffym/

Are you saying that the clocks (local & server) do not work for you? I
have not yet added the support for old (IE6 & <) browsers. Which browser
are you using?


> Putting the US flag first and the others in what looks like
> alphabetical order of English form of language name is politically
> incorrect.

They are in alphabetic order of the drop-down list on the Google
"translate text" page, which is, I believe, exactly as you say it looks
like. English has been pushed to the start in order to reduce the
complexity of debugging.


> The flags should be in alphabetical order of the language
> currently being shown,

Probably if I were hosting the UN web site I would do as you say, but
that seems to me to add complexity that does really add value to the
product worthy of the effort nor the risk of unforseen complications. To
be fair, I suppose I should use the alphabetic order of the 2 char iso
language code, and put English (en) in it's proper place between Greek
(el) and Spanish (es). The next time I find myself working on that part
of my javascript include file I will do exactly that.


> ... the correct flag for English is of course
> the Cross of St George.

I did actually consider this. But many international users would not make
the connection. As far as that goes, the UK flag is more widely used on
the web to denote the English language. But since my web-site is written
in Quebec English, it makes more sense to use the American flag.

There is a certain body of opinion that holds that flags should not be
used at all for language selection. The problem of choosing which country
flag to use for Swahili was reduced (for me) to picking the country with
the largest number of Swahili speakers. The Indian flag is an obvious
choice for Hindi written in the Devanagari script, but what will I do
when other uniquely Indian languages become supported? I used the Chinese
flag twice, but I cannot forsee doing this for all 400 Indian languages.
And did you recognize the flag I used for Yiddish?


> Latin & Esperanto seem to be missing.
As soon as Google supports them, I will add them. And I cannot for the
life of me guess what flags I will use.


> The astro page has NaNs.
In the planetary positions, or in the tide (gravity gradient)
calculation? Everything has always worked okay for me. I would appreciate
details on the errors you encountered.


> The puns page does not translate well.

If you thinks that's bad, check out my poetry!