Thanks Dean! I just tried it, but it breaks other parts of my script. Still, I
think you hit the nail on the head and setting document.domain is the solution,
were it not for the handiwork of the original author :-(
Mischa.
: FWIW, this is actually not an issue with the SOP, I misspoke. But to
Dean,
That is something I never know you could do. Thanks for the info...hope
this helps Mischa. And I'll definitely remember this "tidbit" for future
use!
John
--
From: "Dean H. Saxe"
Sent: Monday, November 02, 2009 2:41 PM
To:
Subject: Re
Actually there is no security reason to allow it not to post to
another domain.
--
Dean H. Saxe
"A true conservationist is a person who knows that the world is not
given by his fathers, but borrowed from his children." -- John James
Audubon
On Nov 2, 2009, at 2:38 PM, Mischa Uppelscho
FWIW, this is actually not an issue with the SOP, I misspoke. But to
get around some SOP issues set the domain property: http://docs.sun.com/source/816-6408-10/document.htm#1193628
--
Dean H. Saxe
"A true conservationist is a person who knows that the world is not
given by his fathers, but b
Thanks John! I'm afraid they are different servers. I have CF running on one
box that takes user input. This input needs to be posted to a webservice on the
other box. I understand one cannot go from domaina.com to domainb.com for
security reasons, but I can't find a good answer on sub domains..
Actually, its an issue due to the same origin policy. I have a
solution, but I have to dig it up...
--
Dean H. Saxe
"A true conservationist is a person who knows that the world is not
given by his fathers, but borrowed from his children." -- John James
Audubon
On Nov 2, 2009, at 2:30
Mischa,
Not sure about JS and subdomains - I wouldn't think it would be a problem,
but I would imagine that the subdomain is pointing to just a folder on the
original domain, yes? if so, just have your AJAX post to the file in that
folder, instead of using the submain in the script itself.
J
More of a js question than CF, but I hope someone might be able to chime in and
save me some research time.
Source code (html + js) comes from www.domain.com and is loaded in a frame.
is the javascript allowed to do a HTTP post (AJAX) to server1.domain.com ?
Right now FireBug is not showing any