Skip to content

Instantly share code, notes, and snippets.

@sankaran1984
Created December 6, 2016 13:03
Show Gist options
  • Save sankaran1984/9429dcc16572471e014726e2c19e874f to your computer and use it in GitHub Desktop.
Save sankaran1984/9429dcc16572471e014726e2c19e874f to your computer and use it in GitHub Desktop.
Visualforce - Beyond Basics - Series
<apex:page >
<apex:sectionHeader title="Client SwitchType"/>
<apex:tabPanel switchType="client" selectedTab="wikipedia">
<apex:tab label="wikipedia" name="wikipedia">
<apex:iframe src="https://www.wikipedia.org"/>
</apex:tab>
<apex:tab label="Bing" name="BingName">
<apex:iframe src="https://www.bing.com"/>
</apex:tab>
</apex:tabPanel>
<apex:sectionHeader title="Server SwitchType"/>
<apex:tabPanel switchType="server" selectedTab="wikipedia">
<apex:tab label="wikipedia" name="wikipedia">
<apex:iframe src="https://www.wikipedia.org"/>
</apex:tab>
<apex:tab label="Bing" name="BingName">
<apex:iframe src="https://www.bing.com"/>
</apex:tab>
</apex:tabPanel>
<apex:sectionHeader title="Ajax SwitchType"/>
<apex:tabPanel switchType="ajax" selectedTab="wikipedia">
<apex:tab label="wikipedia" name="wikipedia">
<apex:iframe src="https://www.wikipedia.org"/>
</apex:tab>
<apex:tab label="Bing" name="BingName">
<apex:iframe src="https://www.bing.com"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment