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
  #1 (permalink)  
Old February 21st, 2010, 02:40 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default flXHR issues

1. In Chapter 3 : (Page 43). while setting up flXHR, its advised to use a strophe.flxhr.js - which cannot be easily found. I searched and got it from matjack's github project.

2. When I completed coded, I was getting an error.
"flXHR.js Uncaught Error: flXHR dependencies failed to load."

Hence, I downloaded the code from ch03 and then set it up. Only to get the same error over again.


Any clues on why this is happening would be helpful.

Thanks
  #2 (permalink)  
Old February 21st, 2010, 08:06 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

1. The Strophe.js release package should have strophe.flxhr.js in the plugins directory. It should also be included in the book's sample code in the scripts directory.

2. You will need the flXHR code and flash object, which you can get from flxhr.flensed.com. This should also be in the book's sample code available from professionalxmpp.com (via GitHub) or the Wrox book page.

If those are in place and you still get the error, let me know, and I can suggest some things to try.

jack.
The Following User Says Thank You to metajack For This Useful Post:
maverickr (February 21st, 2010)
  #3 (permalink)  
Old February 21st, 2010, 10:33 PM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Smile

I looked at the apache error log and realized that. silly me.

nevertheless, thanks for replying.

Its a wonderful book :)
  #4 (permalink)  
Old February 22nd, 2010, 03:32 AM
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

I'm glad you're enjoying the book. Please let me know if you find any issues.
  #5 (permalink)  
Old September 2nd, 2013, 05:10 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default GAB

in GAB example , i used openfire server with localhost:7070 vosch connection string
i have create two jabber id hiren@papa-pc and saket@papa-pc bother are friend of each other .. but when i login with the hiren@papa-pc then there is not shown any contact list in roster but there is one friend (saket@papa-pc)
there is no javascript error in console panel
  #6 (permalink)  
Old March 13th, 2014, 05:38 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Location: Changsha,China
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello. I am a Chinese who buy your book,a wonderful one!
i do have some questions while i am trying to program the hello program.(chap 3)
here is the situation:
i set up the openfire on my own computer, and i created a user with the JID: zhengqilong@127.0.0.1
i change your code to ( var conn = new Strophe.Connection("http://127.0.0.1:7070/http-bind/"); ) [hello.js]
i am 100% sure that i had made all the js file included. while i tried to connect to the openfire, it returned a status, the value = 1, which means 'connecting', then nothing happened.
and the firebug (a plugin in firefox) presented a error: flXHR dependencies failed to load

this makes me crazy, thank you for your time.
  #7 (permalink)  
Old March 13th, 2014, 03:30 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

Don't use flXHR anymore. It was abandoned by the original author and is not needed now with almost everything supporting CORS.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serious Issues silverx10 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 12 February 5th, 2010 02:29 AM
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
IE Issues iPagan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 April 1st, 2007 04:11 AM
Still Having Issues slas7713 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 9 October 27th, 2006 02:59 PM
For-each issues hiskeyd XSLT 1 February 27th, 2006 08:01 PM





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