Javascript

Responsive Web Design

How to create responsive adsense code

Google’s program policies do not allow you to modify your Adsense code which artificially inflates ad performance or harms advertiser conversions. In most cases, you’ll want to copy paste the code exactly as you get from the generator. However, most sites today are going responsive and you’ll want to ensure that you use the correct size ads when your visitor is viewing your blog from a mobile device.

Advertisements

Fed up of IE6? Tell your visitors to upgrade with sevenup

I really liked Internet Explorer 7 and love Internet Explorer 8 (yes you Firefox lovers, I love FF as well 🙂 ). But, being a web designer since mid 2000, I’ve had the opportunity to design several sites for several browsers and it has always been a pain to support them all. One really really really really painful browser is the infamous Internet Explorer 6.

Dynamic JavaScript with PHP

Early this morning, I released Top 10 – A Page Counter and Popular Posts plugin for WordPress. I detailed my experience while designing this plugin. The major problem that I faced while working with this plugin was with WP Super Cache. WP Super Cache creates a static file of your post and displays this to the viewer. As a result, any PHP code that is present in your WordPress blog template is executed only once and the cached file is then served to your visitor.

The initial version of Top 10 used PHP to record the page views as well as display them and so using WP Super Cache ensured that both of these would never increment.

This is where JavaScript with PHP comes in. I ended up using AJAX to record the page views. However, for displaying the count I chose to do so by serving the PHP file as a JavaScript file.

Here’s how you go about it.

Read More »Dynamic JavaScript with PHP

Google Analytics Tracking Code Updated

And you don’t need to make the change. Christina explains the change: So why the change? Adding the try and catch to the snippet removes the possibility that your visitor sees a JavaScript message that doesn’t apply to her.

Firefox most vulnerable application of 2008

In a report released by Bit9, Firefox has topped the list of vulnerable applications with 10 vulnerabilities which could allow remote attackers to execute arbitrary code via buffer overflow,malformed URI links, documents, JavaScript and third party tools. Bit9 is an application whitelisting vendor that centrally controls which applications and devices are allowed to operate, thereby preventing malicious software and data leakage. The report lists 12 of the most vulnerable Windows applications which required end user intervention in patching the vulnerability.