function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pavan kumar 546Pavan kumar 546 

Ajax components

hi i am new be of VF .can any one give me live examples on Ajax Components in visualforce?please give littele senarious which situation we can use them?

hi i am new be of VF .can any one give me live examples on Ajax Components in visualforce?please give littele senarious which situation we can use them?
Shashi PatowaryShashi Patowary
Hi Pavan,

You will find number of simple examples in VF page guide -

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionFunction.htm

As for real scenario - let's say you have implemented SFDC in a IT company and you have designed a VF page where employee can enter his/her employee number and can see various relevant details like leave balance etc.

VF page shows various company related details along with a employee number input box. When user enters employee number, you can make AJAX call to SFDC to fetch his employee details. Here user don't need to submit the page for getting information. The data fetching activities is happening in the background while the user can go through other details in the page.

Please let me know if this is helpful.

Regards,
Shashi
Carlos Campillo GallegoCarlos Campillo Gallego
Hi Pavan,

I'm not very pro with Ajax so I think this link will help you more than me :)
https://developer.salesforce.com/docs/atlas.en-us.ajax.meta/ajax/sforce_api_ajax_vf_sample.htm

Kind regards,

Carlos.