p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional XMPP Programming with JavaScript and jQuery (http://p2p.wrox.com/forumdisplay.php?f=542)
-   -   flXHR issues (http://p2p.wrox.com/showthread.php?t=78280)

maverickr February 21st, 2010 02:40 AM

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.


metajack February 21st, 2010 08:06 PM

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.


maverickr February 21st, 2010 10:33 PM

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

nevertheless, thanks for replying.

Its a wonderful book :)

metajack February 22nd, 2010 03:32 AM

I'm glad you're enjoying the book. Please let me know if you find any issues.

hiren.prajapati September 2nd, 2013 05:10 AM

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

echo March 13th, 2014 05:38 AM

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@
i change your code to ( var conn = new Strophe.Connection(""); ) [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.

metajack March 13th, 2014 03:30 PM

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

All times are GMT -4. The time now is 05:43 PM.

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