jQuery export table data into MS Excel

We can use window.open() to export table data into Excel or any required format. It is the easiest and simplest way of creating a file with data without server side trip. window.open() requires 2 input parameters for this, (1) the required MIMEtype and (2) element that contains our data table .If you want to export your Gridview data, then place that Gridview inside a container like DIV and supply the DIV to winodw.open(). Also, be noted that window.open() has its scope and limitations in terms of browser vendors and customizing output file name. [More]

jQuery Slice() method more flexible than substring()

jQuery slice() method is very useful and give more flexibility than substring method of jQuery. It takes 2 parameter and both are optional. If none is specified then it sliced the whole. Important thing with this method is that it doesn't consider the last sliced item in its result.    ... [More]

jQuery .data() usage

I use .data for storing values instead of accessing DOM elements. I realized and found a better and faster way of it. In fact I have been using  $('#myElementID').data(myKey,myValue); for a while now.    Check out following/ these cases-   The other way for the same is ... [More]

jQuery intellisense in Visual Studio 2008

Microsoft is promoting jQuery and so Visual Studio 2010 is having inbuilt intellisense for it. But for earlier version of Visual Studio i.e. VS 2008, it can be done by installing kb file.Upgrade Visual Studio 2008 to Service Pack 1 and use the KB958502. This hotfix can be downloaded from -http://arc... [More]

Hover Event in jQuery

The hover requires 2 callback functions, one for "mouseover" and another one is far "mouseout". Thus we can say, hover is an ready made solution that is equivalent of binding these two events in following manner -

$('.myHoverClassNameComeHere').live('mouseover mouseout', function(event) {
if (event.type == 'mouseover') {
// do something on mouseover
} else {
// do something on mouseout
}); [More]

JavaScript vs JScript vs jQuery

Java Script was created by Netscape for their new version of browser. Initially they released this as part of Netscape Navigator 2.0 with a name "LiveScript". Later they renamed it with "Java Script". Note, Java is a programming language and completely differ. Actually at that time Java was being mo... [More]