One of my favourite changelogs in Firefox

I cannot say what I found in Firefox 4 aren't cool enough but they're awesome. Because of those, I cannot write that much coding for my projects when I push my clients to use Firefox 4 as our project default browser. Don't look at those new changelogs first. Just look GUI of Firefox4. I can feel it's cool because they can screw the layout of menu toolbar and the obvious button for previous browsing history. Another one is saving password. I can obviously see the message box after I typing password into my blog, email or etc.

Ok, here is one of my changelogs of Firefox4 for me.

  • Javascript Alert Box
  • Javascript Prompt Box
  • Javascript Confirm Box

[More]

Your Ad Here

To save data into localStorage when Offline

Today I've found how to save the information of your data when offline (when your internet connection is disconnect). That's same as when Google email work. It's very useful to use because our submitted data is sometimes lost when our connection is disconnect or offline. Using this feature in HTML5 can prevent these bad situation. The important part is we need to check whether our browser can support "localStorage" or not. If not support, cannot develop anymore. If support, let's go.

First of all, we need to create manifest file for "localStorage". It's the main part to let browser know our application will be using "localStorage". So, we need to add all of files name we will be using into this manifest file as follow. Current my simple application, I've used 2 files called index.html and lc.js. So, I need to add as follow

view plain print about
1CACHE MANIFEST
2index.html
3lc.js

Now I need to let our clients know he/she is now online or office with following javascript.

view plain print about
1navigator.onLine ? "online" :"offline"

After that, I need to create index.html file. As HTML5 standard, I need to follow the rule of HTML5.

view plain print about
1<!DOCTYPE HTML>
2<html manifest="/loc.manifest">

[More]

Embedding windows media player WMV

I'm now creating misspeople2008 section for www.people.com.mm. In these days, I need to do one video file into index page. First of all, I was thinking about how about embed flv player into my site. But, it's problem that my server hasn't installed Flash Player Server. That's why I decided to use with window media player. Blow is coding how to embed Video Player in HTML Page.

view plain print about
1<invalidTag
2     id="MediaPlayer"
3    width=253
4    height=204
5    classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
6    standby="Loading Windows Media Player components..."
7    type="application/x-oleobject"
8    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

9     <param name="filename" value="URL File">
10     <param name="Showcontrols" value="True">
11     <param name="autoStart" value="True">
12     <invalidTag
13         type="application/x-mplayer2"
14        src="URL File"
15        name="MediaPlayer"
16        width=253
17        height=204>
</embed>
18 </object>

How? It's easy, isn't it?

Remove spacing in textarea

It's simple problem for web developers. Sometimes, such problem make us to stop our progress by finding how to solve these problems. This problem is, when we cursor in our textarea box, this cursor isn't arrived to left align, it stays at center or somewhere else when we create our textarea box as so:

view plain print about
1<textarea name="mytextarea">
2Here is Value....
3</textarea>
But, how to solve this problem is kinda simple. Just do so.
view plain print about
1<textarea>Here is value</textarea>
How? It's simple, isn't it?

Want to make fake website for fun?

In these days, I got free spare time to surf websites. That's why I was surfing here and there. Oddly, I've found one website support us to make fake website for fun.

  • Open the website what you want to fake (ex: http://www.google.com)
  • copy this message, javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 into address bar (URL) and press Enter.
  • So, you can see this website as in rich-text editor.

How to Embed MP3 Audio Files In Web Pages

I'm not kinda happy in these days. Because my server is spontaneously crushed whenever visiting users are building up. I feel it might be because of stream section of our website called "Music Portal". As we all know, all of over people away from mother land miss the sounds of our native land such as music, movies, articles and so on. That's why 70% of our customers are listening songs from our websites make our server to be in crush. Being developers of site, I gotta solve this problem and prevent not to crush our server again.

I embed window media player for listening songs from our site. How about flash media player instead of window media player? Embed flash media player in website can reduce bandwidth? I'm in delimma in such questions. So, I try seeking embed flash media player in Google. Fortunately, I've found this website providing developers to putting flash media player in their websites. It's kinda cool and I've embed it in our website already. The one I need is to compare server load is going as usual or gradually decreased.

Best Credit to : http://www.labnol.org/internet/design/html-embed-mp3-songs-podcasts-music-in-blogs-websites/2232/

Top of Page