Prev | Current Page 516 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

If search engine optimization
is important for your web site, you shouldn??™t use AJAX for content delivery and navigation.
In our case, we don??™t want search engines to index the shopping cart page or the
cart summary box, so we??™re not affected by this limitation.
??? It can cause impaired browser bookmarking and page navigation: Typically AJAX applications
run inside a web page whose URL doesn??™t change in response to user actions, in
which case you can bookmark only the entry page. The Back and Forward buttons in
browsers don??™t produce the same result as with classic web sites, unless your AJAX
application is specifically programmed to do so. To enable AJAX page bookmarking and
the Back and Forward browser buttons, you can use frameworks such as Really Simple
History by Brad Neuberg (http://codinginparadise.org/projects/dhtml_history/
README.html). This framework enables bookmarking by dynamically adding page anchors
using your JavaScript code, such as in http://www.example.com/my-ajax-app.html#Page2.
You also need to create supporting code that loads and saves the state of your application
through the anchor parameter. However, supporting bookmaking and navigation
this way adds a significant level of complexity to your code that increases the chances
of errors and browser compatibility problems.
CHAPTER 13 ?–  IMPLEMENTING AJAX FEATURES 411
With these warnings out of the way, it??™s time to start updating TShirtShop with the new
AJAX features.


Pages:
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
kratki ściekowe Pozycjonowanie strony Apart sem