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 problem. unable to get started (http://p2p.wrox.com/showthread.php?t=78991)

yaronfa April 13th, 2010 10:58 AM

flXHR problem. unable to get started
 
Hello Jack. I really love your book and find it very usesfull.

I downloaded flxHR, copied the /deploy folder contents to my /scripts folder,
included the flxHR.js in my html page
and ran the page (the http way).

I get lots of errors like these:
y.base_path is undefined
y.checkplayer is undefined
y.ua is undefined
E.attachEvent is not a function

I saw in the example code that you do not include additional scripts.

thank you
Yaron

metajack April 14th, 2010 05:34 PM

Do you have flash installed? I believe that you need the following files in the scripts folder for flXHR to work:

checkplayer.js flXHR.vbs strophe.js
flXHR.js flensed.js swfobject.js
flXHR.swf strophe.flxhr.js updateplayer.swf

yaronfa April 15th, 2010 06:27 AM

I have them all
 
my html file only references the flxhr.js file.
As I understand, this file loads all the dependencies (no need to reference them all).

Do you mean - does my browser have the flash plugin installed?
If you do - I have flash version 10,0,45,2

I have uploaded the tester file (&scripts) to:
http://www.wsdis.com/tests/flxhr_test.html
It's an empty html file with a script tag referencing flxhr.js.
Firebug shows me that there is something missing, some dependency, and I cann't figure out what it is.

my strophe(js) library works. I can speak with my OpenFire local server,
but I cannot make cross-domain calls yet.

thanks

metajack April 15th, 2010 04:54 PM

That file loads fine for me. Firebug shows no errors, and the net panel shows me that it grabbed both flXHR.js and checkplayer.js.

I'm using Firefox 3.6.3.

yaronfa April 22nd, 2010 07:06 AM

It seems to work in IE and chrome.
It's probably my version of FireFox: 3.5.9

Thanks for the help


All times are GMT -4. The time now is 11:34 PM.

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