<div dir="ltr">Just bought Metajack's book, along with <span id="productTitle">XMPP: The Definitive Guide: Building Real-Time Applicatins with Jabber Technologies</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Sep 2, 2014 at 6:13 PM, Chris Fortmüller <span dir="ltr"><<a href="mailto:chritsche@gmail.com" target="_blank">chritsche@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>@Kirk, thanks for the suggestions, will have a look.</div><div> </div><div>@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 your post, under this scenario, I will also face CORS issues? Will need to investigate this further</div>

<div> </div><div>Thanks to all!</div><div> </div><div>Chris</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 5:44 PM, Kirk Bateman <span dir="ltr"><<a href="mailto:kirk.bateman@gmail.com" target="_blank">kirk.bateman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Metajack's book (Jack Moffitt) has good setup and examples for strophe and bosh proxying<div>
<br></div>
<div>"Professional XMPP Programming with Javascript and jquery"</div><div><br></div><div>There are probably some bits of help on his blog too (check the archive), <a href="http://metajack.im" target="_blank">http://metajack.im</a></div>


<div><br></div><div>Cheers</div><span><font color="#888888"><div><br></div><div>Kirk Bateman</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 2 September 2014 16:41, Steven Lloyd Watkin <span dir="ltr"><<a href="mailto:lloyd@evilprofessor.co.uk" target="_blank">lloyd@evilprofessor.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Generally its easer to serve your site on <a href="https://site.com" target="_blank">https://site.com</a> and proxy bosh at something like <a href="http://site.com/http-bind/" target="_blank">site.com/http-bind/</a>. Otherwise you'll hit CORS issues. So in summary, yes you are correct ;)</div>




<div class="gmail_extra"><div><br clear="all"><div><div dir="ltr">_____________________________________________________<br><br>Steven Lloyd Watkin<div>Software Engineer</div><div>PHP ::: Java ::: Ruby ::: Node.js ::: XMPP<br>



<a href="mailto:lloyd@evilprofessor.co.uk" target="_blank">lloyd@evilprofessor.co.uk</a> (email+jid) ::: <a href="http://www.evilprofessor.co.uk" target="_blank">http://www.evilprofessor.co.uk</a><br>
Facebook / Twitter / Flickr: lloydwatkin<br><br>Organiser of WORLD RECORD breaking charity event:<div>Scuba Santas ::: <a href="http://www.scuba-santas.co.uk" target="_blank">http://www.scuba-santas.co.uk</a><br>Supporting the RNLI & DDRC - 15th December 2013 - NDAC, Chepstow</div>




</div></div></div>
<br><br></div><div><div><div class="gmail_quote">On 2 September 2014 16:34, Chris Fortmüller <span dir="ltr"><<a href="mailto:chritsche@gmail.com" target="_blank">chritsche@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">

<div dir="ltr"><div>@Christian: yes, I tried this, no change.</div><div> </div><div>@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.</div>





<div> </div><div>Your saying I need to access it somehow like <a href="http://localhost:5280/myfile.html" target="_blank">http://localhost:5280/myfile.html</a>?</div><div> </div></div><div><div>

<div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Sep 2, 2014 at 5:24 PM, Stefan Strigler <span dir="ltr"><<a href="mailto:stefan.strigler@gmail.com" target="_blank">stefan.strigler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">





<div dir="ltr">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.<div>






<br></div><div>.Stefan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-09-01 21:54 GMT+02:00 Chris Fortmüller <span dir="ltr"><<a href="mailto:chritsche@gmail.com" target="_blank">chritsche@gmail.com</a>></span>:<div>





<div><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Thanks to all for your answers.</div>





<div> </div><div>Johannes, I have tried the echobot example, changing var BOSH_SERVICE to '<a href="http://localhost:5280/http-bind" target="_blank">http://localhost:5280/http-bind</a>', where my BOSH service is up and running.</div>







<div> </div><div>When I try to connect in echobot.html, I just get </div><div> </div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is connecting.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe failed to connect.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is disconnected.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is connecting.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe failed to connect.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is disconnected.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is connecting.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe failed to connect.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is disconnected.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is connecting.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe failed to connect.</span></div>







<div style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"></div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Strophe is disconnected.</span></div>







<div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal"></span> </div><div><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">So, a bunch of failed attempts. Not sure what the issue is</span></div>







</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 4:44 PM, Steven Lloyd Watkin <span dir="ltr"><<a href="mailto:lloyd@evilprofessor.co.uk" target="_blank">lloyd@evilprofessor.co.uk</a>></span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">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.<div>









<br></div><div>Lloyd</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">_____________________________________________________<br><br>Steven Lloyd Watkin<div>Software Engineer</div><div>PHP ::: Java ::: Ruby ::: Node.js ::: XMPP<br>









<a href="mailto:lloyd@evilprofessor.co.uk" target="_blank">lloyd@evilprofessor.co.uk</a> (email+jid) ::: <a href="http://www.evilprofessor.co.uk" target="_blank">http://www.evilprofessor.co.uk</a><br>Facebook / Twitter / Flickr: lloydwatkin<br>









<br>Organiser of WORLD RECORD breaking charity event:<div>Scuba Santas ::: <a href="http://www.scuba-santas.co.uk" target="_blank">http://www.scuba-santas.co.uk</a><br>Supporting the RNLI & DDRC - 15th December 2013 - NDAC, Chepstow</div>









</div></div></div>
<br><br><div class="gmail_quote"><div><div>On 1 September 2014 14:51, Hund, Johannes <span dir="ltr"><<a href="mailto:johannes.hund@siemens.com" target="_blank">johannes.hund@siemens.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div>







<div lang="DE" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Hi Christopher,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">looks like a sasl  Problem.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">I recently whipped something up using strophe.js and found this example quite useful:<u></u><u></u></span></p>










<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><a href="https://github.com/strophe/strophejs/blob/master/examples/echobot.js" target="_blank">https://github.com/strophe/strophejs/blob/master/examples/echobot.js</a><u></u><u></u></span></p>










<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Worked out of the box with openfire.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Johannes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentColor currentColor;padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="font-family:"Tahoma","sans-serif";font-size:10pt">Von:</span></b><span style="font-family:"Tahoma","sans-serif";font-size:10pt"> JDev [mailto:<a href="mailto:jdev-bounces@jabber.org" target="_blank">jdev-bounces@jabber.org</a>]
<b>Im Auftrag von </b>Christopher Fortmüller<br>
<b>Gesendet:</b> Montag, 1. September 2014 15:02<br>
<b>An:</b> <a href="mailto:jdev@jabber.org" target="_blank">jdev@jabber.org</a><br>
<b>Betreff:</b> [jdev] Simple JavaScript XMPP client example<u></u><u></u></span></p>
</div><div><div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I am running an ejabberd server for testing purposes.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I am now looking for a very basic example of a working JavaScript/html client to log in to this server.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I have tried several JavaScript libraries so far, unfortunately, to no avail. Would also appreciate input on my post on stackoverflow, if anyone has any:
<a href="http://stackoverflow.com/questions/25601350/ejabberd-authentication-configuration-for-plain-or-md5-digest-for-javascript-con" target="_blank">
http://stackoverflow.com/questions/25601350/ejabberd-authentication-configuration-for-plain-or-md5-digest-for-javascript-con</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I tried connecting with jQueryXmpp in that case.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks for any and all help,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Chris<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br></div></div><div>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org" target="_blank">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>