Wrox Programmer Forums
|
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 August 29th, 2012, 05:21 AM
Registered User
 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 3, not responed

Hi.

I'm a beginner in XMPP.

I have a problem.

It is that I had not recieved pong.

My code is the same to your code.

Console's log has not a message including error, warning.

$(document).bind('connected', function(){
Hello.log("Connection established."); -> this is correct, but

-------------------stop. I can't go next step.


Hello.connection.addHandler(Hello.handle_pong,null ,"iq",null,"ping");

var domain = Srophe.getDomainFromJid(Hello.connection.jid);
Hello.log(domain);
Hello.send_ping(domain);

});



Can you help me?
 
Old August 29th, 2012, 08:15 AM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

If it stops right in the middle of the handler, it might mean jquery is swallowing an exception. Try wrapping the next line (the first one that doesn't work) with a try/catch block and print out any exception information to the log.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





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