Change Setting To Open New Tab Instead Of New Window In Safari In Mac OS

safari_iconI have never been an avid fan of Safari because the browser stinks. But after I checked out Safari 4, I noticed its speed and how it handles its resources basing on the performance when I use the browser to surf sites. Even until now though, they still do not provide the option to set Safari to open sites in a new tab instead of a new window.

I know, pretty annoying right? You are doing something, then once you click on a link, all of a sudden a new window pops up instead of a new tab. What is the point in producing a tabbed browser if this option is not provided. For Mac OS users, there is a way to do this but it is not within the browser.

You would have to open the Terminal program located in Applications > Utilities and type the following and press enter.

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

That is all. Restart your Safari and you should be getting those new tabs that you so desire.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Beware The Wordpress White Screen Of Death

wordpressI did try to upgrade my Wordpress to version 2.8 from 2.7. Twice, I could not understand why when I go to my dashboard, the page is just all blank. I quickly cancelled the 2.8 installation and reverted back to version 2.7. Today, when I tried again, I was forced to search for some answers because I got hit by the white screen of death again. I actually did a backup of the database first so I was confident that nothing would go wrong this time. Turns out I was given another problem, the posts did not appear in the blog when I tried to import the backup SQL file to a different blog site.

It seems that in version 2.8, the Wordpress database tables have been renamed like from posts to wp_posts. Still, the white screen of death was a bigger problem for me because I had no idea why. After some searching, the cause of this problem is because some plugins are not compatible with version 2.8. Since your dashboard is now all blank, the only way for you to reset your plugins would be to rename your plugins folder to something else and create a plugins folder. That way, you can see your dashboard again. You can slowly transfer your plugins 1 by 1 and see which one is making it incompatible.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...

Loading Content Of Page Using AJAX

You can load the contents of a page inside an HTML layer element using AJAX with this function. The url parameter can accept querystrings of dynamic pages.

function get_content(url, div_id) {
  var req;
  if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLHTTP");
  }
 
  if (req != undefined) {
    req.onreadystatechange = function() {
      if (req.readyState == 4) { // only if req is "loaded"
        if (req.status == 200) { // only if "OK"
          document.getElementById(div_id).innerHTML = req.responseText;
	}
      }
    };
 
    req.open("GET", url, true);
    req.send("");
  }
}

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

tags:

1 Comment