You need to sign in to do that
Don't have an account?
guest1231231
Only Load Tab When...
With apex:tabpanel is there a way to only "load" a tab when the user clicks that tab? For example, a tab displays an external website using iframe, but I only want that external website to load when the user actually clicks on the tab.
Is this possible?
Here is one such code snippet I only want to load when the user actually clicks the tab.
<apex:tab label="Website" name="Website" id="website">
<iframe width="100%" height="500" frameborder="true" scrolling="true"
src="http://{!Account.Website}">
</iframe>
</apex:tab>
-Thanks
Set the “rendered” property of <apex:iframe> to false and on the “on Click” event set this property to true.
Hope this helps.
Like this?