Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14692
| Message-ID | <1548037.q8OKcOxoW2@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-06-26 23:20 +0200 |
| Subject | Re: Unclear Error Code |
| Newsgroups | comp.lang.javascript |
| References | (1 earlier) <194iu7p9b6t4ef3aupclci13u012frunpg@4ax.com> <p4diu75iefnrcbm62bm46oglu9mf7ql7og@4ax.com> <dtoGr.405303$jl.276261@fx19.am4> <326ku7dmhf5i0hosp63996crif8apmlm9f@4ax.com> <jsd7hr$tqm$1@news.albasani.net> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Stefan Weiss wrote:
> On 2012-06-26 22:30, Gene Wirchenko wrote:
>> <img
>> src="http://test.deitel.com/examples/iw3htp4/ajax/thumbs/cpphtp6.jpg"
>> onmouseover='GetContent("http://www.ucantrade.com/"); //*****
>
> Looks like Mike is right, and you're running into a SOP-problem. If
> you're not loading the page from www.ucantrade.com, you can't send an
> XHR to that server:
> https://en.wikipedia.org/wiki/Same_origin_policy
This article is lacking several references (and is marked so), and is
outdated at best. Unfortunately, it is generally a good idea to avoid
Wikipedia articles on the topic of this newsgroup, or take them with a
*handful* of salt.
For more up-to-date information, see e. g.:
<https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript>
<https://developer.mozilla.org/En/HTTP_access_control>
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unclear Error Code Gene Wirchenko <genew@ocis.net> - 2012-06-25 17:46 -0700
Re: Unclear Error Code Jeff North <jnorthau@yahoo.com.au> - 2012-06-26 11:32 +1000
Re: Unclear Error Code Gene Wirchenko <genew@ocis.net> - 2012-06-25 21:03 -0700
Re: Unclear Error Code Mike Winter <usenet@michael-winter.me.invalid> - 2012-06-26 20:55 +0100
Re: Unclear Error Code Gene Wirchenko <genew@ocis.net> - 2012-06-26 13:30 -0700
Re: Unclear Error Code Stefan Weiss <krewecherl@gmail.com> - 2012-06-26 22:54 +0200
Re: Unclear Error Code Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-26 23:20 +0200
Re: Unclear Error Code Gene Wirchenko <genew@ocis.net> - 2012-06-26 16:42 -0700
Re: Unclear Error Code Stefan Weiss <krewecherl@gmail.com> - 2012-06-27 02:29 +0200
Re: Unclear Error Code Bjoern Hoehrmann <bjoern@hoehrmann.de> - 2012-06-26 23:18 +0200
Re: Unclear Error Code Mike Winter <usenet@michael-winter.me.invalid> - 2012-06-26 22:34 +0100
csiph-web