Re: [jdev] Simple JavaScript XMPP client example

2014-09-08 Thread Hund, Johannes
: [jdev] Simple JavaScript XMPP client example Yep, I meant file:///. Just saw tape as well, will use that for now! Thanks On Fri, Sep 5, 2014 at 8:51 AM, Dave Cridland mailto:d...@cridland.net>> wrote: On 4 September 2014 23:05, Chris Fortmüller mailto:chrits...@gmail.com>> wro

Re: [jdev] Simple JavaScript XMPP client example

2014-09-06 Thread Steven Lloyd Watkin
And a hackathon the next day :) On 6 Sep 2014 21:29, "Matthew Wild" wrote: > On 6 September 2014 21:07, Chris Fortmüller wrote: > > Hi Steven, I managed to get a workaround running, so it is ok now. Is > there > > some kind of event going on in Berlin? Or are you located there? > > There will be

Re: [jdev] Simple JavaScript XMPP client example

2014-09-06 Thread Matthew Wild
On 6 September 2014 21:07, Chris Fortmüller wrote: > Hi Steven, I managed to get a workaround running, so it is ok now. Is there > some kind of event going on in Berlin? Or are you located there? There will be an XMPP summit in the coming week: http://wiki.xmpp.org/web/Summit_16 Regards, Matthew

Re: [jdev] Simple JavaScript XMPP client example

2014-09-06 Thread Chris Fortmüller
Hi Steven, I managed to get a workaround running, so it is ok now. Is there some kind of event going on in Berlin? Or are you located there? I am located in Hamburg, so Berlin wouldn't be too far, but my current workaround is fine for now. Thanks for the invite though! Best regards, Chris On S

Re: [jdev] Simple JavaScript XMPP client example

2014-09-06 Thread Steven Lloyd Watkin
There's lots of tools you can use to spin up a quick server, grunt-connect (nodejs), simplehttpserver (IIRC - python), etc. Assuming your surname is German Chris if you can make it to Berlin for Wed/Thurs next week we can help you out with your code in person if you'd like. __

Re: [jdev] Simple JavaScript XMPP client example

2014-09-06 Thread Steven Lloyd Watkin
_ Steven Lloyd Watkin Software Engineer PHP ::: Java ::: Ruby ::: Node.js ::: XMPP ll...@evilprofessor.co.uk (email+jid) ::: http://www.evilprofessor.co.uk Facebook / Twitter / Flickr: lloydwatkin Organiser of WORLD RECORD breaking charity event

Re: [jdev] Simple JavaScript XMPP client example

2014-09-05 Thread Chris Fortmüller
Yep, I meant file:///. Just saw tape as well, will use that for now! Thanks On Fri, Sep 5, 2014 at 8:51 AM, Dave Cridland wrote: > On 4 September 2014 23:05, Chris Fortmüller wrote: > >> Ok, so I have experimented a bit more, and as Steven said, if I host the >> code on a server, the code work

Re: [jdev] Simple JavaScript XMPP client example

2014-09-04 Thread Dave Cridland
On 4 September 2014 23:05, Chris Fortmüller 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 m

Re: [jdev] Simple JavaScript XMPP client example

2014-09-04 Thread Chris Fortmüller
er and it’s * by default. >> >> >> >> Best’ >> >> Johannes >> >> >> >> *Von:* JDev [mailto:jdev-boun...@jabber.org] *Im Auftrag von *Chris >> Fortmüller >> *Gesendet:* Dienstag, 2. September 2014 18:43 >> >> *An:* Jabb

Re: [jdev] Simple JavaScript XMPP client example

2014-09-04 Thread Chris Fortmüller
esendet:* Dienstag, 2. September 2014 18:43 > > *An:* Jabber/XMPP software development list > *Betreff:* Re: [jdev] Simple JavaScript XMPP client example > > > > Just bought Metajack's book, along with XMPP: The Definitive Guide: > Building Real-Time Applicatins wi

Re: [jdev] Simple JavaScript XMPP client example

