Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress 3.0 jQuery

You're reading from   WordPress 3.0 jQuery Enhance your WordPress website with the captivating effects of jQuery.

Arrow left icon
Product type Paperback
Published in Sep 2010
Publisher Packt
ISBN-13 9781849511742
Length 316 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Wordpress 3.0 jQuery
Credits
About the Author
About the Reviewer
1. Preface
1. Getting Started: WordPress and jQuery FREE CHAPTER 2. Working with jQuery in WordPress 3. Digging Deeper: Understanding jQuery and WordPress Together 4. Doing a Lot More with Less: Making Use of Plugins for Both jQuery and WordPress 5. jQuery Animation within WordPress 6. WordPress and jQuery's UI 7. AJAX with jQuery and WordPress 8. Tips and Tricks for Working with jQuery and WordPress Appendix: jQuery and WordPress Reference Guide

Project: Ajax-izing the built-in comment form


From the working samples we've done so far with .load and .getJSON, you can probably think of many extremely cool ways to implement AJAX in your WordPress site. The most useful application of this is the comment form.

First up, we don't even need to amend any template page HTML or WordPress Template Tag, PHP code. This is great as again, as often as possible (all the time really) we always want our site to work without the jQuery enhancement.

Ajaxing the WordPress comment form is deceptively simple. And for you "premium" theme developers, it's a great way to entice people to download your theme: "Built in AJAX comments!". It is something that we'd like full control over, so we'll be using the .ajax() function instead of .load (see, I told you .ajax would come in handy every now and then).

First off, in experimenting with the comment form, we'll be wanting to change its CSS properties to alert users to errors. I've found it's just better to set...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image