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

Clicking on marker generate popup on google map

By using this function, when we will click the marker, a popup will be shown on map. Here we have a function , first we will assign the content to a string name, then we will pass that value to the function . Watch below:- function initializ...

Difference between nil?, empty? and blank?

Difference Between nil?, empty? and blank? in Rails :- To understand the difference between these three methods you have to look at each of them individually. In Ruby nil? is a standard method that can be called on all objects and returns...

how to copy data to clipboard using javascript

Hello all, Working with rich text editor a user can copy and paste the data any where in rick text editor and we wanted to remove the html format of that copied data so that only plain text can be copied. To do that we have to get the copie...

Fetching JSON using angular JS

The controller defines a dependency to the $scope and the $http module. An HTTP GET request to the countries.json end point is carried out with the get method. It returns a $promise object with a success and an error method. Once successful, the ...

How to Upload File in ASP.NET MVC

"File Upload in ASP.NET MVC"     File upload is one of the common feature that is required in almost every application. In this article we will discuss how to use this upload file functionality in Asp .Net MVC. Step 1: I...

Difference between 'event.preventDefault()' vs. 'return false' in JQuery

Hello reader's today i will discuss about "event.preventDefault()' vs. 'return false" First, Divs are set to turn red on click, links are set to hide. The top div contains the link which runs with e.preventDefault() which means the link w...

How to use upload files with JQuery

Here is the example for *How to use upload files with JQuery. * If you having trouble with such issues, then use the below code. Here is the HTML <div class="flie-btn clearfix"> <input class="fileinput" type="file" name="d...

how to bind click event on dynamically created elements

Below is the example for how to bind click event on dynamically created elements. If you having trouble with such issues, then use the below code. Here is the HTML <a href="#" class="button">Button</a> <div class="lis...

Custom Progress Bar with Timer

Custom Progress bar with timer Generally we use this splash screen to make our app dynamic and stylish.We can also use to show some process is doing internally. For this we just customize ProgressBar by defining custom style . <progress...

Php problem

am creating login page,when am login how to redirect the particular login user page

Trigger function in JQuery

Trigger function has an interesting concept as it is used to execute all handlers and behaviors attached to the matched elements for the given event type. For example, If I want to have a click event on a button without clicking, we can use this...

Import wordpress functions in custom.php file

Hello reader's in this blog I will guide you how to import "Wordpress functions in custom.php file?". First Create a custom.php file into your theme and put your code into it. Below is the example of image crop function into custom.php : &...

Fetch Outlook contacts using PHP imap

Is there any way to get Outlook contacts using PHP imap functions? I need urgent help please

How to handle multiple submit buttons in Asp.Net MVC

"Handling multiple submit buttons in Asp.Net MVC"     In various cases we have to take multiple submit buttons in a form , I will not discuss the cases but let us take the following example: <form method="post" action="...

How to inherit the modules in OpenERP (Odoo) ?

First we have to look customized module, according to there requirement fields class, model and then we have to decide to inherit existing module. As in below .py (Python file):- class Demo(osv.osv): _inherit='sale.order.line' // sale...

Change Image orientation when upload from mobile in liferay

Hello Guys, Here I will suggest you the best coding standard to develop effective and fast application in java technology. So, now I am writing code for changing image orientation while uploading image from mobile. For this follow below st...

How To Add Extra Fields in account module in openerp

To Add Extra Fields in account module in openerp use below code In OpenERP Add Extra fields in account module to create new module name is invoice_cartage and add these 4 file. 1- __init__.py file --- import invoice_crtage 2- __op...

How to make Geolocation Watch Position Distance Calculator between two city

In below example, I am calculating the distance between center of Mumbai City to Pune. Using geolocation we get current location and monitor it using the watch position method. On this type we will be calculating the distance between starting p...

How to bind all dates of month on GridView Header cell in .net

Hello all, Working with ASP.NET, we wanted to print all the dates of months on the Header cell of GridView based on current month and year dynamically from code behind which can be changes later on by selecting different month and year from th...

What is :target selector ?

The :target pseudo-class represents a unique element, with an id matching the fragment identifier of the URL of the document.. For example, the URL http://website-path#demo contains the fragment identifier #demo. In HTML, identifiers are found...

How to set CSS of Div using jQuery