2014-09-03 Thread Hund, Johannes
Von: JDev [mailto:jdev-boun...@jabber.org] Im Auftrag von Chris Fortmüller Gesendet: Dienstag, 2. September 2014 18:43 An: Jabber/XMPP software development list Betreff: Re: [jdev] Simple JavaScript XMPP client example Just bought Metajack's book, along with XMPP: The Definitive Guide: Bui

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Chris Fortmüller
Just bought Metajack's book, along with XMPP: The Definitive Guide: Building Real-Time Applicatins with Jabber Technologies On Tue, Sep 2, 2014 at 6:13 PM, Chris Fortmüller wrote: > @Kirk, thanks for the suggestions, will have a look. > > @Steven: The purpose of all this testing is that I hope

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Chris Fortmüller
@Kirk, thanks for the suggestions, will have a look. @Steven: The purpose of all this testing is that I hope on writing a little instant messenger app for android, which will have local html/javascript pages within the application package, which are supposed to host the xmpp code. So following you

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Kirk Bateman
Metajack's book (Jack Moffitt) has good setup and examples for strophe and bosh proxying "Professional XMPP Programming with Javascript and jquery" There are probably some bits of help on his blog too (check the archive), http://metajack.im Cheers Kirk Bateman On 2 September 2014 16:41, Steve

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Steven Lloyd Watkin
Generally its easer to serve your site on https://site.com and proxy bosh at something like site.com/http-bind/. Otherwise you'll hit CORS issues. So in summary, yes you are correct ;) _ Steven Lloyd Watkin Software Engineer PHP ::: Java ::: Rub

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Chris Fortmüller
@Christian: yes, I tried this, no change. @Stefan: I am just opening the local html file in chrome, i.e.file:///C:/Users/B/Desktop/strophejs-master/strophejs-master/examples/echobot.html. Your saying I need to access it somehow like http://localhost:5280/myfile.html? On Tue, Sep 2, 2014 at 5:2

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Stefan Strigler
Where are you loading your html file from? This needs to be served from the same host and port than your service (i.e. localhost:5280). Alternatively you'd need to supply a crossdomain.xml that allows your html/javascript to connect to any host/port. .Stefan 2014-09-01 21:54 GMT+02:00 Chris Fort

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Christian Schudt
Did you try to add a trailing slash to the BOSH URL? At least for Openfire this is mandatory, i.e.: http://localhost:5280/http-bind/   Christian   Gesendet: Dienstag, 02. September 2014 um 16:50 Uhr Von: "Chris Fortmüller" An: "Jabber/XMPP software development list" Betreff: Re: [jdev] Simp

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Steven Lloyd Watkin
I'd imagine the best place for raising strophe issues would be against their github repo? https://github.com/strophe/strophejs _ Steven Lloyd Watkin Software Engineer PHP ::: Java ::: Ruby ::: Node.js ::: XMPP ll...@evilprofessor.co.uk (email+j

Re: [jdev] Simple JavaScript XMPP client example

2014-09-02 Thread Chris Fortmüller
Not sure where I can get help with this. Is this mailing list suitable for fixing my connection problems with Strophejs. Should I use jad...@jabber.org instead? Not sure if its a server configuration issue or a code issue. On Mon, Sep 1, 2014 at 9:54 PM, Chris Fortmüller wrote: > Thanks to all

Re: [jdev] Simple JavaScript XMPP client example

2014-09-01 Thread Chris Fortmüller
Thanks to all for your answers. Johannes, I have tried the echobot example, changing var BOSH_SERVICE to ' http://localhost:5280/http-bind', where my BOSH service is up and running. When I try to connect in echobot.html, I just get Strophe is connecting. Strophe failed to connect. Strophe is dis

Re: [jdev] Simple JavaScript XMPP client example

2014-09-01 Thread Steven Lloyd Watkin
There's also an older version of node-xmpp which can be browserified and run directly in the browser. Version 1.0.0 is getting closer to release (it is available through npm) but currently browserify is broken - probably my fault. Lloyd _ Steve

Re: [jdev] Simple JavaScript XMPP client example

2014-09-01 Thread Hund, Johannes
Hi Christopher, looks like a sasl Problem. I recently whipped something up using strophe.js and found this example quite useful: https://github.com/strophe/strophejs/blob/master/examples/echobot.js Worked out of the box with openfire. Cheers, Johannes Von: JDev [mailto:jdev-boun...@jabber.o

Re: [jdev] Simple JavaScript XMPP client example

2014-09-01 Thread Sergey Dobrov
Hi, you can check this one too: https://github.com/jbinary/jslix/blob/master/index.html Thanks, don't hesitate to ask any questions on the example. On 09/01/2014 08:01 PM, Christopher Fortmüller wrote: > Hi all, > > I am running an ejabberd server for testing purposes. > I am now looking for a

Re: [jdev] Simple JavaScript XMPP client example

2014-09-01 Thread Ashley Ward
Hi Christopher, On 1 Sep 2014, at 14:01, Christopher Fortmüller wrote: > I am running an ejabberd server for testing purposes. > I am now looking for a very basic example of a working JavaScript/html client > to log in to this server. I would recommend looking at one of the newer node.js based