SUBBUINDESIGN Blog

Learn to Like Your Job

As vice president of a Los Angeles film-production company in the 1980s, Ronald Kaufman had nearly everything that he’d ever wanted in a job — great pay, friendly co-workers and interesting work coordinating product...

New Resume Rules

Q: I am a senior executive and haven’t looked for a job in more than 10 years. How can I make my résumé more current by today’s standards? –Boston, Mass. Getty Images A: While the résumé...

Didn’t Get the Job? You’ll Never Know Why

You aced the interview, your résumé sings, but in the end, you didn’t get the job. Chances are, you’ll never know why. It is a painful conundrum of the job search process: Rejected candidates...

jQuery finish() Method

<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“#start”).click(function(){ $(“div”).animate({height:300},3000); $(“div”).animate({width:300},3000); }); $(“#complete”).click(function(){ $(“div”).finish(); }); }); </script> </head> <body> <p> <button id=”start”>Start Animation</button> <button id=”complete”>Finish Current Animation</button> </p> <div style=”background:#98bf21;height:100px;width:100px”> </div> </body> </html>

jQuery clearQueue() Method

<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“#start”).click(function(){ $(“div”).animate({height:300},1500); $(“div”).animate({width:300},1500); $(“div”).animate({height:100},1500); $(“div”).animate({width:100},1500); }); $(“#stop”).click(function(){ $(“div”).clearQueue(); }); }); </script> </head> <body> <button id=”start”>Start Animation</button> <button id=”stop”>Stop Animation</button> <br><br> <div style=”background:red;height:100px;width:100px;”> </div> </body> </html>

jQuery delay() Method

<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“button”).click(function(){ $(“#div1”).delay(“slow”).fadeIn(); $(“#div2”).delay(“fast”).fadeIn(); $(“#div3”).delay(800).fadeIn(); $(“#div4”).delay(2000).fadeIn(); $(“#div5″).delay(4000).fadeIn(); }); }); </script> </head> <body> <p>This example sets different speed values for the delay() method.</p> <button>Click to fade in...

jQuery – The noConflict() Method

What if you wish to use other frameworks on your pages, while still using jQuery? jQuery and Other JavaScript Frameworks As you already know; jQuery uses the $ sign as a shortcut for jQuery....

jQuery – Dimensions

With jQuery, it is easy to work with the dimensions of elements and browser window. jQuery Dimension Methods jQuery has several important methods for working with dimensions: width() height() innerWidth() innerHeight() outerWidth() outerHeight() jQuery...

jQuery Effects – Sliding

The jQuery slide methods slides elements up and down. jQuery Sliding Methods With jQuery you can create a sliding effect on elements. jQuery has the following slide methods: slideDown() slideUp() slideToggle() jQuery slideDown() Method...

jQuery Callback Functions

A callback function is executed after the current effect is 100% finished. jQuery Callback Functions JavaScript statements are executed line by line. However, with effects, the next line of code can be run even...

How to write jQuery Effect fadeOut() Method?

<!DOCTYPE html> <html> <head> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js”> </script> <script> $(document).ready(function(){ $(“.btn1”).click(function(){ $(“p”).fadeOut() }); $(“.btn2”).click(function(){ $(“p”).fadeIn(); }); }); </script> </head> <body> <p>This is a paragraph.</p> <button>Fade out</button> <button>Fade in</button> </body> </html> Definition and Usage The fadeOut()...

How to use jQuery Effect Methods?

jQuery Effect Methods The following table lists all the jQuery methods for creating animation effects. Method Description animate() Runs a custom animation on the selected elements clearQueue() Removes all remaining queued functions from the...

How to use jQuery Selectors?

jQuery selectors are one of the most important parts of the jQuery library. jQuery Selectors jQuery selectors allow you to select and manipulate HTML element(s). jQuery selectors are used to “find” (or select) HTML...

jQuery Sticky Footer

In general the CSS Sticky Footer is the best way to go, as it works perfectly smoothly and doesn’t require JavaScript. If the markup required simply isn’t possible, this jQuery JavaScript might be an option. HTML...

Get X, Y Coordinates of Mouse Within Box

The below code will give you the X, Y coordinates of a mouse click within a given box. Removing all the stuff about the offset, you can easily get the X, Y coordinates of...

What is keeping India’s engineers unemployed

Somewhere between a fifth to a third of the million students graduating out of India’s engineering colleges run the risk of being unemployed. Others will take jobs well below their technical qualifications in a market where...

Three Myths About Starting Your Own Business

Many people dream of shedding the corporate life and starting their own companies. They imagine creating the next Google or Apple . From Steve Jobs to Bill Gates to Pierre Omidyar, many of the world’s richest people on...

Should I Start My Own Business?

Consider the Pros and Cons of Working for Yourself The first big question you’ll need to answer is whether the benefits of being your own boss truly outweigh the disadvantages. Pros: The pros are pretty...

How to use of jQuery.data()?

jQuery.data() is used to set/return arbitrary data to/from an element. Syntax: jQuery.data(element, key, value) “element” is the DOM element to which the data is associated. “key” is an arbitrary name of the piece of...

Write the animate function in jquery?

The animate function is used to apply the custom animation effect to elements. -Syntax: $(selector).animate({params}, [duration], [easing], [callback]) “param” defines the CSS properties on which you want to apply the animation. “duration” specify how...

Php Interview Questions and Answers -16

How to store the uploaded file to the final location? move_uploaded_file ( string filename, string destination) This function checks to ensure that the file designated by filename is a valid upload file (meaning that...

Php Interview Questions and Answers -15

How can I set a cron and how can I execute it in Unix, Linux, and windows? Cron is very simply a Linux module that allows you to run commands at predetermined times or...

Php Interview Questions and Answers -14

How can increase the performance of MySQL select query? We can use LIMIT to stop MySql for further search in table after we have received our required no. of records, also we can use...

Php Interview Questions and Answers -13

What is maximum size of a database in mysql? If the operating system or filesystem places a limit on the number of files in a directory, MySQL is bound by that constraint. The efficiency...

Php Interview Questions and Answers -12

What is the use of friend function? Friend functions Sometimes a function is best shared among a number of different classes. Such functions can be declared either as member functions of one class or...

Php Interview Questions and Answers -11

How to reset/destroy a cookie ? Reset a cookie by specifying expire time in the past: Example: setcookie(‘Test’,$i,time()-3600); // already expired time Reset a cookie by specifying its name only Example: setcookie(‘Test’); What types...