Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 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.
 


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 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



All times are GMT -4. The time now is 11:29 AM.


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