How to Check Username Availability using jQuery + PHP

November 3rd, 2009 by dr.emi

Hi! dude! how are you today ? I hope all of you will fine :)

Today is our nice day, it’s time to party. Let’s learn again about jQuery and PHP. How to create safety validation of username checker for your member register using jQuery and PHP ? Check it now!

read more

 

Popularity: 27% [?]

White Space Problem with JavaScript

October 31st, 2009 by dr.emi

This tutorial will explain about how to solve white space problem with JavaScript. One time, I founded bug on my PHP script. White space was broke it! Shit!. However javascript doesn’t have trim function like PHP. For example, if you want to validate user form using jQuery and PHP, my advice is: you must check the white spaces before send string to PHP Action Script. Then you will fine to use PHP trim function or class defined.

It’s fuck’n crazy. My jQuery not respond If I don’t check white space before send string into PHP script. So I need to find the white space before send it!

Here are my simple javascript code to find and count the white spaces:

// Count the number of times a substring is in a string.
String.prototype.substrCount =
  function(s) {
    return this.length && s ? (this.split(s)).length - 1 : 0;
  };

//some function to implementad
function loadContentResult(id) {
	if(id.substrCount(' ') > 0)
	{
		window.alert('I found white spaces on field');
	}
       else
       {
		window.alert('White spaces cleared!! You may add the next PHP / jQuery here');
       }

First: counting white space as problem caused

String.prototype.substrCount =
  function(s) {
    return this.length && s ? (this.split(s)).length - 1 : 0;
  };

Next, we will try the scripts as user id validator on my jQuery tutorial. See you!

Popularity: 14% [?]

Download PHP Script: Backup and Restore Database

October 1st, 2009 by dr.emi

Hi guys!

This is PHP Script to backup or restore your SQL Database. It’s Free to download!

Just visit my PHPClasses Page:
http://www.phpclasses.org/browse/package/5720.html

Or let’s discuss about something bug or report on:
http://www.phpclasses.org/discuss/package/5720/

Popularity: 21% [?]

Web Design Layout Plus Implementasi jQuery Tab Content

November 26th, 2008 by dr.emi

Welcome back friend ! tutorial ini menjelaskan bagaimana membuat sebuah layout yang interaktif. Penggabungan dari designing web layout menggunakan photoshop dan Editing dengan HTML+CSS. Kemudian mengimplementasikannya menggunakan jQuery Ajax saat meload PHP Content

read more

 

Popularity: 54% [?]

Memperkenalkan dreDSync V.1.0 Produk Terbaru dr.emi

November 2nd, 2008 by dr.emi

dreDSync V.1.0 merupakan karya gw ke-sekian kalinya untuk dunia IT, berfungsi sebagai Data Syncronizer yang berbasis pada komunikasi Flat File TXT dan Socket Detection. Gw bikin menggunakan bahasa pemrograman PHP dan terinspirasi dari project terbaru gw CBT of TNI.

read more

 

Popularity: 8% [?]

Cara Nampilin Jam dan Tanggal Ala Javascript

February 6th, 2007 by dr.emi

Cara Nampilin Jam dan Tanggal Ala Javascript

read more

 

Popularity: 5% [?]

 
 
 
 
Category
stack

Switch to our mobile site