Search

You searched for the word(s): userid:757138

Matching Posts

  • Re: How to conditionally Enable/Disable Button control using JavaScript ?

    You could add a check on the status of the textbox to the body onLoad event. This will check if the text box has more than 12 characters after postback and enable the button if appropriate. e.g. HTML <body onLoad="checkButtonStatus()"> Javascript <script language="javascript" type="text/javascript"> function checkButtonStatus{ if (document.getElementById("txtID").value.length >=12) document.getElementById("btnID").disabled = false;
  • Re: Accessing dynamically created checkboxes in javascript

    You could use getElementsByTagName to get a nodelist of all the input elements within the table. This would be OK if there are no other input tags in the table but you probably want to check which are definitly checkboxes. e.g. var chkList = document.getElementById("tableID").getElementsByTagName("input") var chkSum for(var i =1; i<chkList.length; i++){ if(chkList[1].type=='checkbox'){ chkSum++; } }
  • Re: Javascript: detect Page.IsValid and IsPostBack

    If you are doing this client side I dont think you can check if it is posted back. You could create a cookie when the page is first loaded. You can store the value of the global client side variable Page_IsValid in the cookie. If the page is posted back the cookie will already exist and you can check if the original was valid.
    Posted to Client Side Web Development (Forum) by mattmeckes on 8/31/2007
Page 1 of 1 (3 items)