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 August 12th, 2010, 06:28 AM
Registered User
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Alternative to flXHR?

Hi,

As it seems many people are having problems with flHR. Also it's something that requires flash plugin being installed on computer. I think this is pretty much against the spirit/philosophy behind the book. I wanted to start learning things on this book and start to create something, but now noticing that any person who is going to use the site I create, need to have Flash plugin installed?

Really, is this necessary? Flash itself is giving problems to people. If not now, maybe from the next version that will be installed. How about creating something cross-platform, maybe even mobile applications. Flash is not simply available nor people willing to install it at all.

I wouldn't call flash an open technology. It's proprietary. It requires something proprietary being installed on your computer. That should be mentioned in the book!

Sorry for being too offensive, this was just a big show-stopper for me. I think it's been also show-stopper for google who is in process of changing youtube videos to WebM.

Zico
  #2 (permalink)  
Old December 4th, 2010, 07:44 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:
Really, is this necessary? Flash itself is giving problems to people. If not now, maybe from the next version that will be installed. How about creating something cross-platform, maybe even mobile applications. Flash is not simply available nor people willing to install it at all.
There is a simple misunderstanding here. Flash is not required at all. I have built several companies worth of technology using XMPP without using any Flash at all.

The flash plugin exists to help newcomers circumvent a very specific and common problem, which is that the cross-origin security policies of browsers make it extremely hard to get started since you would need to know how to run a web server and how to set up reverse proxies. (This is explained in the book as well in one of the last chapters on advanced techniques).

Another alternative, which I was unfortunately aware of before I finished the book, is the Cross Origin Resource Sharing (CORS) support that is built into modern browsers. This lets cross-origin requests happen with just a few header changes in the connection manager.

Strophe still needs support for CORS on IE7/8 (6 unfortunately is not possible), but for other browsers this already works now. ejabberd, Tigase, and punjab all support CORS out of the box now I believe, and Openfire is likely not far behind.

Note that almost all the traffic on this message board (and to my personal email account) is related to cross-domain errors. Even with all these helpful ways around the issue, it is still preventing most people from getting started. I fear it would be even worse if I hadn't made the flxhr plugin for the readers of the book.


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 problem savswsoft BOOK: Professional XMPP Programming with JavaScript and jQuery 1 May 21st, 2010 01:26 AM
flXHR problem. unable to get started yaronfa BOOK: Professional XMPP Programming with JavaScript and jQuery 4 April 22nd, 2010 07:06 AM
flXHR question... msanders BOOK: Professional XMPP Programming with JavaScript and jQuery 2 March 10th, 2010 08:02 PM





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