Latest Post
Tampilkan postingan dengan label jquery. Tampilkan semua postingan
Tampilkan postingan dengan label jquery. Tampilkan semua postingan

Facebook Style Tag Selector using jQuery and CSS3

Written By Unknown on Rabu, 22 Januari 2014 | 08.03

Today I am going to tell you how to create Facebook Style Tag Selector using jQuery. This kind of tag selectors are used in many popular sites like facebook, twitter, linkedIn & even in gmail also. In many social networking sites this kind of Tag text boxes are used to collect user’s Interest, adding categories, adding skills, adding tags etc.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Check Expired Sessions using PHP, jQuery and Ajax

Written By Unknown on Rabu, 08 Januari 2014 | 08.04

My readers are asking that how do we display message to users that their sessions got expired. So I thought this tutorial will really useful to lots of web developer who working on session based websites.

I have used javascript timing event –  setInterval() – executes a function, over and over again, at specified time intervals. The setInterval() method will wait a specified number of milliseconds, and then execute a specified function, and it will continue to execute the function, once at every given time-interval.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Reduce web page loading time using jQuery

Written By Unknown on Kamis, 02 Januari 2014 | 07.59

Nowadays, everybody is obsessed with speed. Internet Connections, computers, 3G, browsers… Phrases like: “I sent you an email a minute ago. What do you mean you haven’t received it yet?” or “Our international Skype free video conference has a 1 second lag between the image and the sound. Sooo annoying!”are part of today’s world. So is your website up to speed?

It is a popular trend at the moment to use almost full-page high resolution super-large images on your portfolio. Which does work effectively as it focuses the user on your best work and clearly highlights how good you are as a designer. So, it looks great and it works great. But, those images are absolutely killing your homepage’s loading speed.

To read more about this article Click Here

For Demo Click Here

Mashable Style Drop Down Menu using PHP, Mysql and jQuery

Written By Unknown on Minggu, 29 Desember 2013 | 07.48

Everyone knows that Mashable is the world’s largest independent website dedicated to news, information, technology and resources for the connected generation. Now I am going to explain you about how to create mashable style dynamic drop down menu using Php, Mysql & jQuery Ajax.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Magnoliyan Video Chat using PHP, jQuery and Html5

Written By Unknown on Rabu, 25 Desember 2013 | 07.45

Magnoliyan Video Chat (mgVideoChat) is full featured video communication system with integrated text chat available directly within your web browser. You can consider it as online web based Skype, but without the requirement to install any additional software, plugin nor flash.

There is unlimited number of use cases: online live video chat support, private rooms, community chat rooms…

To read more about this article Click Here

For Demo Click Here

Protect / Secure your Website Content using jQuery

Written By Unknown on Minggu, 08 Desember 2013 | 08.07

Now a days website owners want to protect their content from copiers. In order to avoid Plagiarism, it is very necessary to make sure the Content, Source and Images from their site is not copied. I wrote a simple jQuery code that will protect your content from copying text, dragging images, viewing source, & disables the link which having image paths.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Move list box items from one box to another with jquery

Written By Unknown on Kamis, 05 Desember 2013 | 11.05

While working with select boxes somewhere you need to use multiple selections and selecting multiple items from a bigger list is not user friendly. Here the idea is to make two select boxes and move items from one box to another. So it becomes more user friendly and looks good when it comes to UX.

It is quite easy to implement this with jquery. Just remove the item from one box and append to another.
You can move all items at once or you can move only selected items.

jQuery to move selected list box items from one box to another

 
$('#from option:selected').remove().appendTo('#to');

jQuery to move all list box items from one box to another

 
$('#from option').remove().appendTo('#to');

