Tampilkan postingan dengan label JQuery. Tampilkan semua postingan

Untuk tetap dapat berkomunikasi dengan pengunjung setiap website memiliki cara untuk itu. salah satunya membuat fasilitas Contact Us atau Hubungi Kami. Dimana pengunjung dapat mengirimkan pesan langsung ke email pengelola website. Dengan demikian pengelola website dapat dengan cepat merespon feedback dari pengunjung atau customer.

Berikut program sederhana menggunakan Ajax dan PHP untuk membuat Form "Hubungi Kami"



Pertama-tama disiapkan script HTML yang berisi Form isian dan content :

<body>

<div class="wideBox">
<h1>Membuat form "Hubungi Kami" dengan Ajax dan PHP</h1>
<h2>Klik Link "Hubungi Kami"...</h2>
</div>

<div id="content">


<p style="padding-top: 50px; font-weight: bold; text-align: center;"><a href="#contactForm">~ Hubungi Kami ~</a></p>

</div>

<form id="contactForm" action="processForm.php" method="post">

<h2>Silahkan mengirimkan pesan kepada kami...</h2>

<ul>

<li>
<label for="senderName">Nama Lengkap</label>
<input type="text" name="senderName" id="senderName" placeholder="Silahkan isi nama lengkap anda" required="required" maxlength="40" />
</li>

<li>
<label for="senderEmail">Alamat Email</label>
<input type="email" name="senderEmail" id="senderEmail" placeholder="Silahkan isi alamat email anda" required="required" maxlength="50" />
</li>

<li>
<label for="message" style="padding-top: .5em;">Isi Pesan</label>
<textarea name="message" id="message" placeholder="Silahkan isi pesan anda" required="required" cols="80" rows="10" maxlength="10000"></textarea>
</li>

</ul>

<div id="formButtons">
<input type="submit" id="sendMessage" name="sendMessage" value="Kirim" />
<input type="button" id="cancel" name="cancel" value="Batal" />
</div>

</form>

<div id="sendingMessage" class="statusMessage"><p>Mengirim pesan anda, silahkan...</p></div>
<div id="successMessage" class="statusMessage"><p>Terimakasih telah mengirim pesan! Kami akan segera merespon pesan anda.</p></div>
<div id="failureMessage" class="statusMessage"><p>Pengiriman pesan gagal. Silahkan coba lagi.</p></div>
<div id="incompleteMessage" class="statusMessage"><p>Silahkan cek ulang isian anda.</p></div>

<div class="wideBox">
<p>&copy; antefer.blogspot.com</p>
</div>

</body>

dari potongan script di atas, form akan mengirimkan data ke halaman processForm.php. Untuk processForm.php berisi program php mailer untuk mengirim email menggunakan fungsi PHP

<?php

// Menentukan variabel constan untuk penerima email
define( "RECIPIENT_NAME", "Penerima" );
define( "RECIPIENT_EMAIL", "email@penerima.com" );
define( "EMAIL_SUBJECT", "Pesan pengunjung" );

// Ambil isi dari Form isian
$success = false;
$senderName = isset( $_POST['senderName'] ) ? preg_replace( "/[^.-' a-zA-Z0-9]/", "", $_POST['senderName'] ) : "";
$senderEmail = isset( $_POST['senderEmail'] ) ? preg_replace( "/[^.-_@a-zA-Z0-9]/", "", $_POST['senderEmail'] ) : "";
$message = isset( $_POST['message'] ) ? preg_replace( "/(From:|To:|BCC:|CC:|Subject:|Content-Type:)/", "", $_POST['message'] ) : "";

// Jika semua isian terisi
if ( $senderName && $senderEmail && $message ) {
$recipient = RECIPIENT_NAME . " <" . RECIPIENT_EMAIL . ">";
$headers = "From: " . $senderName . " <" . $senderEmail . ">";
$success = mail( $recipient, EMAIL_SUBJECT, $message, $headers );
}

// Mengembalikan respon ke browser
if ( isset($_GET["ajax"]) ) {
echo $success ? "success" : "error";
} else {
?>
<html>
<head>
<title>Terima kasih!</title>
</head>
<body>
<?php if ( $success ) echo "<p>Terimakasih telah mengirim pesan! Kami akan segera merespon pesan anda.</p>" ?>
<?php if ( !$success ) echo "<p>Pengiriman pesan gagal. Silahkan coba lagi.</p>" ?>
<p>Klik pada tombol back di bowser anda untuk kembali ke halaman utama.</p>
</body>
</html>
<?php
}
?>

