Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2008
    Posts
    66
    Thanks
    18
    Thanked 0 Times in 0 Posts

    How do i stop execute this logic ?

    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.

    Code:
     
    
        <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...

  • #2
    New Coder
    Join Date
    Sep 2008
    Posts
    66
    Thanks
    18
    Thanked 0 Times in 0 Posts
    After click on 'Master Tasks' link the following java Script method is calling . then the related data is displaying.
    Code:
      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 .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •