| || |
Any way to access Java Script funtions in Html?
This is related to the Interesting Behavior track.
I thought of this on the way home tonight.
There is a function in the HTML page that is fired from an HTML button that checks or unchecks all checkboxes in the page. I could probably get the programmer to add an optional argument to take the index of the check box I want to uncheck. That is if it is even possible access the function in Silktest. I haven't played with it yet but was wondering if anyone else has?
The function I am talking about looks like this.
function SelectAll ()
if (document.selection.selectAllInd.value == 'true')
var elval = false;
document.selection.selectAllInd.value = 'false'
document.selection.selectAllButton.value = 'Select All'
var elval = true;
document.selection.selectAllInd.value = 'true'
document.selection.selectAllButton.value = 'Clear All'
for (var i=0; i < document.selection.elements.length; i++)
var e = document.selection.elements[i];
if (e.name == 'checkBox')
e.checked = elval;