free hit counter

How to Add Speech Recognition to your Website

How to Add Speech Recognition to your Website
How to Add Speech Recognition to your Website (only Google Chrome support) Your website pages probably contain a few text fields that require user input. For instance, your site may have a search box where people type in search queries, a comment form (commonly found in blogs) while some sites have a contact form that visitors can ...

Editing .ctp Files in Dreamwaver and Eclipse

Editing .ctp Files in Dreamwaver and Eclipse
Editing .ctp Files in Dreamwaver In Dreamweaver, by default,we can’t edit our codes in .ctp script in the code or design views. Using Dreamweaver configuration, we can set it up. Here we will see the proper configuration for 1.Viewing   CTP and THTML files in code view with PHP syntax coloring 2.Viewing  CTP and THTML files in ...

CakePHP Video Encoder Component 1

CakePHP Video Encoder Component
This is a component to convert and encode videos in your CakePHP application. This was extracted from a live project. Requirements CakePHP 1.2+ ffmpeg flvtool2 How to install FFmpeg in Linux sudo apt-get install ffmpeg for more info http://linuxers.org/tutorial/how-install-ffmpeg-linux Installing FLVTool2 : Open the terminal and type following command to install FLVTool2: sudo apt-get install ...

show image before upload using jquery

show image before upload using jquery
How to show Image before upload using Jquery We’ve all seen the basic file upload form for uploading avatars, images, memes, etc. The problem with these is that once you upload your image it’s hidden from you. The solution is to use a little bit of JavaScript to upload the image as soon as it’s ...

Cross-Browser HTML5 Placeholder Text

Cross-Browser HTML5 Placeholder Text
One of the nice enhancement in HTML5 web form is being able to add placeholder text to inputfields. Placeholder attribute allows you to display text in a form input when it is empty and when it is not focused (it clears the field on focus). This is a nifty feature, but it is not supported ...

How to send PHP Simple E-Mail

How to send PHP Simple E-Mail
The simplest way to send an email with PHP is to send a text email. In the example below we first declare the variables ($to, $subject, $message, $from, $headers), then we use the variables in the mail() function to send an e-mail: <?php $to = “someone@example.com”; $subject = “Test mail”; $message = “Hello! This is ...

How to Open popup window with open.window method

How to Open popup window with open.window method
To open a new window by clicking on the link, you will need to use window.open method of javascript. Sample of popup window <a href="javascript: void(0)" onclick="window.open('popup.html', 'windowname1', 'width=200, height=77'); return false;">Click here for simple popup window</a> Now you can open a simple window, also this function can have different features of that window to ...

How to Select All Text by Clicking on Text Field or Textarea Box

How to Select All Text by Clicking on Text Field or Textarea Box
This script highlight all text in textarea or text field (input tag) by clicking on it. It allows users to reduce their manual work. For instance when users need to copy to the clipboard all text quickly or quickly delete the text from the field. For example: to copy a piece of code or to ...