Untuk menangani Form isian digunakan program  sebagai berikut :

var messageDelay = 2000;  // Belerapa lama untuk memunculkan notifikasi (milliseconds)

// Inisialisasi form ketika halaman telah siap
$( init );


// Inisialisasi Form

function init() {

// Sembunyikan Form
// Membuat fungsi submitForm()
// Posisikan form ditengah-tengah halaman.
$('#contactForm').hide().submit( submitForm ).addClass( 'positioned' );

// Ketika link "Hubungi Kami" di klik maka:
// 1. membuat efek fade pada form isian
// 2. munculkan form isian
// 3. Fokuskan pada field pertama


$('a[href="#contactForm"]').click( function() {
$('#content').fadeTo( 'slow', .2 );
$('#contactForm').fadeIn( 'slow', function() {
$('#senderName').focus();
} )

return false;
} );

// Ketika tombol "batal" di klik, tutup form isian
$('#cancel').click( function() {
$('#contactForm').fadeOut();
$('#content').fadeTo( 'slow', 1 );
} );

// Ketika tombol "Esc" keyboard ditekan, tutup form isian
$('#contactForm').keydown( function( event ) {
if ( event.which == 27 ) {
$('#contactForm').fadeOut();
$('#content').fadeTo( 'slow', 1 );
}
} );

}

Untuk menangani proses pengiriman isian, validasi, dan notofikasi digunakan Ajax sebagai berikut :

// Submit Form dengan ajax

function submitForm() {
var contactForm = $(this);

// Apakah semua field dalam isian terisi semua?

if ( !$('#senderName').val() || !$('#senderEmail').val() || !$('#message').val() ) {

// Jika tidak; munculkan notifikasi
$('#incompleteMessage').fadeIn().delay(messageDelay).fadeOut();
contactForm.fadeOut().delay(messageDelay).fadeIn();

} else {

// Jika ya; Submit isian form ke PHP dengan Ajax

$('#sendingMessage').fadeIn();
contactForm.fadeOut();

$.ajax( {
url: contactForm.attr( 'action' ) + "?ajax=true",
type: contactForm.attr( 'method' ),
data: contactForm.serialize(),
success: submitFinished
} );
}

return false;
}


// menangani respon dari Ajax

function submitFinished( response ) {
response = $.trim( response );
$('#sendingMessage').fadeOut();

if ( response == "success" ) {

// Jika isian terkirim sempurna:
// 1. munculkan notifikasi
// 2. Hapus isian Form
// 3. tutup isian form

$('#successMessage').fadeIn().delay(messageDelay).fadeOut();
$('#senderName').val( "" );
$('#senderEmail').val( "" );
$('#message').val( "" );

$('#content').delay(messageDelay+500).fadeTo( 'slow', 1 );

} else {

// Jika isian gagal terkirim: Munculkan notifikasi,
// tampilkan form isian kembali
$('#failureMessage').fadeIn().delay(messageDelay).fadeOut();
$('#contactForm').delay(messageDelay+500).fadeIn();
}
}

Terakhir membuat stylesheep untuk desain tampilan form dan notifikasi sebagai berikut :
<style type="text/css">


/* Style untuk body */

body {
margin: 30px;
font-family: "Georgia", serif;
line-height: 1.8em;
color: #333;
}


/* Menentukan dimensi dari div content */

#content {
width: 800px;
padding: 50px;
margin: 0 auto;
display: block;
font-size: 1.2em;
}

#content h2 {
line-height: 1.5em;
}


/* Menentukan tampilan rounded border pada beberapa elemen */

#contactForm, .statusMessage, input[type="submit"], input[type="button"] {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}


/* Style for the contact form and status messages */

#contactForm, .statusMessage {
color: #666;
background-color: #ebedf2;
background: -webkit-gradient( linear, left bottom, left top, color-stop(0,#dfe1e5), color-stop(1, #ebedf2) );
background: -moz-linear-gradient( center bottom, #dfe1e5 0%, #ebedf2 100% );
border: 1px solid #aaa;
-moz-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
-webkit-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
box-shadow: 0 0 1em rgba(0, 0, 0, .5);
opacity: .95;
}


/* Ukurann dari form isian */

#contactForm {
width: 40em;
height: 33em;
padding: 0 1.5em 1.5em 1.5em;
margin: 0 auto;
}


/* Menentukan posisi dari form isian di halaman (center) */

#contactForm.positioned {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin-top: auto;
margin-bottom: auto;
}


