Hi Everyone!
I have a problem I've been trying to solve by looking over the many JScript samples found here. They are all very educational but I don't yet see how to do what I need done.
I have a VBA program that that opens a website and reads both the html and the text of the page. This is working well at this time. I have added some checkboxes to the rendered page for my own purposes in order to indicate a selected record, each checkbox has a unique name.
I've recently added a checkbox to the column heading. The purpose of this checkbox is to cause all the other checkboxes to follow the state of the header checkbox. Either html CHECKED or not checked. When I change the state to CHECKED I want all the other checkboxes to be checked and vice versa.
There is no JScript on this web page that will do this, basically because I'm adding all this to the rendered page, but I think I can add my own JScript so that I can get this action to occur when viewed in my VBA browser control.
My problem is I just don't know enough about JScript to correctly code this. I've got an on click event in the checkbox:
<input type='checkbox' name='incident' onclick='ManageItemBoxes(this);'>
What should the ManageItemBoxes function look like?
Thanks for any help you can provide.
Lamar
I have a problem I've been trying to solve by looking over the many JScript samples found here. They are all very educational but I don't yet see how to do what I need done.
I have a VBA program that that opens a website and reads both the html and the text of the page. This is working well at this time. I have added some checkboxes to the rendered page for my own purposes in order to indicate a selected record, each checkbox has a unique name.
I've recently added a checkbox to the column heading. The purpose of this checkbox is to cause all the other checkboxes to follow the state of the header checkbox. Either html CHECKED or not checked. When I change the state to CHECKED I want all the other checkboxes to be checked and vice versa.
There is no JScript on this web page that will do this, basically because I'm adding all this to the rendered page, but I think I can add my own JScript so that I can get this action to occur when viewed in my VBA browser control.
My problem is I just don't know enough about JScript to correctly code this. I've got an on click event in the checkbox:
<input type='checkbox' name='incident' onclick='ManageItemBoxes(this);'>
What should the ManageItemBoxes function look like?
Thanks for any help you can provide.
Lamar