Month: April 2013

What’s the deal with Silverlight?

What’s the deal with Silverlight?

Most people in the development community have conceded that Microsoft is no longer putting any energy into Silverlight. And why should they? There isn’t a tablet or phone that will support the technology. Even desktop support is getting spotty with many support issues on Macs running the latest versions of Firefox and Safari.

I get why Microsoft is has given up on the technology, but it’s quite a shame. To develop a cross-browser saas application is not trivial using html and css. Silverlight makes development easy. It allows a developer to code the application just like it’s a desktop application without having to code in javascript and css.

If the web moves forward with html5 and leaves behind third party plug ins, the browser consumers are going to lose out. I don’t think we will get back to the same responsiveness and overall great experience until we hit html6. So will that be IE 17, Firefox 45, and Chrome version 89? I’m just being humorous about html6, but I’m serious when I say that I will miss Silverlight on the web.

I will move forward and get on whatever web bandwagon I need to get on. But I’m sad that other companies (Apple) are dictating what technologies we can use on the web.

Solving the document domain

Solving the document domain

I recently ran across an issue where a web page in a separate web site was trying to communicate with a web page on another site, through javascript. It was trying to do a window.parent.parent.somefunction call and was failing with an access denied script error. The site is full of Iframes, with asp.net embedding classic asp. Fun stuff!

The last few browser updates have locked down on javascript cross-site communication. The solution is to set the document.domain to equal values. The key is to have both sites sit on the same sub domain. Example site names and how they need to be set in script:

Site 1: tiger.surfdew.com
Site 2: woods.surdew.com

In your javascript you’ll need to set the document.domain to surfdew.com on each page, in each site, that interacts with each other.

If your users are on IE, have them add your site to their trusted sites. There is also an IE setting to allow cross site scripting. Just setting this to enabled didn’t solve the problem with my scripts, so I’m not sure how effective it is.

Taking Asia in Risk

Taking Asia in Risk

I was playing Risk on Xbox a few days ago, and one of the people I was playing went to for Asia, and held it for 2 turns. It only took him 4 turns to take the continent. It was amazing because we had 5 players. Most of the time you see players battling for Australia and South America. Asia is always an after thought at best.

I didn’t stick around to see who won the game. I was taken out by another player.