Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
|
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 September 2nd, 2011, 10:59 PM
Registered User
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3: Getting Started "Hello" does not work!

Hi everyone,

I've been working and very eager to learn about real-time programming. I've read everything until now, I can not make the example work. I did make sure that my JID and password was correct, but the "status" returning 1, then 2, and stop right there. I've looked up the information, and I think that 1 means "connecting", 2 means "authenticating". It does not work!

Here is my own code following the book: http://xx3004.kodingen.com/XMPP/
Here is the code downloaded from website: http://xx3004.kodingen.com/XMPP_SRC/ch03/hello.html

Both of them does not work. Please help.

[x]
 
Old September 5th, 2011, 04:05 PM
Registered User
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Pump. Please help.

Additional information: I could not find "strophe.flxhr.js" in the latest version of Strophe.

I would thank for any help. Could you please show me an example link that works, that is just fine.

Thanks again.
[x]
 
Old October 10th, 2011, 02:23 AM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you can download the code described in the book from this address:
http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

In the code, there is a document called Scripts, there are all the scripts needed in the program included what you wanted.
 
Old February 5th, 2012, 12:26 AM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 3 ... localhost server connection doesn't work

Hi All,

I have been reading through the book till Chapter 6 right now... The book is really excited me a lot.
Now, I am back at Chapter 3 try to use my localhost xmpp BOSH connection instead of the one that the book recommended.
I have been stuck for about 5 days now and yet still can't get that chapter 3 working using my localhost BOSH connection....

For detail information:
My XMPP server connection : ejabberd-2.1.10
BOSH connection is setup at http://localhost:5280/xmpp-httpbind
crossdomain is also setup successfully at http://localhost:5280/crossdomain.xml

I have a valid XMPP account that I registered at register.jabber.org

When I am using the http://bosh.metajack.im:5280/xmpp-httpbind, everything works perfect... But, when I change the BOSH connection manager to my localhost: http://localhost:5280/xmpp-httpbind, the chapter 3 code doesn't work...

Is there someone there that can help me with the problem I have here??? I want to run the code in my localserver but... been frustrated because it doesn't work the way it should be...

Many Thanks,
-Joe
 
Old February 5th, 2012, 01:04 AM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Joegun,

The problem you are running into is that ejabberd's BOSH endpoint can only be used to connect to ejabberd's XMPP service. You can't use ejabberd's BOSH to connect to jabber.org.

The service I run at bosh.metajack.im is using Punjab, which is a standalone BOSH connection manager, and it can be used to connect to any publicly accessible XMPP server.

To read more about the differences, see
http://metajack.im/2008/09/08/which-...r-do-you-need/

and also the notes in Appendix B in the book.
The Following User Says Thank You to metajack For This Useful Post:
joegun (February 6th, 2012)
 
Old February 6th, 2012, 01:25 AM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Jack... Now it works like a champ...:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
Difficulties with "web.config" and "ASPNETDB" CFRham BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 2 July 3rd, 2010 10:19 AM
Can't get "ASP.NET configuration" to work in the examples. Javaman BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 1 November 3rd, 2009 02:34 PM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





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