Posts

Disable single quote Within Forms

This is a good method taught to me by my friend to disable any character in the keyboard Within Forms in your web page/ web application. A simple and effective method to disable specific characters (like single quotes) within form inputs on your webpage or web application. The Code <!DOCTYPE html> <html> <head> <script type="text/javascript"> function stopRKey(evt) { // Normalize the event object evt = evt || window.event; // For debugging - shows the keyCode console.log(evt.keyCode); // Block single quote (39 or 222 depending on browser) if (evt.keyCode == 39 || evt.keyCode == 222) { return false; } } // Attach the event handler to the document document.onkeypress = stopRKey; </script> </head> <body> <h3>Test Area</h3> <textarea rows="5"></text...

Firstday at MSc

Oh studies again..! My Msc program just started in UCSC. It was really nice seat in UCSC lecturing hall listing to a lecture after one and half years time.. But one thing i would like to share with you that was pointed out by VC of UOC at her welcome speech, "You are not STUDENT anymore, you are CANDIDATE of a Masters program. Don’t wait till lectures give you lessons, grab the knowledge you want". Nice thing was as usually I felt same sleepiness in the first lecture i attended, however at same time I felt that there is more understanding about practical aspects of lessons than i was an undergraduate. ;)

All Google is down all around the world on 10 December 2009

Image
Several users are complaining on Twitter that Google,Blogger, Gmail and other services owned by Google are down. Google country search sites like www.google.lk and google.co.uk are down too. I don’t know what affected Google, but whatever it is it must be massive i hope, Google search become available soon..early as I can’t live without google

Windows WorkFlow foundation

Hey got a new project for develop "Work Flow" using SharePoint! So i started learning about "SharePoint developmet".. OOB(Out Of Box), SPD(SharePoint Designer) and WFF(Work Flow Foundation) hmmm look tough? What is "Widows WorkFlow foundation" ? Hey you idiot, dont you understand that i should have basic knowledge of.NET framework, Some C#/.NET coding practice and knowledge about Visual Studio to do this? So i paused learning SharePoint and start .NET studies... Help me guys....

SOA Workshop

Service Oriented Architecture(SOA) ! Wut? %#^%#$$ Yesterday(17th,Sep 2009) we participated for full-day interactive workshop on SOA conducted by WSO2 at Cinnamon Lakeside Hotel,Colombo. ESBs and SOA , SOA Security ,SOA Governance ,SOA Enterprise Architecture Patterns and many more topics were discussed. Actually do you know what is this 'SOA' all about?

Went to see match

Image
We Mobitel team went to see the 3rd ODI: Sri Lanka v Pakistan at Dambulla - Aug 3, 2009. Had fun.. Sri Lankan team showed 'great' performance to cheer! Match summary: Sri Lanka won by 6 wickets (with 21 balls remaining) Pakistan 288/8 (50 ov); Sri Lanka 289/4 (46.3 ov)

Javascript how to check variable is null?

do you have idea of what's the most reliable way to check a javascript null? what does it mean by undefined vs. null in JavaScript? what undefined vs. null? How found this when i search about "how to check 'null' Value in Java Script?" if (myVar == null) { alert('myVar is not set.'); } have you try this? What?! This isn't why you don't check for equality with null. It's because myVar == null doesn't even remotely do what most people think it does in this context. A property, when it has no definition, is undefined. Put that way, it's pretty obvious. 'null' is an object. It's type is 'null'. 'undefined' is not an object, it's type is 'undefined'. That part is less obvious. So people write if (myVar == null) { myVar = "Joe"; } When what they really mean is if (!myVar) { myVar = "Joe"; } this is where i end up with my search... hope you expert guys would help me if i'm...