Now Playing with APIs is Easy

Thursday, December 17, 2009 by Aslam - The Alexendra
If you wanna love to extract flicker, youtube, twitter, rss feeds etc using apis and wanna a easy way to check what results coming in a starndard is the solution YQL :-

See this for more info:-

happy YQLing.... :)

Salesforce Bot

Thursday, November 12, 2009 by Aslam - The Alexendra
Visit Here for a cool Salesforce Bot for you GTalk:-

Apex:commandButton and onClick issue...

Friday, October 2, 2009 by Aslam - The Alexendra
Sometimes we find issues when we use <apex:commandButton> with both onClick and Action. We try to return false / true from our javascript method and expect things to be happen properly but sometimes it not happens. See below:-

function confirm(){
if(something condition){
return true;
return false;

<apex:commandButton value="Submit" action="{!CallAction}" onClick="return confirm();"/>

The above code does not call action sometimes..(Dont know why) if you change it with this, it will work:-
<apex:commandButton value="Submit" action="{!CallAction}" onClick="if(!confirm()) return false;"/>

The above code will work....Please don't ask why........


How to retrieve form values in traditional way on VF without binding

Thursday, September 24, 2009 by Aslam - The Alexendra
For exmaple you have a form with below fields:-

<input type="text" name="firstname"/>
<input type="text" name="lastname"/>
<apex:commandbutton value="SubmitMe" action="{!saveform}"/>

Your apex class's saveform method:-

public PageReference saveform(){
string firstName = ApexPages.currentPage().getParameters().get('firstname');

string lastName = ApexPages.currentPage().getParameters().get('lastname');

//So simple
//Do your stuff

return null


Displaying HelpText on VF page

Friday, September 18, 2009 by Aslam - The Alexendra
We can easily show a custom field's help text on our page on our desired image like this:-

For example there is a custom field in Account object named 'Active__c'. And you wanna show its help text on VF page, do this:-

<img src="/resource/1247568559000/del_img" alt="" title="{!$ObjectType.Account.Fields.Active__c.inlineHelpText}"/>

If you need pure css based tooptip with your own style and without any javascript, here it is:-

a:hover {
} /*BG color is a must for IE6*/

a.tooltip span {
padding:2px 3px;

a.tooltip:hover span{
border:1px solid #cccccc;

<a class="tooltip" href="#">
<img src="/resource/1247568559000/del_img"/>


Share The Solutions For Tech Problems

Wednesday, September 16, 2009 by Aslam - The Alexendra
Hi All,
Here i am going to describe how to exclude some part of your web page from print / print preview. Suppose you want to hide some part of the web page lets say 'div' to be print. Use this syntax.

<style media="print">

<div class="hide">
some contents to be hidden


The media = "print" will apply for print version of the page only....On your normal page(browser) you will be able to see contents but in print you will not...