Hi all!
I'm refering to http://groups.google.com.vc/group/mochikit/browse_thread/thread/884c5af48f1410a0 - no more answers allowed... On 14 Mrz., 02:13, "Arnar Birgisson" <[EMAIL PROTECTED]> wrote: > > > XMLHttpRequest doesn't work across domains... > > But <scripts src="xxx"></script> tags do. > > I run similar web-services. I have the server where they are located > serve up a .js file which defines a JS api to my webservice. The api > has functions that abstracts the calls loadJSONDoc (in my case, can > use any XHR stuff), handles parameter conversions etc. > > I then include that .js file in whatever webapp I need and just call > the methods defined there. Since the XHR is done to the same domain as > the js file that's doing it - the browser is happy. Can anybody explain that a little more in detail, please? My HTML is served from https://secure.example.com/page.php and contains these lines: <script src="http://myotherserver.com:9080/script.js" type="text/ javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> function onPageLoad() { function_from_script(arguments); }; MochiKit.Signal.connect(window, "onload", onPageLoad); </script> function_from_script calls doSimpleXMLHttpRequest with an URL like http://myotherserver.com:9080/some/thing. This does NOT work. When I call an URL on https://secure.example.com/ it DOES work. When I call "some/thing" without FQDN, it also DOES work. Where is my failure? TIA, Vernon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
