No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Sample Visualforce Page Using the AJAX Toolkit
This example demonstrates using the AJAX Toolkit in a Visualforce page.
To add JavaScript to an Visualforce page, use the following procedure:
- Create the Visualforce page. For more information on this, see the Visualforce Developer's Guide.
- Cut and paste the following sample code into your Visualforce page.
The JavaScript code queries your organization and returns every account ID, account name, and industry type, if any:
After creating and navigating to the aboveVisualforce page, you should see text similar to this image:
