Pages

Thursday, August 18, 2011

Center a new popup window even on dualscreen with javascript

function PopupCenter(url, title, w, h) {
    // Fixes dual-screen position                         Most browsers      Firefox
    var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
    var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
            
    width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
    height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
            
    var left = ((width / 2) - (w / 2)) + dualScreenLeft;
    var top = ((height / 2) - (h / 2)) + dualScreenTop;
    var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);

    // Puts focus on the newWindow
    if (window.focus) {
        newWindow.focus();
    }
}

Wednesday, January 19, 2011

Viber app - Free calls/sms on your mobile phone

This app allows you to call "free" to any other viber users - you need a data package, but who haven't got one ;)

The app will come for Android soon, and another great upcoming feature is the free sms app, you can see much more on: http://www.viber.com/

I can't wait to get it on my Android phone, if you have tried the product, pleas leave a comment, pros/cons?

Update: It is finally here, I have just testet texting and calling, this could get big!

Thursday, January 13, 2011

Welcome to my new blog!

I've decided to convert my dotnetblogengine to a blogspot blog, and I have bought a new name for the blog, in the same process.

The reason I bought a new domain name, is because i wanted something shorter, and i was able to make it quite short and with my initials in it TF, the x represents the unknown parameter.

Why i choose blogspot is because nearly all my other products is google, and they work very well together, so it was a natural choice, another selling point was that I don't have to "mange" my own application anymore.

The blog is far from done yet! ..I will give it a new design soon, and much more to come. I will also start blogging a bit more again, the reason why i haven't blogged this much recently, is because I was very tired of the "trouble" I had to go to, just to write a blog.

All posts older than this, is directly imported from my old blog frostyzone.net.