AJAX - The Complete Reference

(avery) #1

PART III


Chapter 10: Web Services and Beyond 523


Some have argued this UI quirk is a good thing because it lets the user know they have
a connection, but we think that is an overly optimistic view of how users will interpret that
indicator.
Finally, we note that if we let the example run for a while, the browser’s memory foot
print will grow and grow.

The long slow load may have its issues, but it does work. Give it a try yourself at
http://ajaxref.com/ch10/endlessiframe.html.

Binary Socket Bridget

When Ajax needs a little help from its friends, embedded binaries like Flash or Java can be
tapped. We saw early in the chapter when crossing the same origin barrier that Flash often
has capabilities that native JavaScript lacks. Now, when trying to solve the real-time
problem, we see that Flash offers us the possibility of TCP socket-based communication,
which will provide true continuous connection two-way messaging. So Flash will act as
Free download pdf