Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
Register | 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 April 13th, 2010, 10:58 AM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #2 (permalink)  
Old April 14th, 2010, 05:34 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

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
  #3 (permalink)  
Old April 15th, 2010, 06:27 AM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #4 (permalink)  
Old April 15th, 2010, 04:54 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

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.
  #5 (permalink)  
Old April 22nd, 2010, 07:06 AM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Thanks for the help
 


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
flXHR issues maverickr BOOK: Professional XMPP Programming with JavaScript and jQuery 6 March 13th, 2014 03:30 PM
Getting started with Chapter 3 - flXHR problem gkamp BOOK: Professional XMPP Programming with JavaScript and jQuery 17 January 13th, 2012 06:48 PM
flXHR Security Exception with Dig grantcv1 BOOK: Professional XMPP Programming with JavaScript and jQuery 3 April 15th, 2010 01:09 AM
flXHR question... msanders BOOK: Professional XMPP Programming with JavaScript and jQuery 2 March 10th, 2010 08:02 PM



All times are GMT -4. The time now is 04:09 PM.


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