Search Keyword:

This tutorial teaches you on how to create page content tabbing using Jquery javascript framework,HTML and CSS.You can see it in action by clicking here and you can download the files by clicking here.

What we will need:
1. Jquery javascript framework
2. JQuery UI

Read the rest of this entry »

This article will show and explain to you how to fire a simple AJAX request in CodeIgniter using Jquery.In this example we will have a form,with username and password field on it,check if the fields are empty and validate it against a correct username and password.You can check out the demo by clicking here.

Note:Database interactions and CodeIgniter’s form validation is not included in this tutorial, and it is up to you to use the functions mentioned in your own application when you will need it.This tutorial only shows how data is passed and returned via AJAX in your CodeIgniter application. Read the rest of this entry »

These functions are equivalent to PHP’s trim() and nl2br() function written in Javascript and are most useful in working with formatting text inputs and textareas values.Trim() strips whitespaces from the beginning and end of a string and nl2br() inserts HTML line breaks (<br />) and replaces newlines or carriage returns(Enter key) in a string.

The function:

function trimStr(input_string)
{
return input_string.replace(/^\s+|\s+$/g, ”);
}

function nl2brStr(input_string)
{
return input_string.replace(/(\r\n|\r|\n)/g, “<br />”);
}

Usage:

You can use the functions individually or by joining them together.See the demo for sample implementations by clicking here.

Sponsored Links



Recent Comments

  • admin: Hello Ron, You can check the firmware by navigating into Settings > System Settings > System Information .The...
  • Ron: I Just Bought A PSP 3000 And The Mfr. Date Said 11/09/09 And Was Wondering If Anyone Know What Firmware Is On...
  • MANEE323: Took me awhile but I finally got it THANKS a million!!!!!!
  • spencer bandin: ang galing mo po kuya ryan…
  • chris: Thanks,ill give it a go.