/* Menentukan posisi dari pesan notifikasi */

.statusMessage {
display: none;
margin: auto;
width: 30em;
height: 2em;
padding: 1.5em;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}

.statusMessage p {
text-align: center;
margin: 0;
padding: 0;
}


/* Menentukan header dari form isian */

#contactForm h2 {
font-size: 2em;
font-style: italic;
letter-spacing: .05em;
margin: 0 0 1em -.75em;
padding: 1em;
width: 19.5em;
color: #aeb6aa;
background: #dfe0e5;
border-bottom: 1px solid #aaa;
-moz-border-radius: 10px 10px 0 0;
-webkit-border-radius: 10px 10px 0 0;
border-radius: 10px 10px 0 0;
}


/* menetukan margin dari form isian */

#contactForm ul {
list-style: none;
margin: 0;
padding: 0;
}

#contactForm ul li {
margin: .9em 0 0 0;
padding: 0;
}

#contactForm input, #contactForm label {
line-height: 1em;
}


/* Menetukan style untuk label */

label {
display: block;
float: left;
clear: left;
text-align: right;
width: 28%;
padding: .4em 0 0 0;
margin: .15em .5em 0 0;
font-weight: bold;
}


/* Menentukan style dari input fields */

input, textarea {
display: block;
margin: 0;
padding: .4em;
width: 67%;
font-family: "Georgia", serif;
font-size: 1em;
border: 1px solid #aaa;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: rgba(0,0,0,.2) 0 1px 4px inset;
-webkit-box-shadow: rgba(0,0,0,.2) 0 1px 4px inset;
box-shadow: rgba(0,0,0,.2) 0 1px 4px inset;
background: #fff;
}

textarea {
height: 13em;
line-height: 1.5em;
resize: none;
}


/* Menetukan style border round dan shadow dari form */

#contactForm *:focus {
border: 1px solid #66f;
outline: none;
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
}


/* Menetukan input fields jika pengisian benar */

input:valid, textarea:valid {
background: #dfd;
}


/* Menentukan style untuk Tombol batal dan Kirim */

input[type="submit"], input[type="button"] {
float: right;
margin: 2em 1em 0 1em;
width: 10em;
padding: .5em;
border: 1px solid #666;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
-webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
color: #fff;
background: #0a0;
font-size: 1em;
line-height: 1em;
font-weight: bold;
opacity: .7;
-webkit-appearance: none;
-moz-transition: opacity .5s;
-webkit-transition: opacity .5s;
-o-transition: opacity .5s;
transition: opacity .5s;
}

input[type="submit"]:hover,
input[type="submit"]:active,
input[type="button"]:hover,
input[type="button"]:active {
cursor: pointer;
opacity: 1;
}

input[type="submit"]:active, input[type="button"]:active {
color: #333;
background: #eee;
-moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
-webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
}

input[type="button"] {
background: #f33;
}


/* menetukan style header dan footer dari kotak form */

.wideBox {
clear: both;
text-align: center;
margin: 70px;
padding: 10px;
background: #ebedf2;
border: 1px solid #333;
}

.wideBox h1 {
font-weight: bold;
margin: 20px;
color: #666;
font-size: 1.5em;
}

</style>

<!-- Style untuk IE7 -->

<!--[if lt IE 8]>
<style>

/* Menetukan posisi dari fields isian di IE7 */

input, textarea {
float: right;
}

#formButtons {
clear: both;
}


#contactForm.positioned, .statusMessage {
left: 50%;
top: 50%;
}

#contactForm.positioned {
margin-left: -20em;
margin-top: -16.5em;
}

.statusMessage {
margin-left: -15em;
margin-top: -1em;
}

</style>
<![endif]-->

Agar Ajax dapat berjalan gunakan jQuery library yang dapat mengambil link langsung dan tempatkan pada <head> :

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>

