Re: [ACFUG Discuss] Javascript across sub domains
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. John -- From: Mischa Uppelschoten mischa.uppelscho...@bankersx.com Sent: Monday, November 02, 2009 2:20 PM To: Web Site discussion@acfug.org Subject: [ACFUG Discuss] Javascript across sub domains 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 attempt at all, so my guess is that FF is preventing it. Is there anything I can do server side to allow that? Thanks! Mischa. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] Javascript across 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 PM, John Youngman wrote: 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. John -- From: Mischa Uppelschoten mischa.uppelscho...@bankersx.com Sent: Monday, November 02, 2009 2:20 PM To: Web Site discussion@acfug.org Subject: [ACFUG Discuss] Javascript across sub domains 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 attempt at all, so my guess is that FF is preventing it. Is there anything I can do server side to allow that? Thanks! Mischa. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] Javascript across sub domains
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 borrowed from his children. -- John James Audubon On Nov 2, 2009, at 2:30 PM, John Youngman wrote: 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. John -- From: Mischa Uppelschoten mischa.uppelscho...@bankersx.com Sent: Monday, November 02, 2009 2:20 PM To: Web Site discussion@acfug.org Subject: [ACFUG Discuss] Javascript across sub domains 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 attempt at all, so my guess is that FF is preventing it. Is there anything I can do server side to allow that? Thanks! Mischa. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] Javascript across sub domains
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 d...@fullfrontalnerdity.com Sent: Monday, November 02, 2009 2:41 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Javascript across sub domains 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 borrowed from his children. -- John James Audubon On Nov 2, 2009, at 2:30 PM, John Youngman wrote: 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. John -- From: Mischa Uppelschoten mischa.uppelscho...@bankersx.com Sent: Monday, November 02, 2009 2:20 PM To: Web Site discussion@acfug.org Subject: [ACFUG Discuss] Javascript across sub domains 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 attempt at all, so my guess is that FF is preventing it. Is there anything I can do server side to allow that? Thanks! Mischa. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -