Tag Archives: JavaScript
Behind the Websites: JavaScript the WordPress Way / Part 2
June 4, 2010
In Part 1 we introduced the wp_register_script
and wp_enqueue_script
functions developed to avoid JavaScript conflicts.
In this section we’ll deal with a more complicated example. We’ll also take what we’ve learnt about including JavaScript and apply it to our CSS.
Tags: coding, CSS, JavaScript, plugin, theme, WordPress, wp_enqueue_script, wp_enqueue_style, wp_register_script, wp_register_style
Behind the Websites: JavaScript the WordPress Way / Part 1
June 3, 2010
Problems arise when your theme or plugin both use the same JavaScript library or if Prototype and jQuery are both used on the same site.
Two of the most important WordPress functions are often ignored by WordPress theme and plugin developers. Introducing: wp_register_script
and wp_enqueue_script
.
Tags: coding, JavaScript, plugin, theme, WordPress, wp_enqueue_script, wp_register_script
Behind the Websites: Charging for themes? Do the right thing!
November 12, 2009
Of all the Wordpress functions, I think wp_register_script, wp_register_style, wp_enqueue_script, and, wp_enqueue_style are the most elegant.
Tags: CSS, JavaScript, rants, themes, WordPress
Behind the Websites: Caching on the Google AJAX Libraries API
January 16, 2009
Using the Google Ajax Libraries API, there are several options for specifying the version numbers of the library you wish to use, for example, three URLs point to the latest version of jQuery.
Tags: AJAX, caching, google, JavaScript, jQuery
Behind the Websites: JavaScript Equal Height Columns
December 24, 2008
The desire for equal height columns in a CSS layout is nothing new; there are many solutions available, some use JavaScript, others use CSS with negative margins, and then, there’s the faux columns method using background images. All of these methods have their place as perfectly valid solutions, and, depending on the situation, may be the best solution available.
Tags: CSS, JavaScript, layout
Behind the Websites: Base JavaScript File
December 8, 2008
Upcoming posts on JavaScript will include references to functions in my base JavaScript file; rather than explain these functions each time, they?ll be detailed in this post for future reference.
Tags: JavaScript
Behind the Websites: Including WordPress’s comment-reply.js (the right way)
August 14, 2009
Since threaded comments were enabled in Wordpress 2.7, most themes check if the visitor is browsing either a page or a post and adds the JavaScript required for threaded comments if they are.
I prefer a slight variation
Tags: comments, JavaScript, threaded comments, WordPress