Hello all, To set the css of any html element such as Div from jQuery, we can use various ways. Some of them are listed below : We can use .css() methods which sets the CSS property for the html elements Ex. $('#myDiv').css("display", "...

Using JSON Web Services with liferay

Liferay Plugin Portal JSON Web Services :- Liferay support the REST API. By Using That we have to create restful web services and the data format of that is JSON. Liferay internally supports to create JSON services. it already have many portal...

How to rotate image in java?

Here I have illustrated how to rotate image using java code. Impot imgscalr-lib-4.2.jar for Scalr class to rotated image on various angles. Below code will rotated image on 90 degree angle. File file= new File("file-path"); BufferedI...

MultiView in Asp.NET and how is it different from Panel control

"MultiView in Asp.NET and how is it different from Panel control"     MultiView control is a asp.net web server control, used to create multiple views of a single page.It helps not to create multiple pages for making differ...

How to Deserialize XML using C#

"How to Deserialize XML document in C#"     In this article I have discussed about how to deserialize the XML using C#. Let us take a simple example to understand better: <AddressDetails> <HouseNo>4</...

How to parse JSON in C#

"Parsing Json in C#"     Now a days JSON is the most popularly used data exchange format due to its simplicity and light weight, therefore we will see how to hit the API and then parse the received JSON in C#. Please go ...

Unable to upgrade module in OpenERP

If module is not upgrade in OpenERP, later on error will came while you upgrading any module. Or in other words we can say that, while upgrading module in OpenERP we faces error and every-time false to upgrade module, so to solve this issue foll...

CSS counters

CSS counters are, in essence, variables maintained by CSS whose values may be incremented by CSS rules to track how many times they're used. This lets you adjust the appearance of content based on its placement in the document. CSS counters are a...

Create Invoice Autometic in openerp-7

If you want to create invoice automatically then follow these step 1- Install subscription module in OpenERP 2 - Than go to menu Tools -> Configuration -> Document Types 3 - Than go to menu Tools -> Recurring Events ->...

Steps to create module in DNN 7

I. Installing the templates 1. First of all you have to download Aspose.DNN.Templates_VS2013 from the given link: https://asposednn.codeplex.com/releases 2. Now double click on the downloaded file to install the templates in visual studio. II...

How to hide/display different actions in an Admin Panel for a project in cakephp

After we have learned how to create an Admin Panel for a project in cakephp see the link. Now in this tutorial we will learn how to enable/disable different actions such as add,view ,edit, delete, records in a table say posts or increase/decrease...

AngularJS Controllers

AngularJS applications are controlled by controllers. A controller is a JavaScript Object, which is created by a standard JavaScript object called constructor. In below example lastName and firstName are two properties of controller object demons...

How to pass extra variables in URL with Wordpress

Hello reader's, today we will discuss about "How to pass extra variable in URL in Wordpress". Suppose , Admin want to update the user detail then they go to user listing page and select the user and click edit button or link. When ...

Getting incorrect results while using ToString("dd/mm/yyyy")

"Getting incorrect results while using ToString("dd/mm/yyyy") "     In this article I am sharing one of the issue I got stuck in. Please go through the following code : string date = "30,jun,2015"; DateTime dt = C...

How to centralize div horizontally and vertically ?

Hi all, Here are two method to center align a position of div. div{ height: 200px; width: 200px; background: #ccc; top:0; bottom: 0; left:0; right: 0; margin: auto; position: absolute; } In...

How to use defaults function in OpenERP(Odoo)?

In defaults function first we have to go in .py file (python file) After that we have to decide where we want defaults function and then give attribute defaults function to that field. See below python code in .py file for reference : -class h...

How to resize an uploaded image in Asp.net

"How to resize an uploaded image in Asp.net"     In this article I have explained that how to resize the uploaded image and then save it to a location. Getting Started: Step 1: Place a FileUpload control, a Button on th...

How to get or post asynchronously data using ICallbackEventHandler interface in .net

Hello all, Working with ASP.NET web forms, if we want to post or fetch the data from server asynchronously we use ICallbackEventHandler which is an interface that can be implemented in any class by inheriting it. ICallbackEventHandler is an...

How to Set the Multi Companies and Technical Features in OpenERP (Odoo)?

Step-1 Go to Settings menu Step-2 Select submenu -> Users -> User Step-3 Selcet Administrator -> Create Step-4 Select Access Rights -> Technical Settings Step-5 Select -> Multi Companies -> Technical Features

Coding Standards and Conventions

Coding guidelines and Conventions Every object like datasets, class objects and other reference type variables must be declared with null assignment and must be set to null or Disposed if the object implements IDisposable interface, once the...

ClientIDMode on Asp.Net 4.0

"ClientIDMode on Asp.Net 4.0"     This feature is added in ASP.NET Framework 4.0. Problem: The control's client side ID is regenerated at runtime,basically it inherits outer controls id from parent control or place holder...

How to make the X-path in OpenERP (Odoo)?

In X-Path first we have to go in View_XML file (XML file) After that we have to decide where we want X-Path and then give Initial to last Path to that field. See below View_Xml code in Xml file . <?xml version="1.0" encoding="utf-8"?>...

How to get address from latitude and longitude

If you would like to get address from latitude and longitude. You can use below function: public function getAddressbylatlong($latitude, $longitude){ $latlng = $latitude. ','.$longitude; $geocode = file_get_contents('http...

How to add OpenERP Report Designer In menu for Creating Report in openoffice

This tutorial will guide you to add OpenERP Report Designer in menu for Creating Report in openoffice. Follow these step to add menu in openERP 1 - install base_report_designer module in database 2 - Download openoffice and open 3 - conf...

How to send Push notification on Android mobile

If you want to send push notification on Android mobile please use the below function: Requirement :: a) Mobile TokenId b) Google API Key public function send_notification_mobile($mobiletokens, $GOOGLE_APIKEY){ // API ac...

How to post data using jQuery Ajax POST with .Net

Hello all, Working with ASP.NET, if we want to fetch the data from server using jQuery than we can use Ajax POST method of jQuery. which allows us to asynchronously interact with server and we can get data in the desired format such as JSON or...

Activerecord callbacks

Callbacks are methods that get invoked at various stages of an Activerecord objects life cycle. and thus it is possible to write code that will run whenever an Activerecord object is created, saved, updated, deleted, validated, or loaded from th...

Show the product description below an image-Woocommerce

In WooCommerce site we need to provide product description underneath an image, so if you are stuck in this and looking for solution to show the product description below an image here is the solution. Add the code below to your functions.php:...

Implementation of Singly Linklist in C

Singly Linklist:- Hii Friends, The Below code will show you how we can create singly Linklist in Data Structure using C. we can simply create the singly linklist using the pointers and malloc function to insert and delete element dynamically. ...

How to parse JSON using PhoneGap

Follow the below steps to parse JASON in PhoneGap. Step 1. Call Js function From html page or from where we want, like this function onBodyLoad() { document.addEventListener(deviceready, callJson, false); } Step 2. Create a functio...
1 247 292
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: