Skip to main content

Posts

Showing posts from 2008

Show an animated gif onClientClick

To show an animated gif, something like loading onClientClick is a simple task. You just have to add a JavaScript function on the click event so the JS function will take care until the next page loads from the server. Inside the JS function we just have to hide the excising div and show the div which contains animated loading gif. I have done it and it works fine on every other browser except IE. On IE the gif is shown but it is not animated. I have to do some R&D and what I found was IE doesn't do anything like that when it is loading another page (communicating with server) and was commented as a feature limitation of IE. But there should be a way to do that, that's what I was thinking and I found a pretty simple way to do that. Here it is and if you have a better way please share it here. <div id="divProgress" runat="server">   </div> <div id="Div1" runat="server"> The web form comes here … </div>   The J

Disable Back & RegEx Validation: JS

Disable Back on Browser: JavaScript I know disabling back button of a browser may cause usability issue. I have identified on some occasions we have to do it (what’s if client needs it). I have found some ways to do that but I preferred using a simple JavaScript. Here is the code. < script type ="text/javascript" > < !-- window.history.forward(1); //--> < / script > This should be put on the previous page to the page you wish to disable the back. This code will redirect user to the same page if he click back button. Regular expression validation on JavaScript I know it is very much easy to validate something on JavaScript by using Regular expressions but it is hard for me to remember the syntax to do it. I’m posting this for me to get when it is needed. J Here is the Code. < script type ="text/javascript" > < !-- function validateDate(source, clientside_arguments) {

Tips and Tricks on Blogging

Some of my friends who maintain blogs asked me what I am doing to maintain a blog. So I thought of writing a posting will be helpful than answering all the questions individually. I will list down almost all the tips and tricks that I can remember so far. Content : - When I am reading on how to make a good blog all the guys say that you should give good content (postings). How to write good content is the problem I face. What I am doing is I writing what I feel that hard to find using Google or if I found some new way or if I simply do something then I will write about that. And the main concern is to write more than 200 words on a posting otherwise Google will ignore it. More on boost blog traffic . Customizing the theme : - A blog theme should be customized. It is like a theory. Otherwise it will look like a same ordinary blog. The user who comes to read your blog should feel that you are out of (extra) ordinary. You can easily find some good themes by just searching on Google. More

What I visit most of the time

I was just thinking about what are the sites I’m visiting most of the time. So I thought to write something about them. I think a person can be understood better by the sites he is reading and visiting most of the time. So I think you can know more about me when I share my favorite list. Google : The best search engine I have ever used. It helps me a lot on finding almost anything. It helps me a lot. I don’t have to talk about this because anybody who reads this blog knows about Google. Yahoo mail : Yahoo mail is the mail I am using. There are 2 reasons for that. First it is free. Second no storage limit. FaceBook : Most of the time what I am doing in here is accepting friends and looking at the photos posted by friends. (normally I visit almost all the photos of the friends) DefenceWire (blog): This is a blog which posts about the current status of the war in Sri Lanka . There are a lot of comments so the time is spent more on reading

User Controls vs. Custom Controls

The first thing I have to do in here is to apologise for not posting something on this blog for a long time. Yes it was really a long time without any posting. There were some reasons for that like I had to go abroad (still I am at Canada, and it is a big experience). So I was new in here had lot of work to do. Anyway I hope to post regularly now onwards.  I have been on 2 projects in here (web applications). On one project it was designed to do by using more “User Controls” and the other one was using “Custom Controls” so first of all I was pretty confused with mixing these two approaches. In my mind I was like in a war to identify what is the better approach and thought to write about those a little. User Controls  Basically a User Control is like a normal aspx page only different I can see is the file extension is as ascx . We can make a user control and it has a code behind also. We can just build this as a web page and treat it as a normal web page on aspx. So we can have pro

How to use Google

I have seen a lot of my friends are using Google to find out the things. But I felt sometimes that they are not using the proper way to do that. So it takes a lot more time and lot more reading to find actually what we want. So I thought to find how to make our search better. I have found 2 sites that tell about that in more detailed. First is Google Search Help Center . It talks about the keywords that we can use with Google. I thing spending some time on this site will save a lot of time. Next is Google Guide . It tells you a lot more on search. Whether you are an expert or novice it doesn't matter on this site. I think even an expert can learn something in here. So I hope after referring these sites your ability on searching on Google will increase. And you will learn what Google can do. (It is lot more than just a search engine)  

