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
Arun KArun K 

Problem on onmouseout

HI,

I have a pageblocktable and I have account records, When I try to hover on account, The detail page is rendering according to account.What I want is when I make onmouseout, I want the detail page to be removed.

My code is---
<apex:form >

<apex:pageBlock title="Account">

<apex:pageblockSection title="List Of Accounts">

<apex:pageBlockTable value="{!accounts}" var="acct" rows="5">


<apex:column headerValue="Account Names" >

{!acct.name}

<apex:actionSupport event="onmouseover" status="act" reRender="op" >

<apex:param name="aid" value="{!acct.id}" />

</apex:actionSupport>
</apex:column>
</apex:pageBlockTable>
</apex:pageblockSection>
</apex:pageBlock></apex:form> 
<apex:actionStatus startText="Please Wait ...Loading.........." id="act"/>
<apex:outputPanel id="op">
<apex:detail subject="{!$CurrentPage.parameters.aid}" relatedList="true" />
<apex:relatedList list="Called_On_By__r"/>
</apex:outputPanel>

Parth_SevakParth_Sevak

hey arun, 
this seems to be working, 
<apex:column headerValue="Account Names" > 
{!acct.name} 
<apex:actionSupport event="onmouseover" status="act" reRender="op,op1" > 
<apex:param name="aid" value="{!acct.id}" /> 
</apex:actionSupport> 
<apex:actionSupport event="onmouseout" action="{!onMouseOut}" reRender="op,op1,formId" > 
</apex:actionSupport> 
</apex:column> 
</apex:pageBlockTable> 

</apex:pageblockSection> 
</apex:pageBlock> 
<apex:outputPanel id="op1" rendered="{!showRelatedList == true}"> 
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 
<apex:detail subject="{!$CurrentPage.parameters.aid}" relatedList="true" /> 
</apex:outputPanel> 
</apex:form> 

In Controller : 
public Boolean showRelatedList { get;set; } 

public pageReference onMouseOut(){ 
showRelatedList = false; 
return null; 

public Constructor(){ 
showRelatedList = true; 


I noticed that, out of the <form> tag, this seems to be nt working. 
hope this will help u.