Say Hello to jQuery

Hello

Today we are going to say hello to jQuery. You know, you have to spent only 15 minutes per day to learn jQuery. Now, lets go to start.

Before start, we have to download jQuery form the website of www.jquery.com
In this website, you will get a download jQuery link in the right side of the page. You will two option to download this. This is not any big fact for you. But  the different between production and development version is, there are all sufficient instruction into development version with huge comments but none of this into production. So, I think, we can download the development version.
So, just check development version and click download button.  After that, you will get a new link with jQuery file. Now, just copy this code and past into your favorite textEditor. I am using the notepad++. After that, just save the file with the name of jquery-1.7.1.js

Now, crate a new file called index.html
Now the time for adding jquery-1.7.1.js into body tag of our index.html file. The code of index page is like that.

<!DOCTYPE html>
<html>
<head>
<title>This is our First Day</title>
</head>
<body>
 
<script src=”jquery-1.7.1.js”/>
</body>
</html>

Now the time for adding jQuery manual code into our page. So, write this code into the body tag. Continue reading

html5shiv

Hello Friends

Every browser does not support the all tag and blocks of HTML5, like IE. So, if you add simple code before body tag, then your code will be support all the browser.

———————————————————————————————-

Public repo for the latest HTML5 JavaScript shiv for IE to recognise and style the HTML5 elements.
Full original, uncompressed source available here: https://github.com/aFarkas/html5shiv
Source code adds new HTML5 elements (which is simple code), but also supports printing HTML5 elements and includes the default styles for HTML5 elements, like block on article and section.
Getting it to work in the browser was easy, @jon_neal and afarkas made IE actually print HTML5 elements - these guys are to take all the credit. Please take a moment to thank them!
To use this script, it must be included before the <body> element (i.e. in the <head>) but doesn't matter if it appears before or after the CSS - but for the sake of performance, it would make better sense to include the CSS first then this script.
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Note that the protocol has been removed so you don't have to when including on an http or https page

———————————————————————————————-

This article is borrowed from this link – http://code.google.com/p/html5shiv/

 

Thanks for reading.

jQuery in 30 days [Intorduction]

Assalamu alaiakum

Hello friends. I am interested to show you about jQuery. You know very well that, jQuery is very very important for web. You know also that, jQuery is a very important library of Java Script.  So, if you interested, then you  can read this post, or, don’t wast your time. If you can invest 15 minutes per day, you will be MASTER on jQuery, I guarantee.  So, if you are decided to learn, lets start our work.

Follow the next POST.

Thanks-

Determine User Location by using HTML5

Hello Friends,

You can determine user location by using HTML5 and Google Map easily. For that, you have to crate a HTML5 file by using your favorite compiler. I am using dreamweaver CS5.

The basic code of HTML5 are-

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>

After than, you have to write down the below code into body tag.

<input type="button" value="get location" onclick="getUserLocation()"/>
<div id="locationData">
 Location data here
</div>

Now, in the head tag, you have to write down the functions below- Continue reading

var_dump() function in PHP.

var_dump() displays information about variables in a simple, readable format. This function is very useful when debugging – providing a simple and easy way to display the current contents of one or more variables.

For simple scalar variables (such asbooleans,integers,strings, anddoubles), the type of the variable is printed, followed by an opening bracket, the value contained in the variable, and a closing bracket.

Resource pointers have their type (resource), ID number (such as 1, 2, or 45) and type of resource (such asdirorfile) displayed. The ID number assigned to a resource pointer reflects the order in which the resource pointer was created. (For example, the fifth resource pointer in a script has an ID number of 5.)

Arrays are printed as a list of keys and values, and have their typearray) printed at the top of the list.

Objects are handled in a fashion similar to that of arrays. The class of which the object is an instance is displayed, followed by the typeobject). After this, a list of the object’s member variables is printed.

_____________________________________________ SOURCES________

http://www.phpdig.net/ref/rn65re1375.html