
Search In
For current cordinate we have to add a button resetting the product's coordinates to the location of the user, you can get these coordinates using the javascript geolocation API.
Now we would like to display an additional button to automatically set
Odoo provides a search_read() shortcut which as its name notes is equivalent to a search() followed by a read(), but avoids having to perform two requests and keep ids around.for example code is like below.
models.execute_kw(db, uid, password,
'
CakePHP have several In-built sessions configurations. We can use these sessions as the basis or can create a fully custom solution for that. To use defaults inbuilt sessions, we can simply set the ‘defaults’
key to the name and can override any sett
We can easily auto-load libraries in Laravel 4.x by using namespaces in our application. Then put all libraries you code under that namespace.
Suppose our directory structure would then be:
libraries
Myapp
Search (note directory is capi
Push notifications are messages that allow an app to notify of a message similar to how a text message pops up on your screen with a sound.Code for Android ,Iphone API push notification is given below by using urban airship
Android Push Notificatio
To change the orientation of an image write the following code:
BitmapFactory.Options o2 = new BitmapFactory.Options();
o2.inSampleSize = 2;
// Get the original bitmap from the filepath to which you want to change orientation
// fileName ist the fi
We are change the input type file title with the help of this script
Like Browse Title Change in to Choice File
use this script for change Title
function browseclick(){
var fileinput = document.getElementById("browse"); // use input file id
How to set pre default current date in datebox before choose any other new date:
We have to follow following steps.
Step 1:-
Download below 2 files.
jquery.datepick.js
jquery.datepick.css
Call both file in HTML head
<link type="text/css" hr
Sending email using function drupal_mail(). All you need to do is install and configure SMTP module and then add the given code in your custom module.
function sendemail(){
$to = ' xyz@gmail.com ';
$from = ' abc@gmail.com ';
The Answer to this question is yes, we can use enum in java with switch statement. the following examle shows how:
enum Car{THAR,XUV,SCORPIO}
class Cars {
Car car;
Cars(Car car)
{
this.car= car;
}
public void tell