How to get indexed by Google & Yahoo

I have seen a lot of ads and services online that provide the facility to get higher page ranks on search engines. But when I asked about those services on Google their respond was not much positive because they said it can decrease you page rank (because those services cannot be trusted always). It is happening because the page rank is depending on page visitors (as Google say). So the better way is to let the Google to index your site by sending them the address of your website. http://www.google.com/webmasters/ : here you can improve the traffic with the webmaster tools and you can send your website contents also. It is a legal, simple and direct hit. You can send your web site address (even the blog) to Yahoo: https://siteexplorer.search.yahoo.com also. It helps them to index your pages on their search engines. It is better to come up with the content and services which are really useful for the visitors and the traffic will be increased regularly. I have gone through a lot of e

Online photo editing tool

There are plenty of tools for editing photos and a lot more which we can do the same online. I think among the desktop tools "Adobe Photoshop" is a good on image editing. I have found a site that I felt it is similar to Photoshop but online (seems it is using flash). And it allows us to get the images from websites and local machine to edit and to save on local machine or on image sharing services (like flickr). I have shown a screen shot of that web site and here is the URL of it. http://www.splashup.com I think this is a good tool for using when we do not have installed Photoshop on our machine. If you have known any better tools online please do share it.

FlashGet – a free Download Manager

I have used so many download accelerators and download managers but this is the first time I have found a good download manager for free (so no need to find the cracks) . Currently I am using it for downloads and so far it seems good and here I have listed the features of the FlashGet. Optimized - will run with low system resources. Call anti-virus - It will execute the antivirus software after downloading a file. 100% clean - there are no ads were displayed on FlashGet so full strength will be used for download. Speed - They say it is speed but it depends on your connection Multi-protocol – supports HTTP and FTP File management – it does the categorization Add-ons and Themes are also available You can download FlashGet by just click here . If you are already using FlashGet and have better experience or if there are any drawbacks please share it with us. Or if there are a better Download Manager please share it also.

Working with forms inside iframes

I was requested to do some work with forms using the iframes on a web page and it was needed to do a lot of Googling and thought to share those things. 1. Display a form on the main page and when the form is submitted the results should be shown on an iframe on the same page. a. This task was pretty simple and what I had to do is give the same page as the action page of the form. b. If the form data is defined on the page I had to show the iframe.When showing the iframe I had to give all the form data as query parameters on the URL of the iframe. c. Then the resulting page was displayed correctly inside the iframe. 2. Then the resulting page which was inside the iframe was also a web form and it has to be submitted on the event of a button click which was on the main page. a. For the button click event we have to fire a JavaScript function. b. On that JavaScript function we can do the submission as follows. c. This will be doing the submission and we have to redire

Future features in Blogger

The draft.blogger.com is seems like the beta version of new features of blogger.com . And we can try the "to be added" gadgets and features of blogger on "draft". And I think it is a good thing for both of us. You can visit their blog on bloggerindraft.blogspot.com and try the future features of blogger. I have tried some of them and they are really good. Blog List - a blogroll to your blog's sidebar Scheduled Post Publishing - schedule the post to appear on your blog Feed Subscription - Help your readers subscribe Search Box - Search over your blog and more The last feature in here the Search box is the best thing I have experienced among the others. It is a AJAX control and works really good and I hope you all (the bloggers) will love to try them up.

I signed up for PPP!

I signed up for a site called PPP (pay per post) and seem they are really nice for bloggers to earn money. The basic thing in here is we have to write on something (which they say) and they are ready to pay for your post. It is pretty easy to sign up on them. Please follow the link here. payperpost And start on earning money for the postings. On PPP you have to have a PayPal account to get the money. The main benefit behind PPP is you can add tools for your blog as follows, Referral program (redirect more to PPP) Review my post (put on your post and earn more) Firefox plug-in (finds more opportunities for you) Signup forms (it is a referral form that can be put on your blog ) PPP Direct (enables advertisers to hire you directly) There are some conditions apply on approval of your blog. I have tried with some blogs that I have (but not maintained properly) and they have rejected it. So it seems you have try with a good blog (updates properly) on Pay Per Post. The good thing is you can

