Local fallback jQuery (with a twist of Joomla)

It’s been a while since the last post, but here were go again anyway! Today there was a small problem with OpenDNS whereby anyone using their service would find that Google’s content delivery network was blocked as a phishing site.

Oh well you say, but Google’s CDN hosts jQuery and have a look at how many sites use this hosted version….

Read more of this post

2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A New York City subway train holds 1,200 people. This blog was viewed about 4,000 times in 2011. If it were a NYC subway train, it would take about 3 trips to carry that many people.

Click here to see the complete report.

XML dateTime and PHP

Today I had to grapple with a Sage based web service and I discovered that XML dateTime formats can give you a large headache

Read more of this post

The height(); of bad manners

Hello there, to quote Alec Guiness, today i’ve found yet another jQuery inconsistency that needs to be made note of! It would seem that certain version of IE (looks like 8 and 9) along with Opera don’t officially support the jQuery height() function.

Read more of this post

HTML over Flash

Well it’s been a while since the last post but that doesn’t mean the quality has gone down! Today I needed to show a normal HTML anchor tag, a close button, but over the top of some flash content. Now this works fine in firefox, just create the anchor and move it over the flash. However to get this to work in other browsers you need to make some changes to your embedded flash object; in that you need to change its window mode to transparent. This allows HTML to appear over the top. Here is an example embed tag:

<object height="550" width="960">
<param name="movie" value="/path/to/your/file.swf">
<param name="wmode" value="transparent" />
embed src="/path/to/your/file.swf"  height="550" width="960" wmode="transparent" />
</object>

As you can see i’ve added a <param> tag with the wmode transparent values and I’ve added wmode="transparent" to the tag itself. Also I’ve intentionally missed the start tag on the embed line; if i put it back in WordPress will strip the tag out!

Now I shall continue as normal and avoid Flash like the plague!

Add to Joomla message queue

Joomla has an internal message system, which queues up pieces of information to relay back to user. You can push messages to the end of this queue very simply

Read more of this post

Get Joomla template name

How do you get the name of the current template on joomla?

Read more of this post

Follow

Get every new post delivered to your Inbox.