Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

DOM Element Replacement in jquery

If you want to replace html element with some other element, the jquery replaceWith method can be used. You can replace some specified DOM element with the other html or DOM element. The replaceWith() method is used in this case. Syntax: ...

Cookies in PHP

Cookie is a small file that identifies the users on the user's computer. whenever the same computer request to the server for the same page, the browser will send the cookie with the request. To create Cookie we can use the setcookie() functi...

Save your Activity state

Android activity life cycle contains onCreate() -> onStart() -> onResume() -> onPause() -> onStop() -> onDestroy() where we have another life cycle method that helps to save activity current state everytime. Basically Activity ...

how to show multiple location from database using lat and long in google map?

Hello Reader's , Below is the code for showing multiple location . Just create a HTML file 'index.html' and put the below code inside the body tag. <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascrip...

How to install downloaded apk through code in android?

If you want to install the downloaded .apk from your device through java code than you just need the path and the name of that .apk, if you have these two thing (path and the name of that .apk) than you just need to use the code given below. /...

Creating a unique home page template, Drupal 7 theme

Drupal Provides you lot of option to creat a unique home page or say site front page. This could be achieved by number ways bdefined below. Firstly Access the /sites/all/theme[active theme], copy a page.tpl.php page and paste it in same ...

How to get the name of Controller and Action method in View using Asp.Net MVC

Get the name of Controller and Action method in View using Asp.Net MVC In one of my Asp. Net MVC project, I needed the name of the Controller and the Action Method in the View page. For this I used the following code:- @{ var acti...

How to call different layout in Zend Framework

Hello Friends, Some time we need to set a different layout for our web-page. Mean this page will appear some thing different by the mean of different header, footer or some thing different by look and appearance. For this you need create a dif...

Retrieving the text contents and reading the selected portion of a field's value

To retrieve the text selected by the user is to get the indices of the starting and the ending character of the selection. After that you need to extract that particular portion from the form fields value using those retrieved values. To get ...

Slidebar Menu plugin in Jquery

We can create a slidebar menu using jquery slidebar plugin. It is a jQuery plugin that gives a slidebar menu for easily implementing in the web pages. We have to include slidebars.js in our source files. Here is an example that shows how to...

Jquery animate() method

Hello Readers, The jQuery animate() method is used to create custom animations. If you want to create some animation effect in your HTML, then you can use jQuery .animate() method for the same. We use following syntax for create animation....

How to install Appium on Windows

Appium is an open source tool for mobile automation. Appium is very user friendly and a powerful tool. The best part of this tool is to write test only once and then execute on different devices. This tool is also platform independent and we can ...

How to disable layout in Zend Framework

Hello Friends, Some time we need to disable layout of our page. No layout mean no header, no footer, no left bar, no right bar. You want to display the main page content part like if you are using AJAX at that time you need to disable layout f...

How to check an element is exists or not?

In JQuery to check that element is exists or not we use length() function. Using length() function we will check the length of the selector, if it returns something then the element must exists else not. if( $('#selector').length ) /...

What is available by default if you forget to declare in .info file, Durpal 7 Theme

Regions If you did not mentioned any custom region in .info file the following regoins will be available by default. Header Highlighted Help Content Sidebar first Sidebar second Footer features The .info file is also u...

File upload in PHP.

Hello Reader's , While building any appication we definatley requires images to upload like profile image , company image etc , for this we require php file upload code . You will get image data in array i.e. image name , temp name , image...

How to use BREADCRUMB in Zend Framework

Hello Guys, If you are looking to set Breadcrumb in zend framework. Please follow the below code for the same:: 1)Open your controller file and function in which you want to add breadcrumb. /* BreadCrumb starts Here */ $breadcrumbArray ...

Release Notes

What is Release Notes ? Release notes is a kind of record or document which is delivered as a portion of the complete and final build. Release notes includes fresh and original developments which are as a portion of that release and also well...

jQuery detach( ) method

This method is used to remove the selected elements( i.e all text and child nodes as well ). If we want to reinsert that removed elements , we can do that easily because it keeps a copy of the removed elements. Syntax : $(selector).detach()...

Cool widgets in Odoo-9

In Odoo9 Widgets are the GUI elements that can perform some controlling tasks. In Odoo9, we can see a few of widgets that have significance in the views like statuses of the any process, seeing states of an object, or getting lists out of huge da...

QueryString Value in Javascript

Hi All, Here is quick way to get query string value in javascript: function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), ...

How to set pagging in Zend Framework

Hello Guys, We generally need paging in all the listing pages in website. To set paging in Zend Framework, please follow the below code:: // you need to set the below code in your controller $select = $db->select()->from('posts')-...

lastIndexOf() method of JavaScript Array

JavaScript Array lastIndexOf() method : The lastIndexOf() method returns the last index of the given item inside the array. This method is used when array has an element more then once. It returns the numeric value 0 or greater if element found, ...

Temporary Table

Temporary table is used to store the temporary record which can be reused in a single session. Temporary tables are created from the existing tables and these tables are drops once the session ends or connection is terminated but you can also use...

Multiple file upload using fineuploader in springs.

For multiple file upload, we are using fineuploader plugin with spring mvc. There is need to include the scripts of fineuploader plugin which allow to select the multiple files at a time. And then getting those files as multipart file using @Requ...

Customizing an existing theme, Drupal 7

Steps of customizing an existing theme can be broken into three major steps Select the base theme. Create a sub-theme from the base theme Make the changes to the new sub-theme The relationship between a base theme ...