The above two lines of jquery does all the trick. Here is the full script. The jquery, css and the html.


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Move from one select box to another</title>
<style type="text/css">
select {
width: 200px;
float: left;
}
.controls {
width: 40px;
float: left;
margin: 10px;
}
.controls a {
background-color: #222222;
border-radius: 4px;
border: 2px solid #000;
color: #ffffff;
padding: 2px;
font-size: 14px;
text-decoration: none;
display: inline-block;
text-align: center;
margin: 5px;
width: 20px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script>
function moveAll(from, to) {
$('#'+from+' option').remove().appendTo('#'+to);
}

function moveSelected(from, to) {
$('#'+from+' option:selected').remove().appendTo('#'+to);
}
</script>
</head>

<body>
<select multiple size="10" id="from">
<option value="html">Html</option>
<option value="css">Css</option>
<option value="google">Google</option>
<option value="javascript">Javascript</option>
<option value="jquery">Jquery</option>
<option value="regex">Regex</option>
<option value="php">Php</option>
<option value="mysql">Mysql</option>
<option value="xml">Xml</option>
<option value="json">Json</option>
</select>
<div class="controls">
<a href="javascript:moveAll('from', 'to')">&gt;&gt;</a>
<a href="javascript:moveSelected('from', 'to')">&gt;</a>
<a href="javascript:moveSelected('to', 'from')">&lt;</a>
<a href="javascript:moveAll('to', 'from')" href="#">&lt;&lt;</a> </div>
<select multiple id="to" size="10">
</select>
</body>
</html>

See the demo of the code.

>> > < <<

Fetch / embed videos from url using PHP and Jquery

Written By Unknown on Minggu, 01 Desember 2013 | 07.53

Here I am going to share How to fetch videos from major sites like youtube, vimeo, dailymotion, yahoom google , mega videos, metacafe and many more. Now a days major websites like facebook also doing the same thing. U can also implement this code in your project (codeigniter, php projects).

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Facebook style Hashtag System using PHP, MYSQL and jQuery

Written By Unknown on Rabu, 20 November 2013 | 07.59

If you are not aware of Hashtag, then I will say you would not using any social networking sites in a very large extent.  Here I am going to explain you about the advantages of hashtag & how you can implement it in your web projects using php & mysql.

Hashtags are essentially a filter, allowing people to see the conversation associated with that word or phrase. Hashtags is alternative to tags..  Twitter is the first site to introduce the hashtag. But now a days sites like facebook, Instagram, Vine & Tumblr are using this feature in all platforms. If you use the hashtag effectively then you will get the contents across different sites together in a single page.

To read more about this article Click Here

For Demo Click Here 

To download files C

Same as above with jQuery

Written By Unknown on Kamis, 24 Oktober 2013 | 13.01

We often see a checkbox on mostly ecommerce websites which serves the purpose to clone billing address as shipping address OR shipping address as billing address.

This helps user to fill the form once and use the filled address as another address.
The idea is to just clone the data from one field to another which is quite easy.

Let us implement it with jQuery.


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Same as Above with Jquery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script>
function sameAsAbove(){
if($('#sameas').is(":checked")) {
$("#shipping_name").val($("#billing_name").val());
$("#shipping_address").val($("#billing_address").val());
$("#shipping_zip").val($("#billing_zip").val());
}else{
$("#shipping_name").val('');
$("#shipping_address").val('');
$("#shipping_zip").val('');
}
}
</script>
</head>

<body>
<form name="address" method="post">
<input type="text" id="billing_name" name="billing_name"
placeholder="Billing Name" >
<br>
<textarea id="billing_address" name="billing_address"
placeholder="Billing Address"></textarea>
<br>
<input type="text" id="billing_zip" name="billing_zip"
placeholder="Billing Zip" >
<br>
<br>
<input type="checkbox" id="sameas" value="1" onclick="sameAsAbove()">
Same as Above <br>
<br>
<input type="text" id="shipping_name" name="shipping_name"
placeholder="Shipping Name">
<br>
<textarea id="shipping_address" name="shipping_address"
placeholder="Shipping Address"></textarea>
<br>
<input type="text" id="shipping_zip" name="shipping_zip"
placeholder="Shipping Zip" >
</form>
</body>
</html>

You can add as many fields as you want. just update the form and the javascript.
Here is the working demo








Same as Above





In the above demo when you fill the billing form and click on checkbox it fills shipping fields with billing fields and when you uncheck, it resets the fields.

Assign a php array to a jquery variable

Written By Unknown on Sabtu, 19 Oktober 2013 | 03.48

To assign php array to jquery variable use

var jArray= <?php echo json_encode($phpArray ); ?>;

jArray  is the jquery variable which hold array in jquery and
$phpArray contains my php array ...

-------------------------------------------------------------------------------------------------------------
For more details run below example:

<html>
<head>

</head>
<body>

<b> Hello .. Today we are assigning a php array to jquery variable <b>
<?php $phpArray = array(
          0 => "Mon",
          1 => "Tue",
          2 => "Wed",
          3 => "Thu",
          4 => "Fri",
          5 => "Sat",
          6 => "Sun",

    )
   

?>


</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
     var jArray= <?php echo json_encode($phpArray ); ?>;

    for(var i=0;i<6;i++){
        alert(jArray[i]);
    }
    alert("Refresh again to see Array-Data    ")
});
</script>
</html>


jQuery AJAX Post Example with PHP and JSON

Written By Unknown on Kamis, 10 Oktober 2013 | 09.10

Today I'm gonna give you some code examples on how you can post a form and json data using jQuery AJAX. A PHP file will receive the posted data and print the response. I think this is one of the most useful code when you're coding with jQuery, especially if you're building a web app with modules that deals with so many forms or post request in one page.
 
