1. Trang chủ
  2. » Công Nghệ Thông Tin

createspace publishing wordpress and ajax, an in-depth guide on using ajax with wordpress (2010)

298 321 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 298
Dung lượng 9,52 MB

Nội dung

[...]... thank Vivien Anayian for the inspiration behind Ajax Edit Comments, which consequently started me with Ajax and WordPress I’d also like to thank Ajay D’souza and Mark Ghosh Both have helped me tremendously along my WordPress journey Finally, I’d like to thank the folks at Automattic and the contributors behind WordPress Introduction 16 How About a Little Ajax? I’m rather biased when it comes to Ajax. .. sending and receiving requests) Client-side Event Occurs Client-side Processing Server-side Send Ajax Request Server-side Processing Process Response Send Ajax Response Output Results Figure 1 Ajax Process Now implementing Ajax, and implementing it well, is another story So let’s read on 24 WordPress and Ajax Ajax Best Practices As with any technology, Ajax can easily be abused I’ve seen too many sites... foundation for using Ajax with WordPress After the foundation has been laid, you will be walked through several real-world examples By the end of the book, you should not only have a thorough understanding of Ajax, but how Ajax functions within WordPress itself The code examples I present are from my own (sometimes painful) experiences with using Ajax I’ve cried I’ve bled And I hope to share my agony (err,... as if we’re going on a journey together to achieve Ajax nirvana So what are you waiting for? Let’s begin 20 WordPress and Ajax Chapter 1 What is Ajax? 22 What is Ajax? First things first What the heck is Ajax anyways besides a lovely acronym (Asynchronous JavaScript and XML)? It’s definitely not a common household cleaner (at least, not on the Internet) Let’s just say that Ajax consists of a bunch... Texas home His education includes a Master’s in Business Administration and a degree in Electronics Engineering Technology When he’s not killing trees or reindeer, he blogs at his personal site, ronalfy.com Credits and Thanks First, I would like to thank my family, friends, and God for getting me through a very tough per- WordPress and Ajax Acknowledgments 13 sonal situation in 2009 Without them, this... user hits the back button or refreshes, then what? He has to start all over from scratch (and he’s about to call the Internet troll on you) • Loading content on websites Ever been to one of those sites that load the content when you 26 WordPress and Ajax click on a button or drop-down menu option? Not good There’s no back button functionality, no way to bookmark the content, and if you refresh, you’re... many sites that depend on Ajax for navigation or to access crucial and/ or critical content without alternatives From my perspective, Ajax should be absolutely transparent and unobtrusive to the user I’m thinking of Flickr and Netflix when I say this Both sites mentioned use Ajax to add to the user experience, rather than detract from it When you click on that caption or description, or leave that star... cover) • Using Ajax upon a page load This last one is more of a guideline as there are many exceptions Notable exceptions include scripts that track statistics and would like to avoid caching plugins If you are implementing an Ajax process and the project delves into the realm of faking browser history and remembering user states, then Ajax is likely not the ideal solution Remember, keep Ajax simple... Validation 282 Creating the User 287 Sending the Response 288 Ajax Registration Form Conclusion 289 257 Now You Begin Your Own Journey������������������291 Acknowledgments 12 About Ronald Huereca - Author People describe Ronald as a highly opinionated (and sometimes funny) writer He’s worked with WordPress since 2006 and has released several WordPress plugins, his most popular being Ajax Edit Comments Ronald... to keep browsing and isn’t interrupted • Allow quick editing of options Observe how easy it is to edit captions and descriptions in Flickr • Allow quick functionality without a page refresh I’m thinking of WordPress use of comment moderation functions that allow you to stay on the same page without having to refresh And here are some bad examples: • Providing multi-page Ajax operations If the user . to be. WORDPRESS & AJAX An in-depth guide on using Ajax with WordPress RONALD HUERECA cover & book design by Vivien Anayian WordPress and Ajax - 2nd Edition Copyright © 2010 by Ronald. Your eme 95 Conclusion for Properly Formatting jQuery for WordPress 96 Chapter 8 Nonces and the Escape API 97 WordPress Nonces 98 Nonces and Forms 101 Nonces and URLs 104 Nonces and Ajax 106 e. blog to a WordPress Multisite network with thousands of sites to a Bud- dyPress site with thousands of members. WPCandy WPCandy is an unofficial community of WordPress users and pro- fessionals. ey

Ngày đăng: 27/03/2014, 13:35