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 November 20th, 2010, 01:02 AM
Registered User
 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Must be missing something

Hello, I just started reading your book, and am relatively new to the XMPP world. Your book is informative and very easy to read.

I copied the code out of the book myself to get a hang of the language. I attend a university that provides storage space for me. I use it as web hosting.

I have tried running the code provided, but could not get any of the status messages that the picture at the start of the chapter said i should be getting.

I figured there was some kind of syntactical error that I made somewhere, so I downloaded the code and used that directly, only changing the stylesheet and script links in the <head> portion as needed. This yielded the same results (or lackthereof).

I have made a Jabber.org account as well as downloaded ejabberd to try and host my own server locally. I am able to connect to it via an XMPP acct on Pidgin, so I know that it's working. I replaced your metajack.im server with:

admin@myserver:5280.xmpp-httpbind (as well as tried with the variation as suggested in a previous thread about chapter 3) to no avail.

I tried using jabber.org:5280.xmpp-httpbind as well (although i suspect that this may not be correct)

Still I am getting no status messages of any kind. Everything is hosted on the same machine (except the school's storage space that I'm hosting the .css, .html, .js and all other libraries on).

I'm not sure what else to do here! Any suggestions?
  #2 (permalink)  
Old December 2nd, 2010, 07:48 PM
Registered User
 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So I got everything working. But I have a question. Everyone here seems to be using a local server of some kind.

I'm using an openfire server and currently am getting the sample code to work with

http://local-host:7070/http-bind/

Also, using pidgin works too. But if I wanted to connect to a server out of my LAN, where would I add, say, the IP address to that above code?

I can create a pidgin account that successfully connects to an openfire server outside of my network, I just don't know how to translate that relation for the BOSH service in the programs. What is the syntax for that?
  #3 (permalink)  
Old December 5th, 2010, 07:57 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 cycokris View Post
Also, using pidgin works too. But if I wanted to connect to a server out of my LAN, where would I add, say, the IP address to that above code?
I'm not sure what you mean. If you use openfire as your connection manager, you can only connect to that openfire server. If you use a stand-alone connection manager such as Punjab, you can connect to third party XMPP servers and it finds where to connect based on the JID you supply to connect().

See my blog post about this.
 


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
Is there some ':, missing ??? saban SQL Server ASP 1 May 28th, 2007 06:32 AM
What is missing? grstad SQL Language 11 March 6th, 2006 01:53 AM
MISSING TDs cleytonjordan Javascript How-To 3 July 29th, 2005 10:12 AM
What missing reference rjp Access 4 December 7th, 2004 01:16 PM
what am i missing? m002864 Crystal Reports 0 July 6th, 2004 07:24 AM



All times are GMT -4. The time now is 07:46 AM.


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