A Nice Javascript Calendar Control for your applications
I got this nice little gadget from a friend of mine who also didnt know where it originally came from. This one’s made by Nick Baicoianu in 2006 and distributed under the GNU license. It had problems with Firefox 3 where it wasn’t showing anything in the dropdown for the years. Upon closer inspection I [...]
How to use TinyMCE in ASP .NET?
howdy everyone, well, its been quite a few days since I dropped something on my blog, been eXtreeemly busy these days. Did any one missed me?? OK, today I got this little test application for you people who are wondering: “how to use TinyMCE in ASP .NET?”. Trust me, its very simple and very straight [...]
jQuery effects not working after UpdatePanel Asynchronous request is over
A few days ago I was working on a project that involves a really good looking design and it had some fancy effects on a page with the help of jQuery library The fancy effect was about showing a button over the picture with the title “View larger” when the mouse hovered over it and [...]
How to get and cancel the enter/return key in Javascript?
There was a problem I was facing with a web form I made, and that was that whenever the user pressed the enter key while typing in a text box, he was taken to the previous page. Obviously it was very irritating so I thought about making up a javascript routine to eat away the [...]
How to get the HTML name attribute of ASP.Net Control
//Function to get the HTML name of the server control from the Client Id // Parameters: // clientId – Control.ClientId // serverId – Control.id private string GetHTMLNameById(string clientId, string serverId) { int pos = serverId.IndexOf(‘_’); string HTMLName = “”; if(pos >= 0) { pos = clientId.IndexOf(serverId); HTMLName = clientId.Remove(pos, serverId.Length); HTMLName = HTMLName.Replace(‘_’, ‘$’); HTMLName [...]
Javascript: String trim functions: leftTrim, rightTrim and trimAll
The first is a definition of the separate function leftTrim, rightTrim and trimAll. These trim the spaces to the left of the string, the right of the string and both sides respectively. function leftTrim(sString) { while (sString.substring(0,1) == ‘ ‘) { sString = sString.substring(1, sString.length); } return sString; } function rightTrim(sString) { while (sString.substring(sString.length-1, sString.length) [...]
Just a little observation about the javascript's window.open method
well today I was just putting in a pop up window in my application using the Javascript’s window.open method and at first I wrote this: window.open(“printApp.aspx”,“Print barcode window”,”status=0,width=380,height=175,location=0,scrollbars=0,resizable=0″); and that was working in Firefox but when I fired up IE to see whats happening there it was giving an invalid parameter’s error. So I started [...]
How to go back to the previous page using Javascript
well, this is how you can go back to the previous page through Javascript. javascript:history.go(-1);