Demikian sedikit contoh tentang pembuatan Form Contact Us dengan Ajax dan PHP. Dapat dilakukan modifikasi misalnya, menggunakan captcha untuk mencegah spam. Untuk demo dapat dilihat disini. Untuk download source code-nya dapat didownload disini.

Description: Membuat Form "Contact Us" dengan Ajax dan PHP
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Membuat Form "Contact Us" dengan Ajax dan PHP
Berbagai macam cara digunakan untuk masuk ke halaman yang memerlukan autentikasi. Kali ini sedikit contoh sederhana untuk melakkukan login dengan PHP menggunakan jQuery sebagai fasilitas login menggunakan MySQL sebagai tempat menyimpan informasi login.


Pertama-tama harus membuat file koneksi ke MySQL :
<?php

$hostname = 'localhost'; // Hostname
$dbname = 'database'; // Nama Database
$username = 'username'; // Username Database
$password = 'password'; // Database password

// Koneksi ke databse
mysql_connect($hostname, $username, $password) or DIE('Koneksi ke server gagal !');
// Pilih database
mysql_select_db($dbname) or DIE('Database tidak tersedia !');

?>

selanjutnya diperlukan javascript yang menggunakan jQuery library untuk elakukan proses login. simpan menggunakan nama init.js :

// Animasi loading
img1 = new Image(16, 16);
img1.src="images/spinner.gif";

img2 = new Image(220, 19);
img2.src="images/ajax-loader.gif";

// Ketika DOM telah siap
$(document).ready(function(){

// Munculkan modal box ketika "LOGIN" di klik
$("#login_link").click(function(){
$('#login_form').modal();
});

// Ketika melakukan login
$("#status > form").submit(function(){

// Sembuyikan tombol "Login"
$('#submit').hide();

// Tampilkan animasi loading
$('#ajax_loading').show();

// 'this' mengacu pada form login
var str = $(this).serialize();

// -- Memulai AJAX Call --

$.ajax({
type: "POST",
url: "do-login.php", // kirim login info ke halaman do-login.php
data: str,
success: function(msg){

$("#status").ajaxComplete(function(event, request, settings){

// Tampilkan tombol 'Submit'
$('#submit').show();

// Sembunyikan animasi loading
$('#ajax_loading').hide();

if(msg == 'OK') // LOGIN OK?
{
var login_response = '<div id="logged_in">' +
'<div style="width: 350px; float: left; margin-left: 70px;">' +
'<div style="width: 40px; float: left;">' +
'<img style="margin: 10px 0px 10px 0px;" align="absmiddle" src="images/ajax-loader.gif">' +
'</div>' +
'<div style="margin: 10px 0px 0px 10px; float: right; width: 300px;">'+
"Selamat anda berhasil masuk! <br /> Silahkan tunggu untuk masuk ke member area...</div></div>";

$('a.modalCloseImg').hide();

$('#simplemodal-container').css("width","500px");
$('#simplemodal-container').css("height","120px");

$(this).html(login_response); // Refers to 'status'

// Setelah 3 detik redirect ke halaman member area
setTimeout('go_to_private_page()', 3000);
}
else // ERROR?
{
var login_response = msg;
$('#login_response').html(login_response);
}

});

}

});

// -- Akhir AJAX Call --

return false;

});

});

function go_to_private_page()
{
window.location = 'berhasil.php'; // Members Area
}

kemudian untuk proses login dibuat file PHP dan disimpan dalam bentuk do-login.php :
<?php
$config = array();

// memunculkan semua eror kecuali notifikasi
error_reporting(E_ALL ^ E_NOTICE);

// Start session
session_id();
session_start();
header('Cache-control: private'); // IE 6 FIX

include('config.inc');
$nama = mysql_real_escape_string($_POST['email']);
$pass = mysql_real_escape_string($_POST['password']);
$login = mysql_query("select nama, password from user where (nama like '" . $nama . "') and (password like '" . $pass . "')");
// ambil data dari database informasi tentang user
while ($row = mysql_fetch_object($login)) {
$tipe = $row->tipe;
$config['email'] = $row->nama;
$config['password'] = $row->password;

}

$_SESSION['tipe'] = $tipe;