To read more about this article Click Here
 
For Demo Click Here
 
To download files Click Here

reCaptcha style Captcha with JQuery and PHP

Written By Unknown on Senin, 07 Oktober 2013 | 08.46

This tutorial is about to creating a captcha same as recaptcha. I used CSS and PHP for this. Now you can create your own recaptcha style captcha with php and jquery. 

To read more about this article Click Here

For Demo Click Here

To download files Click Here

jQuery Cascading DropDowns with PHP, Ajax and JSON

Written By Unknown on Kamis, 03 Oktober 2013 | 09.12

Cascading DropDowns is a jQuery plugin that implements dropdown lists in which contents of one list depends on the selection of another list. The plugin has right panel with items (any html structure), that depend on dropdown selected value and filtered on selection callback. The dropdowns work with json as data source (ajax or javascript array). The right panel items work with ajax or inline html as data source.


To read more about this article Click Here

For Demo Click Here

To download files Click Here

Display Facebook Photos On Website With FQL & jQuery Lightbox

Written By Unknown on Selasa, 01 Oktober 2013 | 10.11

This one is useful if you want your facebook pictures to be shown in your website in a synchronized way. Once you uploaded an image in your fan page, it will be seen automatically in your website too.

This technique has the following Advantages:

1. You save your server disk space.
2. You got instant photo manager (facebook photos)
3. You save bandwidth since the photos shown in your website are loaded from facebook's repository.
4. Please add your comment if you know other advantages.


To read more about this article Click Here

For Demo Click Here

To download files Click Here

Lightweight jQuery plugin to Create a Preloader - Loadie.js

Written By Unknown on Minggu, 29 September 2013 | 10.46

Loadie.js is a lightweight jQuery plugin to create a preloader that doesn’t suck and that is used by big firms.


To read more about this article Click Here

For Demo Click Here

To download files Click Here

Add/Remove File Field and Upload File using PHP and jQuery

Written By Unknown on Rabu, 25 September 2013 | 09.09

Hi guys! Today I'm going to share about multiple file upload in PHP. We'll be using jQuery to add or remove new file fields. This one is useful when your system has multiple email attachment or document management feature.


To read more about this article Click Here

For Demo Click Here 

TO download files Click Here

Send and receive data in ajax/jquery

Written By Unknown on Senin, 16 September 2013 | 03.54

How to send and receive data in ajax/jquery 

Sample Ajax tutorial in php



We will need two file for this tutorial ...
1. which send request and receive responce (test.php)
2. which receive request and send response (page.php)

On click of button ..the id of button will be send to page.php

And the response which we will get will replace html content of span id "val" .

test.php

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
    $( ".button" ).on("click",function(){

        $.ajax({
        type:"post",
url: "page.php",
data: {id:$(this).attr('id')},
success: function( data ) {
$( "#val" ).html( "<strong>" + data + "</strong> " );
}
});
        });
});
</script>
</head>
<body>
<button type="button" id="b1" class="button">Button-1</button>
<button type="button" id="b2" class="button">Button-2</button>
<button type="button" id="b3" class="button">Button-3</button>
</br></br></br>
<span id="val" style="background-color:#454282;">Which button is clicked ?<span>

</body>

</html>

---------------------------------------------------------------------------------------------------------------------------
page.php

<?php
$id=$_POST['id'];
if($id=="b1"){
echo "Button 1 is clicked ";
}
if($id=="b2"){
echo "Button 2 is clicked ";
}
if($id=="b3"){
echo "Button 3 is clicked ";
}

?>

Append some (text/img) after some html element using jquery

Written By Unknown on Jumat, 13 September 2013 | 04.56

How to append some (text/img) after some html element using jquery 

<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script type="text/javascript" >
        $(document).ready(function(){
var i=0;
            $("#sub").on("click",function(){
$( "#1" ).append("Test "+i+" ... ");
                 i++;
                 });      
            });
 
        </script>
        </head>
    <body>
<div id="1">This is my test...</div>
<button type="button"  id="sub">Append</button>
</form>
</body>

</html>

Prepend some (text/img) before some html element using jquery

How to prepend some (text/img) before some html element using jquery 

<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script type="text/javascript" >
        $(document).ready(function(){
var i=0;
            $("#sub").on("click",function(){
$( "#1" ).prepend("Test "+i+" ... ");
                 i++;
                 });      
            });
 
        </script>
        </head>
    <body>
<div id="1">This is my test...</div>
<button type="button"  id="sub">Prepend</button>
</form>
</body>

</html>

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Kumpulan Kata Broadcast Blackberry - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger