checkbox

Run-time error '-2147352567 (80020009)' The index into the specified collection is out of bounds

妖精的绣舞 提交于 2020-01-24 12:24:04
问题 I am running periodically into an error: Run-time error '-2147352567 (80020009)' The index into the specified collection is out of bounds. This error is thrown on the line For Each cb In wks.Shapes Here is the full code: Sub SelectAll(wks As Worksheet) Application.ScreenUpdating = False Dim cb As Shape 'Loop through Checkboxes For Each cb In wks.Shapes If cb.Type = msoFormControl Then If cb.FormControlType = xlCheckBox Then cb.OLEFormat.Object.Value = xlOn With cb.OLEFormat.Object Application

Run-time error '-2147352567 (80020009)' The index into the specified collection is out of bounds

你离开我真会死。 提交于 2020-01-24 12:23:11
问题 I am running periodically into an error: Run-time error '-2147352567 (80020009)' The index into the specified collection is out of bounds. This error is thrown on the line For Each cb In wks.Shapes Here is the full code: Sub SelectAll(wks As Worksheet) Application.ScreenUpdating = False Dim cb As Shape 'Loop through Checkboxes For Each cb In wks.Shapes If cb.Type = msoFormControl Then If cb.FormControlType = xlCheckBox Then cb.OLEFormat.Object.Value = xlOn With cb.OLEFormat.Object Application

Make alert window when clicking a disabled button

天大地大妈咪最大 提交于 2020-01-24 10:44:27
问题 I have a button which by default is disable, but when a checkbox is checked the button is then enabled. I would like to edit the script to make an alert window when the button is clicked when disabled, to make sure the user knows he/she has to check the checkbox. My script so far: <script type="text/javascript"> $('#terms').on('change', function(){ if ($(this).is(':checked')){ $('#customButton').removeProp('disabled'); } else{ $('#customButton').attr('disabled', 'disabled'); } }); </script>

Make alert window when clicking a disabled button

泄露秘密 提交于 2020-01-24 10:44:05
问题 I have a button which by default is disable, but when a checkbox is checked the button is then enabled. I would like to edit the script to make an alert window when the button is clicked when disabled, to make sure the user knows he/she has to check the checkbox. My script so far: <script type="text/javascript"> $('#terms').on('change', function(){ if ($(this).is(':checked')){ $('#customButton').removeProp('disabled'); } else{ $('#customButton').attr('disabled', 'disabled'); } }); </script>

why does checkchanged event does not fire on uncheck of checkbox in asp.net

扶醉桌前 提交于 2020-01-24 04:26:06
问题 Part of attendance tracker application which displays subjects of user and lets him mark his own attendance. With enableviewstate="true", the checkbox does not get unchecked and the checkchanged event does not execute. namespace portal { public partial class tracker : System.Web.UI.Page { String[] split; string day; protected void Page_Load(object sender, EventArgs e) { /* if (Session["uname"] == null) { Response.Redirect("Firstpage.aspx"); }*/ String[] split = new String[16]; DateTime d1 =

c# can i set a checkboxes name with a string?

假装没事ソ 提交于 2020-01-24 01:50:33
问题 So basically what im trying to do is using settLoadBooleans as changing the checkboxes state based on a text file that got loaded, the problem is i need to set the name of the checkbox using the string i got from that text file. in "public partial class MainForm : Form" public static string curDir = System.IO.Directory.GetCurrentDirectory(); public static string settingsdnt = curDir + @"\settings.dnt"; public static int settNo = 1; public static string[] readSettdnt = File.ReadAllLines

c# can i set a checkboxes name with a string?

故事扮演 提交于 2020-01-24 01:50:11
问题 So basically what im trying to do is using settLoadBooleans as changing the checkboxes state based on a text file that got loaded, the problem is i need to set the name of the checkbox using the string i got from that text file. in "public partial class MainForm : Form" public static string curDir = System.IO.Directory.GetCurrentDirectory(); public static string settingsdnt = curDir + @"\settings.dnt"; public static int settNo = 1; public static string[] readSettdnt = File.ReadAllLines

s:checkbox fieldValue always true in validation before submitting

本小妞迷上赌 提交于 2020-01-23 19:28:45
问题 I am using Struts 2 <s:checkbox /> in my form processing, along with AngularJS and jQuery. Before submitting, I need validation and until now we do this in the project: When we press Submit button, this function is called: $scope.processForm('myForm', '<s:url value="/form/validate.action" />', '<s:url value="/form/save.action" />'); , where processForm(formId, validateUrl, submitUrl) is a function defined by us: $scope.processForm = function(form, validateUrl, submitUrl) { window.scroll(0,0);

s:checkbox fieldValue always true in validation before submitting

匆匆过客 提交于 2020-01-23 19:28:26
问题 I am using Struts 2 <s:checkbox /> in my form processing, along with AngularJS and jQuery. Before submitting, I need validation and until now we do this in the project: When we press Submit button, this function is called: $scope.processForm('myForm', '<s:url value="/form/validate.action" />', '<s:url value="/form/save.action" />'); , where processForm(formId, validateUrl, submitUrl) is a function defined by us: $scope.processForm = function(form, validateUrl, submitUrl) { window.scroll(0,0);

Ajax call on checking a checkbox

試著忘記壹切 提交于 2020-01-23 12:16:08
问题 I am having a two checkboxes.Now on click of one of the checkbox I want to make an ajax call to a jsp page.That jsp page is to show a table that contains datat being fetched from database. Now,The problem is say i have two checkboxes like : <div class="search-inputs"> <input class="searchName" type="text" placeholder="Search Here.."></input> <input class="searchType1" type="checkbox" name="emailNotification"><label class="searchtype1label">Email Notification</label></input> <input class=