Friday, October 7, 2011

Playing with Hide and Show Jquery with animation

Hi guys,

Today I really had nothing to do so I decided to write down some jQuery tutorial.

So its about hide and show functions of jQuery.
If you are familiar with jQuery then you probably used them already but for those new to it you might find this one enlightening ^_^

So basically hide() is the simplest way to make an element disappear.
It can be called without any parameter like:

$("#hideMe1").hide();
//or with parameters 
 var duration = 5000; //in milliseconds or strings "slow" or "fast"
 $("#hideMe2").hide(duration, function(){ alert("Im hidden"); });


 While show() is the obviously does the opposite.


$("#showMe1").show(); 
//or
$("#showMe2").show("fast",function(){ alert("I've been revealed!"); });

You can also use the animation method of jQuery if you like and if you needed more than just hide and show

sample:

//hide and show with movement
$("#animateMe1").animate({ opacity: 0, marginLeft: "15px"},2000);

$("#animateMe2").animate({ opacity: 1, marginLeft: "15px"},2000); //supposing the element have zero opacity

Monday, July 11, 2011

Jquery


JQuery - a new kind of JavaScript Library.

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.

web development


Web development is a broad term for the work involved in developing a web site for the Internet (World Wide Web) or an intranet (a private network). This can include web designweb content development, client liaison, client-side/server-side scriptingweb server and network security configuration, and e-commerce development. However, among web professionals, "web development" usually refers to the main non-design aspects of building web sites: writing markup and coding. Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applicationselectronic businesses, or social network services.
For larger organizations and businesses, web development teams can consist of hundreds of people (web developers). Smaller organizations may only require a single permanent or contractingwebmaster, or secondary assignment to related job positions such as a graphic designer and/or information systems technician. Web development may be a collaborative effort between departments rather than the domain of a designated department.

wikipedia

Ecommerce

Electronic commerce, commonly known as e-commerceeCommerce or e-comm, consists of the buying and selling of products or services over electronic systems such as the Internet and other computer networks. It is more than just buying and selling products online. It also includes the entire online process of developing, marketing, selling, delivering, servicing and paying for products and services. The amount of trade conducted electronically has grown extraordinarily with widespread Internet usage. The use of commerce is conducted in this way, spurring and drawing on innovations in electronic funds transfersupply chain managementInternet marketingonline transaction processingelectronic data interchange (EDI), inventory management systems, and automated data collection systems. Modern electronic commerce typically uses the World Wide Web at least at some point in the transaction's lifecycle, although it can encompass a wider range of technologies such as e-mail, mobile devices and telephones as well.


wikipedia