Wednesday 14 December 2016

jQuery for Beginners

jquery is library written in javascript to ease your javascript code. jQuery greatly simplifies JavaScript programming along with easy-to-use API that works across a multitude of browsers which saves time which you would spend on bunch of complicated codes of javascript, like ajax calls,dom manipulation,each loops,etc. The jQuery syntax is tailor-made for selecting HTML elements and performing some action on the element(s).
Basic syntax is: $(selector).action()
Examples:
$(this).hide() - hides the current element.
$("p").hide() - hides all elements.
jQuery selectors are one of the most important parts of the jQuery library. jQuery selectors allow you to select and manipulate HTML element(s). jQuery selectors are used to "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more. All selectors in jQuery start with the dollar sign and parentheses: $().
Example:
When a user clicks on a button, all elements will be hidden:
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
As we all know JQuery become much popular over a long period of time but for beginners who have started getting their hands in JQuery, there are some basic things you need to know first:-
  •  JQuery is a fast, small, and feature-rich JavaScript library.
  •  JQuery was released by John Resig in 2006 and is currently being utilized by over 31% of the most popular websites on the internet, thus it has gained popularity.
  •  The most advantageous thing about JQuery is its open source and not only that it is also dual - licensed under the MIT License and GNU general public license V2. This means any developer can create a JQuery plug-in of their own.
  •  JQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.
  •  JQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.
  •  Last but not the least there are bunches of JQuery plug-ins out there which you may require for any of your task.
The best feature in JQuery is that the team of developers who had developed it had a vast knowledge of cross-browser compatibility and they have fixed most parts of it and they are on with it following with the updates. JQuery runs exactly same on all major and minor browsers, including IE6.
If you are planning to use any kind of designing frameworks such as bootstrap or Zurb foundation you are going to require JQuery. Let’s compare normal javascript vs JQuery:
Normal javascript:
document.getElementById("myBtn").addEventListener("click",function()
{
alert("Hello World!");
});
Jquery:
$("#myBtn").click(function()
{
alert("Hello World!");
});
This is how JQuery reduces your effort of writing long javascript code and saves your time. You could run JQuery on any client that supports HTML & Javascript , i.e. All modern desktops, smartphones, laptops, and any future device which supports html and javascript. We develop our projects in php, php MVC frameworks like Codeigniter, Magento and Wordpress. So we use Jquery and apply to different kinds of frameworks endpoints and communicate it to the frontpoint via HTTP, so in future if we have to work on python or any other language so all we need to do is work on our server side framework. It is also better for SEO (search engine optimization) because in this everything is in text instead of flash.
So far we have seen the advantages of JQuery but as we all know everything has a weakness and so does JQuery too. Lets hav a look at it:
Limited functionality:
As we know JQuery has the best documentation and a large community of opensource developers and impressive number of libraries but it depends on how much customization you require on your web application because in some cases it’s functionality is limited so you may have to use raw javascript.
Dependency:
Dependency is a weakness which most of the people don’t almost like because in order to run JQuery Commands the JQuery javascript file is a compulsory Requirement , although the size of JQuery production version is small maybe 25-100KB.

Thursday 1 December 2016

Why GO Social for Branding??

Due to spike in up-gradation of technology each and every person linked to the global platform. This can happen only because of social media. But what’s SOCIAL MEDIA?? The online communication channels dedicated to community based input, interaction, content sharing are nothing but the social media. The most popular types of social media are Social Networking, Media Sharing, Micro blogging and the Blogs. In general we identify them as Facebook, Twitter, LinkedIn, YouTube, etc. These social media platforms act as a link between a person and a world at large. One can easily connect with his old friends, school mates, relatives, colleagues, clients, etc. and explore the vast world or new cultures of Humanity and Business at ease with social media.

In today’s era ones’ image is all as it represents you to the society. So creating a unique identity in customer’s mind is Branding. Effective branding can result in higher sales of not only of one product, but of other products associated with that brand. For ex. Apple; Apple is one of biggest brand in Mobile phone industry. Customers are waiting to buy his new mobile phone iPhone7 after his last hit of iPhone6.Companies use social media to increase their product reach, customer loyalty, brand awareness, etc.

But companies prefer Social Platform over Traditional. Why?? The reason is simple the extensive reach of social media. Facebook has over 1218 million active users. Twitter has over 302 million active users. LinkedIn has over 450 million active users. 58% of Facebookusers liked a brand. 42% have mentioned a brand in a status update on Facebook41% have shared a link, video or story about brand on Facebook while 29% of Twitter users follow a brand and 39% have twitted about brand.

Company can easily track brand loyalty by checking how many followers company has on his page and how many likes, shares and comments on the post company had on the post company published. There are few ways by which company can increase his brand awareness on social media:

A) Paid Ads : Paid search ads on Google and Facebook are able to boost consumer awareness even though it might possible that ad clicking will be low. The benefit of using search ads is that you have complete control over your budget and your ad messages. Furthermore, you can immediately track the responses of your ads with analytic tools such as Google Analytics and Facebook Insight.

B) User Engagement : The more users follow the brand more they will get aware about the products of company. User engagement can be improved by use of various contests on social media platforms as well as use of infograhics , trendy images (Eye catchers), etc.

C) Social Networking : Facebook, Twitter, Instagram, etc. sites help businesses to get in touch with its consumers. Companies can directly interact with customers and able to increase their followers.

D) Videos/ Image Sharing : Companies shares videos/ images of their respective products in order to increase the followers. Principle of companies is "More the followers more the popular the product".

So to capture the market one company first should capture the attention of customers which is only possible due to extensive reach of social media that’s why companies are going social for branding.