if($_POST['action'] == 'user_login')
{
$post_email = mysql_real_escape_string($_POST['email']);
$post_password = mysql_real_escape_string($_POST['password']);

// cek username dan password

if($post_email == $config['email'] && $post_password == $config['password'])
{
// Jika tidak ada eror? register session dan arahkan user ke halaman pribadi mereka

$_SESSION['username'] = $username;

echo 'OK';
}
else
{
$auth_error = '<div id="notification_error">Maaf informasi login yang diberikan salah !!!.</div>';

echo $auth_error;
}
}
?>

Buat contoh halaman yang akan dituju jika autentikasi berhasil dan untuk contoh ini diberi nama berhasil.php :
<?php
// Inialize session
session_start();
// cek jika username belum ada di session maka lompat ke halaman utama
if (!isset($_SESSION['username'])) {
header('Location: index.php');
}else{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Member Area</title>

<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />

</head>

<body>


Ini adalah halaman jika berhasil melakukan autentikasi<br />
<span style='font-size: 15px;'><a href='logout.php'>KELUAR</a></span>

</body>
</html>
<?php
}
?>

Untuk melakukan proses Logout dari halaman hasil autentikasi dibuat sebuah file logout.php :
<?php
// Inialize session
session_start();

if(isSet($_SESSION['username']))
{
unset($_SESSION['username']);

header("Location: index.php");
exit;
}else{
header('Location: index.php');
}
?>

Yang terakhir adalah halaman utama jika belum melakukan autentikasi disimpan ke index.php :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contoh sederhana proses login menggunakan PHP, AJAX, dan MySQL</title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>

<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />

</head>

<body>

Contoh Login menggunakan PHP, Ajax, dan MySQL<br />

<span style="font-size: 15px;"><a id="login_link" href="#">LOGIN</a></span>


<div id="login_form" style='display:none'>

<div id="status" align="left">

<center><h1><img src="images/key.png" align="absmiddle">&nbsp;LOGIN</h1>

<div id="login_response"><!-- spanner --></div> </center>

<form id="login" action="javascript:alert('success!');">
<input type="hidden" name="action" value="user_login">
<input type="hidden" name="module" value="login">
<label>Username</label><input type="text" name="email"><br />
<label>Password</label><input type="password" name="password"><br />
<label>&nbsp;</label><input value="Login" name="Login" id="submit" class="big" type="submit" />

<div id="ajax_loading">
<img align="absmiddle" src="images/spinner.gif">&nbsp;Proses...
</div>

</form>

</div>

</div>

</body>
</html>

Untuk file-file pelengkap seperti stylesheet.css, jquery.simplemodal.js, beserta file gambar dapat didownload disini. Untuk melihat hasil dari contoh diatas dapat dilihat disini.
Demikian sedikit contoh mengenail Login serderhana dengan PHP, jQuery dan MySQL dan tentunya dapat dilakukan berbagai modifikasi sesuai kebutuhan.

Description: Login Form sederhana dengan PHP, jQuery dan MySQL
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Login Form sederhana dengan PHP, jQuery dan MySQL

Jquery Photo Zoom Plugin

Selasa, 04 Desember 2012
Posted by Unknown
Introducing a new jQuery PhotoZoom plugin, it helps you to view bigger images on mouse over component, this is very useful for media related web applications. You can customize the PhotoZoom container based on your web page design. Very easy to implement just include the plugin using script tag and give required selector, take a look this live demo.
Jquery Photo Zoom Plugin
Read more »
Description: Jquery Photo Zoom Plugin
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Jquery Photo Zoom Plugin
If you are working with a single page application, then you must adopt backbone.js features and this helps your web project to be more powerful. Backbone.js is basically a lightweight framework that allows you to structure your JavaScript code in Model View Controller. This post I had covered basic implementation of router and URL hashing techniques.

Free PHP Hosting .
Read more »
Description: Backbone.js Router Hashing Tutorial
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Backbone.js Router Hashing Tutorial
This post is the continuation of my previous last post, I had explained how to create a basic RESTful web services API using Java, now I want to explain JSON transformer to work with input Get and Post methods parameters. Just added a new class called transformer it converts object data into JSON text output format.

RESTful Web Services with input parameters
Read more »
Description: RESTful Web Services JSON API Transformer with Java
Rating: 4.5
Reviewer: Unknown
ItemReviewed: RESTful Web Services JSON API Transformer with Java
Are you working with multiple devices like iPhone, Android and Web, then take a look at this post that explains you how to develop a RESTful API in Java. Representational state transfer (REST) is a software system for distributing the data to different kind of applications. The web service system produce status code response in JSON or XML format.

