Prev | Current Page 113 | Next

Larry Ullman

"Building a Web Site with Ajax: Visual QuickProject Guide"


??? Ajax pages cannot be bookmarked,
recorded in the browser??™s
history, or listed in search
engines because the changes
aren??™t refl ected in a URL. By
taking some extra steps, it??™s possible
to overcome some of these
limitations. Search the Web for
techniques.
??? It??™s important to give obvious
clues to the user when something
is happening or has happened. In
this book, I use an overt formatting
of Ajax results to make the
changes apparent.
introducing JSON p. 132??“133
??? The biggest concern with using
JSON is that there are some
security risks involved. The
eval() function actually runs
the received text as JavaScript
code, meaning that the Ajax process
could be hacked if the data
could be manipulated. Search the
Web for more on this subject and
for possible safeguards.
??? Another issue with JSON is that
the syntax is very, very particular,
much more so than XML.
Using a library to create the
JSON data will give more reliable
results.
sending JSON p. 134??“135
??? Instead of trying to create the
exact JSON syntax programmatically,
I think it??™s best to use an
external library that will do this
for you.


Pages:
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125