Hello, all:
I am likely out of luck here, but I am struggling to find a way to
implement a meteor server on a completely different domain and port
than my Apache server that will be cross-browser compliant.
All I need is a way to have the meteord server stream (or perhaps long-
poll) JSON-formatted messages (added via a PHP script connected to the
meteord's command port and already in JSON format) to clients that
connect via the html page served from a totally different domain.
(This is because I am using a commercial web server that will not
allow me to run meteord on their system, and my in-house servers
cannot run Apache.)
My current tests all fail immediately after the connection is made,
with the following error showing up in FireBug:
"Permission denied for <
http://meteorserver.com> to get property
Window.Meteor from <
http://htmlserver>." (obviously I've changed the
domain names but you get the point.)
This is stopping the Meteor.register function from processing and
therefore declaring all its variables & processes etc. etc. including
the all-important "p" function.
From reading through here I can find lots of ideas on how to get the
messages formatted the way I want (escaped strings, etc.) but nothing
that will get around the basic problem that prohibits the line
"parent.Meteor.register(this);" from executing.
Thanks for any help, and I apologize in advance if this is something I
should've seen in documentation somewhere but I simply can't find a
solution yet.
-Doug