Skip to main content

Posts

Showing posts with the label Internet

JQuery API control functions

Image from hoth.entp.com I was doing JavaScript for few years and it was little bit hard to work with "write less, do more" at first few times. Always it comes to my mind as JavaScript (yes I know it is) so I am trying to apply some functions as document.getElementById. And when I wanted to hide and show elements it was style:none and block.Those look bad(when a better way is there) on jQuery and some of them may not work on jQuery elements. OK I am not here to teach you neither JavaScript nor jQuery. For the people like me it is strongly recommended (by me of course) to take a look at the available and right functions on jQuery API official site .t I just found that and thought to share that. If you got a better place or some useful links please share it.

How to call a web method by JavaScript

I didn’t get a time to write something here for a long time. Yes I can say I was busy. (But I was not :)) Anyway I thought to write about something finally and I promise (this is a serious promise) that I will try to do something (do a posting actually) on my blog more frequently. The ability to call the web methods by JavaScript on .net is very very useful and we can implement the web pages more efficiently by using this. For example we do not need to send whole page and update. Yes this is AJAX (that what I think). Here is a web method example. It should be on the aspx page code behind and should be a static (shared) method. I have tried to insert the web methods on user controls and was unable to do so (if you know a way please share with us). This is on VB.net. _ Public Shared Function GetMyData(ByVal studentID As Integer, ByVal schoolID As Integer) As Student Dim studentService As New StudentService() Dim result As Student = studentService.GetStudent(studentI...

JavaScript confirmation disables validation

I had to do a JavaScript confirmation before I perform the post back on a web form. What I have done is just call button.attributes.add("onClick", -- ) and added the confirmation. It worked fine and showed the popup and did the post back if I clicked on the OK button. But if I have implemented some validations on the fields they doesn't fire them if the validation fails. For example if there is a required field validator the post back happens even without the values for that required field. what I want is to do the validation and then do the post back. Luckily I've found a solution at http://forums.asp.net/t/963412.aspx?PageIndex=1 by sukdeb . function Validate() {     var yes=confirm("Update this application?");     if(yes)     {         Page_ClientValidate();         return Page_IsValid;     } return false; } <asp:button runat="server" text="Button" onc...

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...

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.

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.

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 ...