I have a vbscript function which accepts a parameter which is the name of an object.
In javascript I can pass the parameter as a text string and then run the following code..
function first(dataSetName){
var dataRS = document.all[dataSetName].recordset;
dataRS.moveFirst();
;
}
I dont seem to be able to do this. I want to pass in a value to dataSetName and then use this as the reference to the element on the page. It could be a textbox or in the case above a dataisland.
REgards
Martyn
In javascript I can pass the parameter as a text string and then run the following code..
function first(dataSetName){
var dataRS = document.all[dataSetName].recordset;
dataRS.moveFirst();
;
}
I dont seem to be able to do this. I want to pass in a value to dataSetName and then use this as the reference to the element on the page. It could be a textbox or in the case above a dataisland.
REgards
Martyn