orbited deploying problem on my domain with Django app
Hi,
I hope there are some people who used Orbited with Django.
After searching the web i encountered with this explanation:
http://groups.google.com/group/orbited-users/msg/50b827e84a38dd8a
Unfortunatelly i didn't understand clearly, thats why i am writing
here.
I am trying to use orbited at my Django app. I edited the hosts file:
127.0.1.2 webviz webviz.comu.edu.tr
127.0.1.3 orbited orbited.webviz.comu.edu.tr
orbit.cfg is here:
[global]
reactor=select
#proxy.enabled=1
session.ping_interval = 40
session.ping_timeout = 30
[listen]
http://orbited.webviz.comu.edu.tr:9000
stomp://orbited.webviz.comu.edu.tr:61613
[access]
* -> orbited.webviz.comu.edu.tr:61613
[static]
# new logging configuration using the python stdlib logging.fileConfig
[loggers]
keys = root,orbited,orbited_TCPConnectionResource
[handlers]
keys = console,errors,connections
[formatters]
keys = generic
At the Django side, at my template i am trying to connect to the Orbit
server as
<!--scripts for stomp server connection starts -->
<script type="text/javascript" src="/media/js/Orbited.js"></script>
<script>
Orbited.settings.port = 9000;
Orbited.settings.hostname = "orbited.webviz.comu.edu.tr";
TCPSocket = Orbited.TCPSocket;
</script>
<script type="text/javascript" src="/media/js/stomp.js"></script>
<!--scripts for stomp server connection ends -->
<script type="text/javascript">
var modify_data = function(body)
{
// some update with the pushed data
}
// handling the pushed data
onload = function()
{
stomp = new STOMPClient();
stomp.onopen = function() {
};
stomp.onclose = function(c) { alert('Lost Connection, Code: ' +
c);};
stomp.onerror = function(error) {
alert("Error: " + error);
};
stomp.onerrorframe = function(frame) {
alert("Error: " + frame.body);
};
stomp.onconnectedframe = function() {
stomp.subscribe("globe_dio");
};
stomp.onmessageframe = function(frame) {
alert("message received");
modify_data(frame.body);
};
stomp.connect('orbited.webviz.comu.edu.tr', 61613);
}
I got the below error when i run my app
Error: uncaught exception: [Exception... "Illegal document.domain
value" code: "1009" nsresult: "0x805303f1
(NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN)" location: "http://
orbited.webviz.comu.edu.tr:9000/static/xsdrBridge.html#1 Line: 66"]
Error: Permission denied to access property 'Orbited'
Source File: http://orbited.webviz.comu.edu.tr:9000/static/xsdrBridge.html#1
Line: 92
Can you help to fix the problem or guide me.
Regards.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home