Replace new line with <br> tag

  Most of the multi line text areas we are using the user can input text by using line breaks. If that text used for internal purpose saving it as a single string may not be a problem.   But what's if we have to show that on a web page (forums, user comments, etc). We have to replace the new line character with the <br> tag. The famous way is to replace chr(13) with the <br> tag by using the Java Script. But the problem is this method is not working fine with every platform. But I have found a way to come up with and thought to share it with you.   function escapeVal(textarea,replaceWith) { textarea . value = escape (textarea . value)          for (i = 0 ; i < textarea . value . length; i ++ ) { if (textarea . value . indexOf( "%0D%0A" ) > - 1 ) {     textarea . value = textarea . value . replace( "%0D%0A" ,replaceWith) } else if (textarea . value . indexOf( "%0A" ) > - 1 ) {    

Good bye Netscape Navigator!!!

I have seen " Official support for all Netscape client products ended on March 1st, 2008. Please see the announcement for more details. " on top of the Netscape browser website. On their announcement they say to download the Mozilla Firefox web browser and seem they support on it. I think the main reason behind this is huge drop of popularity on their browser. But anyway if you are interested on the Netscape Communications Corporation (now under AOL) and their activities and the history just click on the links below. browser.netscape.com netscape.aol.com wikipedia.org/wiki/Netscape (web browser) wikipedia.org/wiki/Netscape Communications Corporation

Blog readability level

TV Reviews My blog got a "Genius" level on readability. I think this is not a problem since the visitors are also on genius level and also I believe my blog is just simple and anybody can understand the content on it. Anyway I think to write my future postings in a simple way. Hope you will help me to do a better job on that.

What is Flock?

Flock is a web browser that makes easy to use community activities on the internet like facebook, flickr and also it supports on viewing emails (on Gmail and yahoo) an many more. It is true that now the internet users are using more functionality on internet 2; so it supports most of them. Flock itself says it as a "social web browser" so I downloaded it and used for a couple of days. The main thing on Flock web browser is you can download to for free. It seems very easy to use facebook through Flock and also it is pretty easy to use flickr (image share on yahoo). To view official Flock site click here . If there is anything that you think to share with us regarding Flock web browser you are welcome.

Nokia Morph Concept

This is a new concept of Nokia and seems very innovative. I think you must see the video to get an idea about their new research level concept. To view more details about their new concept click here . To view more clear video just click here .

(RED) – helping to eliminate AIDS in Africa

What is called (RED) TM ? Sounds like an emergency but it is a brand created to raise the awareness and money for a Global Fund to treat the people who suffer AIDS in Africa. How actually this happens? You can find more details on it from http://www.joinred.com . Basically what happens is RED establishes partnership with private companies to promote their products under RED and partners send a portion of their profit to that Global fund. Normally the products under RED are also colored in red (I think it reminds the user about what he has done to the society). Here are some of the partners on RED, American Express (UK only) Gap Motorola Emporio Armani Apple Converse Hallmark Dell Microsoft The products under RED are not cost more to the customer. I think this is what needs to do for help people in Africa (who suffer AIDS). And also I think it is like a red light on our lives when thinking about AIDS. Anyway I do not have an experience with an (product) RED so I hope you will sha

Mahalo – A Search Engine

Mahalo is a search engine which is powered by human. They say that the articles listed on their search results are well organized, comprehensive and spam free. Their basic idea is to get the web pages listed on the user preferences on particular search. They will analyze the web pages and organize them manually (I am not sure). I think this is a better way to get really valuable content. If there is no results for the search term that you have entered they will show the search results by Google,yahoo and some more on tabs, the most valuable thing is you can send them a good link for that also by just creating a free account. Basically they will not list every page that you are sending because they have an editorial process. And they will not list the spam sites, spam blogs, phishing sites, sites that do not have original content (a copy without permission), sites that have no origin and the sites that have adult content. And on the other hand they will list the sites which have origi

Get the rating of blog

Here is the rating of my blog and seems it is good to be visited by all aged groups. That is good I think. Please share what you think about this. And also if there is any other service that gives the ratings please do share with us.

File conversion via Email

It is pretty easy to convert the pdf files and word and more files by just sending an email to these addresses. And you don't need to install any software to do this and from any device you can do this. So seems very useful to keep them on your address book. iPhone@pdfonline.com—Converts any attached Microsoft Visio or Word file (including the 2007/.docx kind) to PDF files, and supports multiple file attachments. It works from any device or computer, but only supports files up to 1 MB in size. pdf@koolwire.com—Converts Microsoft Word, Excel or PowerPoint files to PDFs. Like the other Koolwire addresses below, it accepts files up to 10 MB in size. doc@koolwire.com—Convert PDFs to Word or Rich Text Format files. mp3@koolwire.com—Convert WAV files to MP3s. wav@koolwire.com—Convert MP3s to WAV files. Hope these addresses may help you and if you have more information on getting services done by just sending a mail you are welcome to share those with us.

