Hello Readers,
Jquery blur is the jquery method which is used to attach the function to the jquery event and the function get executed to a given element after the event occurs. Event lose the focus when we click on input field and it performs...
Hi All,
We in very common scenario come across a scenario where we want user to just be able to enter Mobile Number Format.
This small code piece will help in validating user to enter only Mobile number format.
$(".Mobilenumbers").keypress...
encodeURI() function in JavaScript : The encodeURI() function is used to encode the URL parameters. It only encode the special characters except: , / ? : @ & = + $ #.
Syntax of encodeURI() function :
encodeURI(uri)
uri : Requi...
Hello Readers
In this article I will guide you how to create custom side bar with the help of jquery.
Here is the HTML
<section id="slideBox" class="open">
<nav id="menu">
<ul>
...
Hello Guys
Liferay provide startup funcationality to deploy theme. portlet and hooks etc.
You can utilize the StartupAction. It is merely an Event of liferay, which is get triggered on startup of a plugin in liferay portal. This method wil...
In the case of server migration like uploading site from local server to live server etc. We need to change the siteurl. Please follow the below instruction to change SITEURL
1) Open PHPMYADMIN of your new server.
2) Open wp_options DB table....
In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in ...
Here I have created a method in DataBase helper(sqlite) to remove Items from RecyclerView. In the example code first i have created deleteCallDetail method and after then In Adpter class I have used ClickListener, so that when we click on cross(I...
When we use jQuery event handler, adding return false works same as adding both e.preventDefault and e.stopPropagation on the jQuery.Event object.
e.preventDefault() will stop the event to occur and return false also prevents that event from p...
Hello Readers,
In jQuery, It is a function which is passed as an argument to another function and it is executed when/after it's parent function has been completed.
Callbacks are some special jQuery function because it patiently wa...
CSS supports the following Measurement Units
% :- This is % symbol used when we want to give a measurement as a percentage.
e.g:-div{width:100%;}
cm :-An abbreviation of centrimeters is cm and it is used when we want to give a mea...
To override the function first install the sale module and override the class sale.order and set draft and use feedback function as show in given below code
def feedback(self, cr, uid, data, acquirer_name, context=None):
tx = None
...
Hi All,
In this blog we will discuss about another one of the most important part of the Xamarin, and that is Service.
Service in Xamrin.Android is actually very smiler to concept of service in windows and by that i mean a service is really...
JavaScript Number() function : The Number function is used to cast the other objects to the number. Number() is a global function in JavaScript.
Syntax of the Number() funciton :
Number(object)
object: It is required parameter. It ...
JavaScript String toLowerCase() method : The toLowerCase() method is used to convert the letters to the lower case. It doesn't change the original string. It returns the new string in lower case.
Syntax of toLowerCase() method :
string.toLo...
To find the maximum and minimum in an array we can use Math.max and Math.min function that returns the largest and smallest of zero or more numbers.
Syntax : - Math.max([value1[, value2[, ...]]])
Using apply,you can choose your own context...
There are two storage session storage and local storage in the new web storage API in html5.
HTML local storage contains two objects for storing data on the browser:
window.localStorage - stores data with no expiration date
window.session...
Whenever we create an android app we have many folders in out solution which are used for building application in android.
Drawable folder in android app is mainly used to change or set the background image of an android application .In t...
In MVC project whenever we run the application we have default form to be run.
To setting up or changing up the startup view in MVC project we have entry in the Route.config file for the default view associated with the controller
For Ex:
...
Hi All,
SessionStorage is something we can use to store values in session in Javascript. Below I will demonstrate how we can use it in our project.
To set Session Value:
var valueKey = "Value";
function setSession(value) {
...
Hello Readers,
sorting string array :
sort method in jquery is used to sort array elements in alphabetically order this type of sorting is called as sorting through string array.
For Example :
$(document).ready(function(){
var list =...
Javascript Object Notation
JSON is a way to transfer data or information from one page to another page.
JSON stands for JavaScript Object Notation
JSON is a lightweight data transfer format
JSON is language indepe...
Hello all,
I this blog we will discuss about another very important part of the building blocks of Xamarin.Android, that is Intent class.
The easiest way to understand the Intent is really an messaging object that you are to create and pass...
Binary search is simple and fast search algorithm which works on the principle of divide and conquer.
It will work properly when the data collected is in sorted form.
It is having run-time complexity of (log n).
This searching algorithm ...
Hi All,
This Blog will help you to use dropzone js and css to upload files in your project.
You can get dropzone package from NUGET. Once Installed get the reference of it in your project, Below example will show it used in MVC Project.
Yo...
Hello All,
In this we will discuss about one of the most important part of the building blocks of Xamarin.Android, and that is Bundle class.
A Bundle class. in nothing but a mapping from values of String types to various other types that c...
The URI component encoding is yield by the function called encodeURIComponent(). This function encodes special characters like this: , / ? : @ & = + $ #. We can use the decodeURIComponent() function to decode an encoded URI component.
Sy...
Using Inner Join:
It selects rows from both tables as long as there is a match between the column on which join is applied. Inner join is used to fetch data from more than one table.
Syntax:
SELECT columnname(s) FROM tablename1 INNER JO...
Hi All,
We Often need tabbing & Accordion functionality in our project and what if we need it via angular material. Her is a quick guide of doing it simply and accurately.
Angular Material CSS references
<!-- Angular Materia...
Hello friends,
If you want to uninstall the Drupal 7 theme from your Drupal installation then just follow the below simple steps-
1. Uninstalling a theme is a simple process, it just the reverse of installing a theme.
2. Access the t...
In jquery to read, write and delete cookies by using dough cookie plugin. It is easy and powerful characteristics in jquery to use this plugin.
Firstly, below is the syntax to create cookie.
Create cookie :
$.dough("cookie_name", "cookie...
There are 2 ways to install drupoal themes one is automatically from the admin interface.
Automattic Installation
Log in as site administrator go to the theme manager by selecting Appearance and here you will find two option to install ...
Hi All,
We most of the time in web development get stuck with responsive designs, the best way to handle that now a days is to use Bootstrap classes which take cares of your site but that helps you to achieve responsiveness width wise.
What...
Let's create a table with duplicate rows in SQL.
create table CustomerDuplicate(customer_id int,customer_name varchar(20))
insert into CustomerDuplicate values(1,'Adam')
insert into CustomerDuplicate values (1,'Adam')
insert into Customer...
Go to Structure -> Blocks Here you can fill the information regarding a block like,
Block Title (you can override the default title for the block. Use to display no title, or leave blank to use the default block title. This field suppor...
Welcome to findnerd, today we are going to discuss How the use file_get_contents() in PHP ?
Fistly let know what is use of file_get_contents() ?
The file_get_contents() basically reads a file into a string.
So we can say that file_get_con...
Hello all welcome to findnerd, today we are going to discuss How to print HTML page with tags using PHP ?
The htmlspecialchars() Function is very useful print HTML page with tags using PHP
Firstly let know what does htmlspecialchars() Func...
Previous Git Blogs
1. Intialize git repostiory
2. First Commit
3. Two tree architecture and Three tree architecture
4. Best basic practices for writing commit messages
5. Viewing the commit logs
6. Git Basic WorkFlow
7. What is HEA...
In .NET we do validations to restrict wrong entries and making valid values to be entered through the forms.
Validation on a form or UI page can be done on two sides
1 Server Side Validation
2 Client Side Validation
Server Side vali...
In cakephp it allows a beautiful feature that helps in fetching all the data of the Model and set on the view.
The fetching can be done in cakephp with the find method and the set function is used to set the data on the view.
The find method ca...
cal_days_in_month() function is a PHP calendar function. This function always return number of days in a specified calendar for month of year .
Syntax is : -
cal_days_in_month ( $calendar, $month, $year );
parameter are : -
...
An Array is a collection of data of similar data type.
We can use Arrays.toString(array_name) to print a java array.
Arrays.toString() return a String for a given set of elements specified in brackets([]) and,
the elements are separated wi...
Previous Git Blogs
1. Intialize git repostiory
2. First Commit
3. Two tree architecture and Three tree architecture
4. Best basic practices for writing commit messages
5. Viewing the commit logs
6. Git Basic WorkFlow
7. What is HEA...
Surface Programming
Microsoft identifies four key concepts in Surface:
Surface programming like we have seen in many ways browsing things on a surface. It would be like you are placing an order on the order table using its surface like disp...
Hello Reader's! If you have given digits of number and you want it to convert into words for example 76 will be converted as seventy six and 102 will be convert as one hundred two
Lets see the function below:-
<?php
function digitti...
Hello Reader's If you want to get the full path , name or the directory of a file using php then you can use the code below:-
Let's see the example below:-
function filePathParts($arg1) {
echo $arg1['dirname'], "\n";
echo $arg1['bas...
Hello Reader's!, If you want to make the custom php session which will destroy automatic then you can use the code as below:-
session_start(); // ready to go!
$now = time();
if (isset($_SESSION['discard_after']) && $now > $_SESS...
Hello Reader's! If you have a url given and you want to check weather it is valid or not. For example www.facebook.com is a valid but www.fcebook.com is invalid link.
By using you can do this by Curl function, Lets see the example below:-
f...