[jdev] Simple JavaScript XMPP client example

Dave Cridland dave at cridland.net
Fri Sep 5 06:51:56 UTC 2014


On 4 September 2014 23:05, Chris Fortmüller <chritsche at gmail.com> wrote:

> Ok, so I have experimented a bit more, and as Steven said, if I host the
> code on a server, the code works, but if I just access it locally, the code
> does not work. I still don't quite understand why. If I access the code
> locally from my machine, and then try to connect to a server on the web,
> the domain where the code is hosted (my local machine) and the server
> domain are different, but this is also the case if I host the code on a
> server and try to connect to a server in another domain, which does work.
> So I don't quite understand what is the problem then when I access the code
> locally
>
>
By "locally", do you mean file://? I reckon the browser folk broke file://
completely for almost anything useful.

Jack Moffit wrote a thing called Tape years back to handle problems like
this - a microserver for development you can run quickly out of any
directory. There's Node based stuff for this kind of thing too.

Dave.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20140905/33b546e7/attachment.html>


More information about the JDev mailing list