javascript + asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindhu
    New Member
    • Oct 2006
    • 53

    #1

    javascript + asp.net

    hi all,
    i donno whether this is the right place to post me query.
    i'm finding for a solution to my problem.
    i'm using javascript to expand or collapse div tag as given below.
    function switchMenu(obj)
    {
    var el = document.getEle mentById(obj);
    if ( el.style.displa y != 'none' )
    {
    el.style.displa y = 'none';

    }
    else
    {
    el.style.displa y = 'block';
    }
    }

    can any one tel me how to get the returned value from the script. for Eg: if i'm returning true or false where can i save these values from javascript so as to use them for further actions based on true or false?
    thanks

    i'm giving the DIV id to the function during call

    <a href="javascrip t:switchMenu('d ivID);">
    <img border="0" class="img_coll " src="Images.gif " style="z-index: 101; left: 961px;
    position: absolute; top: 0px" />
    </a>


    thanks in advance
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You are able to use return true or false in the function. but it depends on where else you want to use these returned values. HTH.

    Comment

    Working...