Maintain Your PC’s Performance with PC Programs

We all like to have our pc's run faster so what we do is we are buying a pc with good performance. But it gets slow down over time and here are some tips to make it better again. Over time, even the most sophisticated, memory packed computer can begin to run slow if we don't do something to prevent it. The reason why has less to do with how computers are made and how they age and more to do with the way we use them. You see, all of the daily tasks that we do on our PC from running programs to downloading and deleting software can make our computer sluggish. To keep this from happening, you need to understand the reasons why your PC is getting slower and do something to keep your PC running at its best. You can do this through regular maintenance and PC performance optimization programs. Before we discuss all of the things that could be affecting your PC's performance, let's talk a little about what symptoms a slow computer can have. In addition to being excruciatingly s

Top 10 Smart and Lazy Ways to Save Your Workday

I have got a mail on smart ways to make your target accomplished on a working day. And I thought this may help us all. So here is it. (hope you'll get a better working day after reading this) If you leave the office most nights feeling exhausted, overwhelmed, and behind on everything you've got to get done at work—even though you just spent 10 hours there—you're letting your workday get away from you. It's too easy to let the hours you spend at the office get stolen by meetings, email, interruptions, and impromptu co-worker chats that leave you saddled with busywork and too distracted to get the important stuff done. But with a little thought, you can leave work feeling accomplished and complete instead. When it's time to take back your workday, there are a few dead easy strategies that can help you focus on your tasks, firewall your attention, and reduce your workload so you can get out the door feeling light, free, and done. 10. Make a lunch or dinner date (to cre

Special characters on web pages

It was a real pain for me to work with special characters on a web page. Yes we know some of them like "&nbsp; , &amp;" but what happens if we are asked to put ¼ or õ we don't know what is the html name of that character. This happens frequently when working with languages other than English. So I found a site which has whole a lot of information on that. Here it is http://ascii.cl/htmlcodes.htm . Here are some of them. à á â ã ä å æ ç è é ê ë ì í î ï &#224; &#225; &#226; &#227; &#228; &#229; &#230; &#231; &#232; &#233; &#234; &#235; &#236; &#237; &#238; &#239; &agrave; &aacute; &acirc; &atilde; &auml; &aring; &aelig; &ccedil; &egrave; &eacute; &ecirc; &euml; &igrave; &iacute; &icirc; &iuml; latin small letter a with grave latin small letter a with acute latin small letter a with circumflex latin small letter a with tilde latin small lett

window.onbeforeunload on IE 7

I was tried to track when a user is just going to away from a web page by using JavaScript. That was pretty possible with the window.onbeforeunload it worked fine. But fine until my project QA team found that it does not work with Internet Explorer 7. window.onbeforeunload is working with the Firefox and IE 6 but it does not work with IE 7 (in the same manner with other browsers). So I was able to find a solution for that. var goodExit = false; window.onbeforeunload = confirmExit; function = confirmExit() { if(your any condition) { goodExit = true; //then that confirmation will not be asked } if(!goodExit) { return 'Are you sure to navigate away ?'; //this will display on confirmation } } //there should not any returns on the function confirmExit. You can make the goodExit true when the page is doing submit or any other that we do not need a confirmation.And also do not assign true or false to window.onbeforeunload. Because it may lead to a

How to Install ColdFusion 8 on Linux?

It was real pain for me to install ColdFusion on my Linux box with Apache. Anyway we have installed it and I thought to share it because this may help you also to install ColdFusion on a Linux box. First of all open a shell and then continue on this. Grant Execute permission to the Coldfusion ‐ 8 ‐ lin.bin binary file chmod +x Coldfusion ‐ 8 ‐ lin.bin Execute Coldfusion ‐ 8 ‐ lin.bin ./Coldfusion ‐ 8 ‐ lin.bin Enter the Locale 1 (English) Hit Enter 28 times to continue the agreement Enter "Y" to accept the agreement Enter the version to install 3 (Developer Edition) Enter the next task to perform 1 (Server Configuration) Enter whether you have an existing server configuration 2 (No existing server configuration) Enter the next task to perform 5 (continue installation) Enter the installation path Hit enter to accept the default path Hit Enter 30 times to continue the agreement Enter "Y" to accept the agreement