Pman's Lab

Welcome to my lab.

A demonstration of what I work on during spare time. Visit the my Lab page to see what I have done so far.

An Image from Bangladesh

Tab Browser

Hi there. After seeing the new Yahoo! mail interface, I wanted to create tab browsing within a web page. I'll be trying to create the same effect, which will look something like Firefox's tab browsing technique.

Use of this technique

Why create tabs when we have this built into Firefox, and in new IE? Well, you can be as creative as you like, but if used properly, this interface will be very useful. For example, if you have links outside your site, then you can use this tab effect to keep the user in to your site by loading those links into the tabs. Yes, you could simply open the link in a new window, which the browser can open in a new tab, but, it'll be helpful for the users too becasue they won't have a lot of tabs open in the same window. Also, this could be used for making web applications or changing user profile or user preference settings.

Solutions

After thinking about it for a while, I realized that there's two ways of doing it. One is using html frames and the other is AJAX. Even though I personally don't like frames, I'll be using this first, because frames are easier than AJAX.

Some Problems

Although I wanted to do this in two different ways, one is using Frames and the other is using AJAX, later, I realized that AJAX can't be used since javascript can't access files in different domains. If the links are referring to the same domain, only then we can use AJAX to get the same result. For now, I did the iFrame version, which can load any web pages. I'll probably try to use AJAX later and improve it more, cause in the frame version, I had some problems with the javascript function since I also wanted to do it in object oriented way.