a:2:{i:0;a:1:{s:4:"data";a:2:{s:7:"entries";a:10:{i:0;a:6:{s:5:"title";s:36:"Integrated Whole Site with Wordpress";s:4:"slug";s:36:"integrated-whole-site-with-wordpress";s:2:"id";s:3:"248";s:10:"typeHandle";s:4:"blog";s:4:"body";s:380:"

Last night, I finished integrating my entire site into Wordpress. It took a little while, but I’ve finally got all of my content migrated.

Of course if you are reading this in your feed reader, it’s going to say that all of the feeds are new…but they are not.

Hopefully soon I will write more about the process of powering a whole site with Wordpress.

";s:10:"bodyBlocks";a:0:{}}i:1;a:6:{s:5:"title";s:24:"Weekly Link Round-Up #14";s:4:"slug";s:23:"weekly-link-round-up-14";s:2:"id";s:3:"249";s:10:"typeHandle";s:4:"blog";s:4:"body";s:2006:"

Busy, busy weekend. I didn’t get a chance to write this on Friday, so I'll get right to it. This is what entertained me this week:

";s:10:"bodyBlocks";a:0:{}}i:2;a:6:{s:5:"title";s:24:"Weekly Link Round-Up #13";s:4:"slug";s:23:"weekly-link-round-up-13";s:2:"id";s:3:"250";s:10:"typeHandle";s:4:"blog";s:4:"body";s:2489:"

I cannot wait until Tuesday. I have been talking for about 2 years now about getting an Apple laptop, and I think the time has finally come. Depending on what is announced at MacWorld on Tuesday, I will most likely be ordering a brand spanking new Macbook on Wednesday. I'm so excited, that I feel like a little kid on Christmas.

Ok, well I guess here is the stuff that I found interesting this week.

";s:10:"bodyBlocks";a:0:{}}i:3;a:6:{s:5:"title";s:35:"Updated Dean Edwards’ IE7 Scripts";s:4:"slug";s:32:"updated-dean-edwards-ie7-scripts";s:2:"id";s:3:"251";s:10:"typeHandle";s:4:"blog";s:4:"body";s:3331:"

As I have noted in previous posts: Using Dean Edwards’ IE7 Script, The Ultimate PNG Guide, I am a big advocate of the Dean Edwards’ IE7 scripts.

Thankfully, Dean has improved them even more. Instead of having a ton of different JavaScript files with large file sizes, he has compressed them into two light-weight JavaScript files.

The are now two scripts, IE7.js and IE8.js, and they are hosted on Google Code. The IE7.js file “fixes” IE5 and IE6 so that it is up to par with IE7. Then, IE8.js adds in some additional functionality that is missing from IE7. Note: If you include IE8.js, you do not need to include IE7.js.

Usage

There are a couple of different options here, you can either download the files and place them on your server or link directly to the Google Code version.

Option 1: Download Files

  1. Download the ZIP file.
  2. Extract the IE7 folder to the root of your server.
  3. Include the script in the head of your document:

    <!--[if lt IE 7]>
    <script src="/ie7/IE8.js" type="text/javascript"></script>
    <![endif]--> 

    In this example, I am targeting all versions of Internet Explorer less than IE7, and applying the IE8 script to it. Or, you could apply the IE7 script instead, I just wanted the advanced CSS functionality.

    You could also set it so that it is applied in IE7 as well:

    <!--[if lte IE 7]>
    <script src="/ie7/IE8.js" type="text/javascript"></script>
    <![endif]--> 
  4. Open IE6 and enjoy some things not being broken.

Option 2: Link to Google Code Files

  1. Find the version of the file you want to use
  2. Copy the URL, ex: http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js
  3. Include the script in the head of your document:

    <!--[if lt IE 7]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js" type="text/javascript"></script>
    <![endif]--> 
  4. Smile, you just “fixed” IE6.

Hopefully that should get you started with what you need. My previous articles: Using Dean Edwards’ IE7 Script, The Ultimate PNG Guide have some other details about the previous version of the script, some of which still apply.

Let me know if you have questions.

";s:10:"bodyBlocks";a:0:{}}i:4;a:6:{s:5:"title";s:24:"Weekly Link Round-Up #12";s:4:"slug";s:23:"weekly-link-round-up-12";s:2:"id";s:3:"252";s:10:"typeHandle";s:4:"blog";s:4:"body";s:2728:"

I’m glad this week is over. You know, it really didn’t feel like a short week, I guess it’s because I worked on Monday. Well here are the interesting links I found:

";s:10:"bodyBlocks";a:0:{}}i:5;a:6:{s:5:"title";s:26:"Javascript, A Requirement?";s:4:"slug";s:24:"javascript-a-requirement";s:2:"id";s:3:"253";s:10:"typeHandle";s:4:"blog";s:4:"body";s:1823:"

I had to go to the FedEx website to track a package this week, and I was pretty disappointed. While, I was able to track my package, I was surprised to see that the little tracking box was built in Flash. You can see the exact box that I am talking about in the image that follows.

FedEx Tracking Screenshot

So I thought, whatever it’s done in Flash, I’m sure they have an HTML equivalent if someone does not have the Flash plugin installed or if they have Javascript disabled. Boy was I wrong…

Some Screenshots

Below is a screenshot of the page when Javascript is enabled:

FedEx Screenshot with Javascript Enabled

Now, here is what the page looks like when Javascript is disabled:

FedEx Screenshot with Javascript Enabled

Jesus, it looks like the page exploded. Not only does the tracking box go away, but the page looks completely awful.

I know, I know, you are saying, “but everyone has Javascript enabled and a Flash plugin installed”. Ah, I beg to differ, approximately 4% of users have Javascript disabled. Yeah that looks like a small number, but when you are huge company like FedEx, that turns out to be a lot of people.

Honestly, how hard is it to have an HTML alternative to the little Flash tracking box? A textbox and a button, how complicated!

It’s pathetic that huge companies are still making terrible decisions like this on their web site. When will they learn?

";s:10:"bodyBlocks";a:0:{}}i:6;a:6:{s:5:"title";s:24:"Weekly Link Round-Up #11";s:4:"slug";s:23:"weekly-link-round-up-11";s:2:"id";s:3:"254";s:10:"typeHandle";s:4:"blog";s:4:"body";s:1801:"

Well, I hope everyone had a nice holiday break. I only worked 2 days this week, and there weren’t many good links that I could find since most people were enjoying the holidays. I have finally recovered from my busy week at work, and I only have the last 15 days of 24 Ways to read. I think I’m going to cherish them though, since we have to wait a whole year for it again.

Anyways, these are the interesting links I found this week:

";s:10:"bodyBlocks";a:0:{}}i:7;a:6:{s:5:"title";s:22:"The Ultimate PNG Guide";s:4:"slug";s:22:"the-ultimate-png-guide";s:2:"id";s:3:"255";s:10:"typeHandle";s:4:"blog";s:4:"body";s:3478:"

I would say one of the coolest things in web development/design is the creative use of PNGs. Although, it’s a little hard because of the way that IE6 handles them.

I have already written about Using Dean Edwards’ IE7 Script, but I wanted to take it a step further and talk more about PNGs.

To Review

First, download the Dean Edwards script. Next, extract the files to the root of your webserver in a folder called ie7. It needs to be in this folder, because some of the scripts have a dependency on the folder.

Finally, just include the script in the head of your document using conditional comments:

<!--[if lt IE 7]>
<script src="/ie7/ie7-standard-p.js" type="text/javascript"></script>
<![endif]--> 

Ok, so now when you want to have the script “fix” the PNG in IE6, you just have to have -trans.png as the suffix of the filename of the image.

An Example

Now, I am no designer, but I have mocked-up a simple page to show some usage of PNGs.

Since the background on the body is the repeated diagonal lines, we cannot use a GIF for the rounded corners, because we aren’t sure where the corners will intersect with the lines on the bottom.

In an ideal world, this is how I would want to mark the page up.

But, in IE6, the PNGs have a blue glow around them. So if we apply the Dean Edwards scripts to the page, we see the bottom image disappears (keep in mind you have to be looking in IE6 to see this problem). This is because the script is applying the IE proprietary filter property, and once this applied, we cannot position or repeat a PNG.

So let’s change the way we are marking it up so that the bottom shows up in IE6. Basically, we have just added an empty div that contains the bottom background PNG.

Now we just have to worry about the repeated background of our main content area. In order to get rid of the blue glow, we have to apply IE’s filter property, which means that we can't repeat it.

But, if we apply the filter property manually and change the sizingMethod to scale, we can give the effect of repeating the background.

div#container div.inner {
 background-image: url(blank.gif);
 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='/images/content/2008/01/container-bg.png', sizingMethod='scale');

Basically, it’s just stretching the image to fit the area, but since it’s a simple image that we were going to repeat anyways, it looks fine stretched.

In Conclusion

Hopefully using a combination of these two PNG fixes can provide you with enough to get things looking good in all browsers.

Anyone have any other solutions?

";s:10:"bodyBlocks";a:0:{}}i:8;a:6:{s:5:"title";s:24:"Weekly Link Round-Up #10";s:4:"slug";s:23:"weekly-link-round-up-10";s:2:"id";s:3:"256";s:10:"typeHandle";s:4:"blog";s:4:"body";s:3115:"

Damn I have been busy!

So I missed a week of the weekly link round-up. Last weekend I had 2 holiday parties to go to, football to watch, and Christmas presents to buy. Not only that, but I have been extremely busy with freelance work and work at my full time job. So busy that I had well over 200 feeds to read! So after a quick skim of my feeds, this is what I found link worthy in the past 2 weeks.

Stay tuned for The Ultimate PNG Guide coming sometime next week.

";s:10:"bodyBlocks";a:0:{}}i:9;a:6:{s:5:"title";s:23:"Weekly Link Round-Up #9";s:4:"slug";s:22:"weekly-link-round-up-9";s:2:"id";s:3:"257";s:10:"typeHandle";s:4:"blog";s:4:"body";s:1541:"

Yeah, so I didn’t get a chance to post last night because I was at the Wizards game.

I’ve still got some clean-up to do on the redesign, which I hope to take care of this weekend. Here is what I found interesting this week.

";s:10:"bodyBlocks";a:0:{}}}s:5:"total";i:270;}}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";a:4:{i:0;s:7:"element";i:1;s:29:"element::craft\elements\Entry";i:2;s:40:"element::craft\elements\Entry::section:4";i:3;s:7:"graphql";}s:4:"data";a:4:{s:40:"CraftCMSce35088bdfe0816226cd17fd051a4803";s:21:"0.70573500 1736501960";s:40:"CraftCMS2743a789e8993267a348eee1ee7e4450";s:21:"0.67537500 1713205687";s:40:"CraftCMS2ac34726f299f7e18e449d8e536c67f8";s:21:"0.84529700 1741778847";s:40:"CraftCMS3817d4a648fcfac939af46605323feb0";s:21:"0.36746500 1735923287";}s:8:"reusable";b:0;}}