RESTful Web Services using Java and MySQL
Read more »
Description: RESTful Web Services API using Java and MySQL
Rating: 4.5
Reviewer: Unknown
ItemReviewed: RESTful Web Services API using Java and MySQL
Are you looking for Drag and Drop multiple file upload using HTML5. Just take a look at this post, I had implemented this system with using jquery and PHP that uploads multiple files into server. This script helps you to enrich your web applications upload system. It works with all modern browsers try live demo and drop files.

Multiple File Drag and Drop Upload
Read more »
Description: Multiple File Drag and Drop Upload using HTML5 and Jquery.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Multiple File Drag and Drop Upload using HTML5 and Jquery.
This is the continuation of my previous Java tutorial Insert Records into MySQL database using Jquery, now I want to explain how to convert records data into JSON data format and display JSON data feed using Jquery. It's simple just follow few steps with Eclipse IDE, hope you understand the Model View Controller pattern Thanks!

Java JSON Jquery Display Records
Read more »
Description: Java MySQL JSON Display Records using Jquery.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Java MySQL JSON Display Records using Jquery.

Facebook Wall Script 5.0

Senin, 13 Agustus 2012
Posted by Unknown
Very Long days back I released a commercial script called Wall Script 4.0, It is a rich Jquery, PHP, MySQL application and collaboration of 9lessons blog tutorials. After many requests I’m releasing Wall Script 5.0 with extra features like friend relations, user authentication, news feed with existing Wall Script 4.0 features and implemented latest Jquery plugins Don't miss the video demo. Thanks

Facebook Wall Script
Read more »
Description: Facebook Wall Script 5.0
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Facebook Wall Script 5.0
If you know Java concepts, you can easily understand any kind of language very quickly. If you want to became a good programmer, I strongly suggest start with J2EE programming. I heard that many people feels that it's though After long time I decided to write about J2EE programming with Jquery in a simple and better understanding way, hope you like it. Thanks!

Menu Design with JSON Data.
Read more »
Description: Java MySQL Insert Record using Jquery.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Java MySQL Insert Record using Jquery.
Banyak Javascript librari (mootools, prototype) )menggunakan $ sebagai pengganti fungsi atau nama variable seperti pada jQuery.

Pada jQuery $ hanya sebagai alias dari jQuery, sehingga semua fungsi dapat digunakan tanpa menggunakan $. Jika kita menginginkan untuk menggunakan librari lain bersamaan dengan menggunakan jQuery, kita dapat menggunakan syntax :
$.noConflict():

Contoh: Mengembalikan semua obect yang tadinya direferensikan $ kembali ke $.

jQuery.noConflict();
// tambahkan program jQuery disini
jQuery("div p").hide();
// tambahkan program librari lain dengan disini $()
$("content").style.display='none';

Contoh : jQuery tetap menggunakan $ untuk objectnya, dengan membungkus fungsi jQuery asli dengan jQuery alias "(.........................)(jQuery);"

jQuery.noConflict();
(function($){
  $(function(){
    // kode jQery asli yang menggunakan $
  });
})(jQuery);
// kode yang menggunakan $ sebagai alias untuk librari lain

Contoh: dapat menggabungkan jQuery.noConflict() menjadi satu :

jQuery.noConflict()(function(){
    // kode jQuery
});// kode yang menggunakan $ sebagai alias untuk librari lain

Contoh: Membuat alias berbada untuk jQuery dan dapat digunakan dimana jQuery librari akan dipanggil.

var j = jQuery.noConflict();
// script jQuery
j("div p").hide();
// librari lain dengan $()
$("content").style.display = 'none';

Contoh: Mimindahkan seluruh jQuery ke dalam objek lain.

var dom = {};
dom.query = jQuery.noConflict(true);

Hasilnya:

// jQuery yang baru
dom.query("div p").hide();
// librari lain dengan $()
$("content").style.display = 'none';
// jquery dengan versi yang berbeda
jQuery("div > p").hide();

Description: Agar JQuery library dapat dipakai bersama dengan library lain
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Agar JQuery library dapat dipakai bersama dengan library lain
This post is very basic level Jquery and CSS implementation. I want to explain how to design simple drop down menu  with CSS, HTML and Jquery. This system helps you to minimise the menus list. Just take a quick look at this post very few lines of code, use it and enrich your web projects. 

