Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2010, 04:14 AM
Registered User
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changes in toetem app

Hi..
Its been great going through your book. I have had li'l experience with Jquery and xmpp before, but your book has opened new dimensions for me.Thank u.

Since I am still gng thrugh the book, I wish to run the applications you have made. I have downloaded the source codes . The initial apps such as Hello and peek are working fine (I am using apache web server) But the later apps dont work .

Please advice what changes should I do in the Toetem app to get it working asap so that I can I have an idea what I'll be building.
 
Old October 24th, 2010, 11:52 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Thanks for your kind feedback. It is much appreciated!

Quote:
Originally Posted by ankushchadda View Post
Please advice what changes should I do in the Toetem app to get it working asap so that I can I have an idea what I'll be building.
Are you using the latest code from http://github.com/metajack/profxmpp? If not, try that first.

If that doesn't help, I'll need some more details to help you. What is going wrong when you try to run Toetem? Does it work partially? Does it fail to load at all?

The most common problem people have with Toetem is that it requires you to use the full JID of the referee when you log in as a player. For example, use referee@example.com/toetem as opposed to just referee@example.com.
 
Old October 27th, 2010, 02:27 PM
Registered User
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Toetem Changes

Thanku for your prompt reply.

Yes, I am using the latest code from the github.I have changed just the MUC_SERVICE to 'conference.jabber.org' .
Then I ran the Toetem Refree with a jabber ID, I got no response.
Next I ran Toetem app with another jabber ID yet no response.

What do u suggest ?
 
Old November 1st, 2010, 01:58 PM
Registered User
 
Join Date: Oct 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In absence of any reply. I went on and checked the source code myself.
I found that the connection url had been = http://localhost:5280/xmpp-httpbind .

On changing it with the url given in earlier chapters ( http://bosh.metajack.im:5280/xmpp-httpbind ) , the code works. Hence two changes were required for the code to work
1) MUC_ SERVICE =' conference.jabber.org'
2) Connection url to http://bosh.metajack.im:5280/xmpp-httpbind

Was there any specific reason for changing the connection url?

Also I have configured Openfire with Apache , I have also enabled the BOSH Http-Binding . On using the connection url as http://localhost:7070/http-bind/ , I didnt get any response.. The error console of the browser shows nothing.

I have made the following rule in Apache conf =

ProxyPass /http-bind http://myserv:7070/http-bind/
ProxyPassReverse /http-bind http://myserv:7070/http-bind/

Please advice.
 
Old November 1st, 2010, 03:11 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by ankushchadda View Post
On changing it with the url given in earlier chapters ( http://bosh.metajack.im:5280/xmpp-httpbind ) , the code works. Hence two changes were required for the code to work
1) MUC_ SERVICE =' conference.jabber.org'
2) Connection url to http://bosh.metajack.im:5280/xmpp-httpbind

Was there any specific reason for changing the connection url?
Apparently I modified those while I was debugging something and accidentally committed the changes. I have now fixed them in the repository. I apologize for that.

It looks like the MUC_SERVICE issue made it into the book, but the BOSH URL was correct in the book.

Quote:
Also I have configured Openfire with Apache , I have also enabled the BOSH Http-Binding . On using the connection url as http://localhost:7070/http-bind/ , I didnt get any response.. The error console of the browser shows nothing.

I have made the following rule in Apache conf =

ProxyPass /http-bind http://myserv:7070/http-bind/
ProxyPassReverse /http-bind http://myserv:7070/http-bind/

Please advice.
I believe Openfire usees /http-bind not /http-bind/. See if removing the / helps.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface between web app and win app alienaheart ASP.NET 2.0 Professional 4 August 4th, 2009 09:29 AM
Starting a console App from a vb.net windows app RobCarter Pro Visual Basic 2005 4 June 24th, 2009 09:20 AM
02 IN 01 Desktop App (App+Wind Handler) pk_ocp .NET Framework 2.0 0 February 26th, 2008 02:58 PM
Convert a VB.Net app to a web app? furjaw VB.NET 3 September 24th, 2007 12:27 PM
app to app messaging across network... dbrook007 Pro VB 6 1 June 4th, 2006 11:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.