javascript

Theme Switcher With PHP Variables In CSS

Theme Switcher With PHP Variables In CSS

January 20th, 2010

There are many theme switchers out there that do the job just great. Whether you change the theme via a server sided script like PHP or through Javascript most theme switchers do the job of changing the CSS file that styles your content.  But what if you want to just change a few of the styles on the page? What if you only want to have to update just one CSS file? Read the rest of this entry »

JSON: A Real World Example: Fill A Drop Down List

JSON: A Real World Example: Fill A Drop Down List

January 13th, 2010

In my previous article on a simple introduction to JSON I showed how to use JSON to post back to the server, do some calculations and respond with the results rendered in the browser.  In this example I will show you a real world example where you can select from a first option list and dynamically populate a second drop down list with items.

Read the rest of this entry »

View more or less content with jQuery

View more or less content with jQuery

August 22nd, 2009

jQuery can be easily used to manipulate the way that content is displayed on a page. Using unobtrusive javascript we can easily enhance a users experience if they have javascript enabled by allowing users to click to view more content.

Read the rest of this entry »