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
dinesh kannandinesh kannan 

how can i load data or Refresh the page (Tab inside visualforce page)when click on tab in salesforce?

how can i load data when click on particular tab.
I create visualforce (page) tab when i ckick tab but the page is not refresh (inside tab i use <apex:include p"></apex:include>).How can i do please giv me ur solution..
Visualforce page:
<apex:page standardController="Case" showHeader="true" tabStyle="case" sidebar="false">

    .activeTab {background-color: #B0E2FF; color:black; background-image:none }
    .inactiveTab { background-color: lightgrey; color:black; background-image:none}
     <apex:tabPanel switchType="server" selectedTab="tabdetails" 
                  id="CaseTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab">
        <apex:tab label="Unclaimed Ticket" name="OpenActivities"  id="tabOpenAct">
        <apex:include pageName="UnclaimedTicketPage"/>
        <apex:tab label="Claimed Ticket" name="OpenActivitiesg" id="claim_id"> 
        <apex:include pageName="ClaimedTicketPage"/>
        <apex:tab label="Patient view" name="OpenActivities3" id="tabOpenAct126">
        <apex:include pageName="protectedSearch3"/>
<script type="text/javascript" language="javascript">
    if(jQuery) {
    var $jq = jQuery.noConflict();
    function testrun() {
    $jq(document).ready(function() {
    $jq('[id$=claim_id]').click(function() {

Dhriti MoulickDhriti Moulick
Hi Dinesh,

    What error exactly you are facing when clicking on particular tab?
Hey,This might helpful!!!!
To reload page on page onclick call relaod().

function reload(){
Pravesh Mehta 3Pravesh Mehta 3
Hey Dinesh,
Please try this 

<apex:tab label="Claimed Ticket" name="OpenActivitiesg" id="claim_id" rerender="refreshCTP"> 
   <apex:outputPanel id="refreshCTP">
        <apex:include pageName="ClaimedTicketPage"/>

If <apex:outputPanel> gives some issues related to design then please use <apex:outputText>