497px-Error.svg

Errors are hints from compiler for the programmer to correct. But sometimes we face some unwanted or dynamic error. For example,

$content = file_get_contents(http://www.twitter.com/feed/234);

Here , the url is invalid, or the server of the url is down , PHP shows Warning: Failed to open stream or file access is disabled.

Use @ in front of such function never shows any warning message.

Eg: $content = @file_get_contents(url here) or die (‘Sorry , cannot access the url’);

Another method is runtime PHP ini editing

ini_set (‘display_errors’, 0);

//write the code which may cause error here

ini_set (‘display_errors’, 1);

But , these things are not recommended. Only for unavoidable situations.

· · · ◊ ◊ ◊ · · ·

Carousels with jQuery

28 Apr 2010

jCarousel is a simple jQuery plugin to create continuous sliding effect.  I like the way they created the plugin.

http://sorgalla.com/jcarousel/

jcarousel

jCarousel uses both javascript array and structured html  for inputing data. The data can be modified with html using post callback functions. For example, you can show flicker images using jCarousel by importing the images as an javascript array. To format the appearance and style , you can use html in callback function.

If you need to you fully html based Carousel, use  jCarouselLite

Tags: , , , , , , ,

· · · ◊ ◊ ◊ · · ·

Quick Favicon

27 Apr 2010

Some days back I got a new website from my friend Lee to generate favicon for website.

Here is the url : http://www.convertico.com/

Thanks

Sajith

Tags: , , , ,

· · · ◊ ◊ ◊ · · ·

I think, i am becoming jQuery fan day by day. If you have an iPhone or iPod Touch or iPad, try this url in your browser:

http://sajithmr.me/jqtouch/demos/main/

You will wonder for some minutes. Yes, it is not a application, it is a website and every action is created by our dearest jQuery using jQTouch library

This is the official site of jQTouch: http://www.jqtouch.com/

jqtouch

Wait for my post about integrating jQtouch in PhoneGap to create iPhone applications within minutes.

Tags: , , , , , , , ,

· · · ◊ ◊ ◊ · · ·

Flexigrid

19 Apr 2010

In most of the project, we need to write a lot of queries to create admin backend. Especially for report generation.  In old days I used phpTables. But recently I started using Flexigrid, a jQuery plugin for displaying tables. It is very simple to write code and all work in Ajax

Here is the url: http://flexigrid.info/

If you are using Codeigniter, a good library is also available to integrate Flexigrid. You can download it from here

flexigrid

Tags:

· · · ◊ ◊ ◊ · · ·

Here is a simple jQuery plugin for creating flash based file uploader.

http://www.uploadify.com/

Look some demo here.

Include the js file and run the following script to make a file input to flash uploader

<script type="text/javascript">// <![CDATA[
$(document).ready(function() {
$('#fileInput').uploadify({
'uploader'  : 'uploadify.swf',
'script'    : 'uploadify.php',
'cancelImg' : 'cancel.png',
'auto'      : true,
'folder'    : '/uploads'
});
});
// ]]></script>

– Power to jQuery

JQuery_logo_color_onwhite

· · · ◊ ◊ ◊ · · ·