Wednesday 12 October 2011

How to use custom DatePicker Using Salesforce Js for all Locales

Hi Friends today I came with a custom datepicker which can be used in visualforce Page.By using this we don't need to use any Jquery or static resource. I faced this problem and got this code from some where Please Click Here
to go to that place. but this DatePicker was only for specific USA locale. I made small changes for using in my Vf page Final VF-code is as follows:-
  



    
    
    




    Date Lookup
    
    
    
    
    
    
    




 {!TODAY()} ]
 
Previous Month Next Month
SunMonTueWedThuFriSat


So I made it useful for those whose user has different Locale also creating it's controller as follows:-
Controller-code:-
  
public class datePickercontroller {
public date converedDate{get;private set;}
public string selectedDate{get;
    set
    {   if(value!=null || value != ''){
            Integer month_num = Integer.valueOf(value.subString(0,value.indexOf('/', 0)));
            Integer date_num = Integer.valueOf(value.subString(value.indexOf('/', 0)+1,value.indexOf('/',value.indexOf('/', 0)+1 ))); 
            Integer year_num = Integer.valueOf(value.subString(value.indexOf('/', 0)+value.indexOf('/',value.indexOf('/', 0)+1 ),value.length()));
            converedDate = date.newinstance(year_num , month_num ,date_num );
        }
    }
}
}
I think this way would be useful for you.
Credit for this DatePicker should goes to it's developer I got this Code form this link click Here
with regards...

Sunday 2 October 2011

How to watch Streets in Google Map

Hi I am again back with something new to know. Google provides street view of USA in 3D format. this Feature make you Feel something like real experience.
Step.1 type http://map.google.com now type any place and click on simply "Get Direction" click on human symbol. You will get snaps like as follows
with regards...

How to use "Voice Search" on Google

Hi Friends..!! Today I am back with sonthing interesting. have you thought how it would be easy to search any thing in Google without writing a single character? Yes Google has launched this feature of voice search. We will understand this feature step by step
Step1. use URL https://encrypted.google.com/
Step2. Click on a symbol of mic in Searching input Text Box.
Step3. when you click on mic symbol you will get a message Box Start to say anything (prefer to speak English Words)
You can go to encrypted Google directly by clicking click Here Now Enjoy this feature.
Thanks Google
with regards...