Drop Down Menu with Jquery and CSS
Read more »
Description: Simple Drop Down Menu with Jquery and CSS
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Simple Drop Down Menu with Jquery and CSS
Few months back I had posted any article about Facebook New Timeline Design HTML version using CSS and Jquery, after that I received many requests from wall script users and readers that asked to me how to convert this into dynamic with PHP and MySQL. This is an update for Wall Script 4.0 users to convert the user updates into timeline data visualization just take a look at the this live demo with multiple actions like scrolling results, commenting, updating, expanding and delete.

Facebook Style Dynamic Timeline for Wall Script.
Read more »
Description: Facebook Style Dynamic Timeline for Wall Script.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Facebook Style Dynamic Timeline for Wall Script.
I had designed a simple interesting login box with contains Gravatar image, just importing user avatar from Gravatar.com based on email ID.  This post is very basic level CSS implementation and few lines of Jquery and PHP code. I hope this login box design  gives special flavor to to your web project. Before trying this live demo upload your avatar at Gravatar.

Gravatar Login Box Design with Jquery, CSS and PHP.
Read more »
Description: Gravatar Login Box Design with Jquery, CSS and PHP.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Gravatar Login Box Design with Jquery, CSS and PHP.
Introducing a new jQuery emotions plugin, This helps you to convert text symbols to emotion images like how social chat editor works. This plugin developed by ArunKumar Sekar using javascript regular expression match rules. In first version we providing facebook emotion theme, next release we are going to include some more better emotion icons.

Facebook Style Emotions Jquery Plugin
Read more »
Description: Facebook Style Emotions Jquery Plugin
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Facebook Style Emotions Jquery Plugin
This post is a continuation of my previous post Bootstrap tutorial for blog design and already explained about fluid page design. Today let's look at the form HTML elements that comes with Twitter Bootstrap toolkit using these I made a rich registration/sign up form with validation in 10 mins . Bootstrap helps you to produce clean and highly usable applications, it will reduce larger engineering efforts and gives uniform application solutions.

Bootstrap Tutorial for Registration Form.
Read more »
Description: Bootstrap Registration Form Tutorial.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Bootstrap Registration Form Tutorial.
We received many tutorial requests from 9lessons readers that asked how to create file upload progress bar with PHP and Jquery. In this post Arun Kumar Sekar had developed few lines of code using PHP APC library, it is very simple getting the server file upload process every few second and increasing the bar color using jquery css property. Just take a look at this demo.

File Upload Progress Bar
Read more »
Description: File Upload Progress Bar with Jquery and PHP.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: File Upload Progress Bar with Jquery and PHP.
Are you working at multi national company, not able to access popular technology blogs powered by wordpress and blogspot articles because of websense firewall rules. I'm introducing (reader.9lessons.info) using that you can access websense blocked articles. It's simple concept URL RSS data using api.thequeue.org and sending request and response from Google feed API. Using this you can build flipboard kind of application.

Access Websense Blocked URLs.
Read more »
Description: Access Websense Blocked Articles.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Access Websense Blocked Articles.

Wall Script 4.0 Update.

Senin, 27 Februari 2012
Posted by Unknown
OEmbed expand URL service acquired by embed.ly, now it’s paid service so that I’m releasing this expanding URL fix. Right now this function will work with Youtube and Vimeo links. I have been working with few more popular services. For demo check my profile at labs.9lessons labs.9lessons.info/srinivas

Wall Script 4.0 Update.
Read more »
Description: Wall Script 4.0 Update.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Wall Script 4.0 Update.
I know what my readers are expecting from 9lessons blog, after long time I'm going to discuss about Jquery usage. Facebook timeline design makes big revolution in social networking world and it gives new feel to the user profile pages. In this post I want to explain how simple I had implemented this design with Jquery and CSS. Try this demo with modern browsers like Chrome, Firefox and Safari (IE is dead).

Facebook Timeline Design using  JQuery and CSS.
Read more »
Description: Facebook Timeline Design using JQuery and CSS.
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Facebook Timeline Design using JQuery and CSS.
Welcome to My Blog

Popular Post

Labels

Followers

- Copyright © 2013 shad0w-share | Designed by Johanes Djogan -