Access rights in Odoo-9

In odoo-9 every admin having many types of right to give permission of all users and manager. And Access rights are defined as records of the model ir.model.access. For example you can see below code-> id,name,model_id/id,group_id/id,perm...

jQuery Filtering - eq( ) method

This method is used to return the element with choosing index number of the selected elements.In this method, indexing is starting with 0 i.e first element have a index number 0. Example : HTML Code : <!DOCTYPE html> <html> ...

How to perform drag and drop in Appium ?

Drag and drop functionality is a very important functionality and we can easily perform through Appium. DesiredCapabilities capabilites = new DesiredCapabilities(); capabilites.setCapability("device", "Android"); capabilites.setCapability...

How to set flash messages in Zend Framework

Hello Guys, If you are looking to set flash messages in Zend framework please follow the below process:: 1) Open your controller and set below line under init() $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger...

jQuery Filtering - last( ) method

This method is used to return the last element of the selected elements.This filter help users to filtering the selected elements. Example : HTML Code : <!DOCTYPE html> <html> <head> </head> <body> <...

ORDER BY Clause

Sorting the result using Order By clause: ORDER BY clause is used to sort the data fetched using select statement either in ascending order or in descending. By default data fetched is sorted in ascending order. Syntax: Select columnname...

jQuery Filtering - first( ) method

This method is used to return the first element of the selected elements. Example : HTML Code : <!DOCTYPE html> <html> <head> </head> <body> <div style="border: 1px solid black;"> <p>This...

How to enable Cross-Origin Requests for a RESTful web service.

The RESTful web service need to include CORS access control headers in its response, there we have to add a @CrossOrigin annotation to the handler method. It enables cross-origin requests only for the particular method. It allows all the HTTP me...

How to check a value exist in array or not

PHP provide a lots of built in functions for manipulation of array. in_array is one of the useful built in function of PHP which is used to check whether a specified value exists in array or not. If the search value found in array the function re...

jQuery toggle( ) Method

This method is used to work with multiple functions i.e when you click on selected element first function will be fired and when you click on that selected element second function will be called and so on. Syntax : $(selector).toggle(functio...

How to revert a particular migration in Rails

Rails provides us the concept of migrations. Migrations allows us to alter the schema of our database at any time after it has been created. It helps user by not letting him/her write the entire SQL query & it uses Ruby DSL(Domain Specific ...

This version is not compatible with Drupal 7.x and should be replaced.

This version is not compatible with Drupal 7.x and should be replaced. I created a fresh sub-theme and deleted all the unwanted content and file's from my new sub-theme folder, On appearance page I was unable to enable it as it was showing me...

How to crop images in PHP

Hello Reader's if you want to crop the images and save them then you can use this code liberay, its a very easy to implement and very useful for thumbnail generation <?php $targ_w = $targ_h = 150; $jpeg_quality = 90; $src = 'demo_files...

How to set values of select box dynamically using Jquery

Hello Reader's if your building the html 5 based web form and want to set the value of select box via Jquery then you can learn it from code as below:- First you need to set the value from html page <input type = "text" id = "txtEmail" v...

Less than equal to query in codeigniter

Hello reader's If you are using codeigniter and want to make '<=' mysql query then you can use the code syntax as below:- ->select('COUNT(payment.keyid) AS rec_count') ->where('payment.paymentdate >=', $month_start) ->where...

Show dates between two dates using Javascript

Hello Reader's if you need to list out the dates between two given dates then you can use the JS code as written below:- Date.prototype.addDays = function(days) { var dat = new Date(this.valueOf()) dat.setDate(dat.getDate() + days); ...

Setting up a local development server, Drupal 7

Setting up a local development server installing plugins and modules you might need to develop Drupal theme Firt we need to setup the local sever where we gonna run our Drupal site 1. First we need a server, XAMPP is very popular A...

Set up parse.com BaaS to android project

It is very easy to set up parse.com to anroid project. After setting up, you can create your own backend very easily. First of all define dependency on gradle file dependencies { compile 'com.parse:parse-android:1.10.2' } After this,...

Program for factorial of a number using recursive function in C

What is Factorial ? Factorial of a no. means multiplying below numbers. Factorial is denoted by ! Exclamation mark Eg:- 5! means :- 5 * 4 * 3 * 2 * 1 = 120 What is a Recursive function? Definition:- A function which calls itself is...

Intercepting and overriding variables and Making new variables available in Drupal theme

Hold the existing variable and override it grasp and override the existing variables, to do it we use a function in the template.php file For example <?php function themename_preprocess(&$vars){ $var['title'] = 'your...

How to make a view transparent

Below is the solutions to make transparent view. 1. Using android predefined color android:background="@android:color/transparent" 2. Create own color <color name="transparent_color">#80000000</color> 3. D...

indexOf() method in JavaScript Array

JavaScript Array indexOf() method : The indexOf() method is used to return the position of the any given element inside the array. It returns the numeric value and if element not found in that array then it returns the -1. The index is starts fro...

Change Management Organization & IT Project

Changes in an organization/company is something that must be expected in the IT change project, due to the change of the company of the main centre IT project should be able to follow the key/main business of the organization. Change of manage...

how to install xampp in ubuntu 14.04 using terminal (Command Line)

Basically XAMPP is abbreviation of some technical terms like it is Cross Platform(X) Apache HTTP Server (A) MySql(M), PHP(P) and Pearl(P) server. Cross platform means it can run on various platform like Windows, Linux, Unix etc. It is first cho...
1 149 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: