object required error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thirunavukarasukm
    New Member
    • May 2007
    • 21

    object required error

    Hai i created one user control in asp.net

    i am use script in that usercontrol page


    function getObj(name)
    {

    if (document.getEl ementById) // test if browser supports document.getEle mentById
    {
    this.obj = document.getEle mentById(name);
    this.style = document.getEle mentById(name). style;
    }
    else if (document.all) // test if browser supports document.all
    {
    this.obj = document.all[name];
    this.style = document.all[name].style;
    }
    else if (document.layer s) // test if browser supports document.layers
    {
    this.obj = document.layers[name];
    this.style = document.layers[name].style;
    }
    }


    function checkedChanged( )
    {



    var firstCheck=docu ment.getElement ById("chkcolor" );
    if(firstCheck.c hecked == true)
    {
    alert("hai");
    }
    }


    this is code i got a error in object requied

    pl help
    pl help
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    where u call these two functions ?????

    plz send that code portion.

    kind regards.

    Comment

    Working...