Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
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.
  #3 (permalink)  
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 ?
  #4 (permalink)  
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.
  #5 (permalink)  
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.