...

View Full Version : How do i stop execute this logic ?



adusumalli
07-28-2009, 08:49 PM
In my page i have two links. 1st one is 'Daily Tasks' and 2nd link is 'Master Tasks' when i load first time 'Daily Tasks' will be displaying. After click on the 'Master Tasks' link then 'Master Tasks' related data will be displayed.

But Here my question is, when i load the page it executes the both 'Daily' and 'Master' Tasks. My requirement is only when i click on 'Master Tasks' then only that Master Tasks related data needs to execute. Here is my logic.




<td background="graphics/barbkg.gif" width=99% class=fcCalDayFontSmall_gren align=center valign=top>
<div id=fcTaskBarDaily style="display: block;"><b>Daily Tasks</b> | <span id="fcChooseMasterTasks"><a href="javascript:chooseMasterTasks();ppolMainRefreshCalAndTask();">Master Tasks</a></span></div>
<div id=fcTaskBarMaster style="display: none;"><span id="fcChooseDailyTasks"><a href="javascript:chooseDailyTasks();ppolMainRefreshCalAndTask();">Daily Tasks</a></span> | <b>Master Tasks</b></div>
</td>

<!-- this is Daily Tasks related data -->
<div id=fcTaskDaily style="display: block; height:10px; border-color: #CCCCCC; border-style: solid; border-width: 1px; overflow: auto;"> <%=FcTaskUtil.renderDaily(_ahsPage, ozDay)%> </div>

<!-- this is Master Tasks related data, I need to execute this div when i choose 'Master Tasks' on the above then only it will execute otherwise it will skip the logic -->
<div id=fcTaskMaster style="display: none; height:10px; border-color: #CCCCCC; border-style: solid; border-width: 1px; overflow: auto;"> <%=FcTaskUtil.renderMaster(_ahsPage)%> </div>




I need to execute fcTaskMaster div when i choose 'Master Tasks' on the above then only it will execute otherwise it will skip the logic .

Can any body give me an idea on this ??

thanks in Advance...

adusumalli
07-28-2009, 09:06 PM
After click on 'Master Tasks' link the following java Script method is calling . then the related data is displaying.


var fcDisplayingTaskCat = 'DAILY';
function chooseMasterTasks()
{
if ( fcCalRefreshInProgress == 1 )
return;
fcDisplayingTaskCat = 'MASTER';
ToggleSet( 'fcTaskBarDaily', 'none' );
ToggleSet( 'fcTaskDaily', 'none' );
ToggleSet( 'fcTaskBarMaster', 'block' );
ToggleSet( 'fcTaskMaster', 'block' );
obj = document.getElementById('fcTaskInputABC'); obj.style.display = "none";
obj = document.getElementById('fcDailyTask'); obj.style.display = "none";
}

I need to execute fcTaskMaster div when i choose 'Master Tasks' on the above then only it will execute otherwise it will skip the logic .



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum