I have code to navigate records held within an xml data island (data.xml)
function first(){
data.recordset.moveFirst();
}
function previous(){
if(data.recordset.absoluteposition>1)
data.recordset.movePrevious();
}
function next(){
if(data.recordset.absoluteposition <
data.recordset.recordcount)
data.recordset.moveNext();
}
function last(){
data.recordset.moveLast();
}
which works nicely.
However, what i need to do, is (when the user types in letters into an <input>) search the data island for nodes in which the name field starts with the letters typed in...
eg if user types "ice" I need to retrieve the "icehouse" node and the "icecream" nodes/records.
Can anyone here help me? I am not a Javascript programmer (and just learning about xml to boot), what i would like is something along the lines of
data.recordset.find(fieldname, 'string');
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!
function first(){
data.recordset.moveFirst();
}
function previous(){
if(data.recordset.absoluteposition>1)
data.recordset.movePrevious();
}
function next(){
if(data.recordset.absoluteposition <
data.recordset.recordcount)
data.recordset.moveNext();
}
function last(){
data.recordset.moveLast();
}
which works nicely.
However, what i need to do, is (when the user types in letters into an <input>) search the data island for nodes in which the name field starts with the letters typed in...
eg if user types "ice" I need to retrieve the "icehouse" node and the "icecream" nodes/records.
Can anyone here help me? I am not a Javascript programmer (and just learning about xml to boot), what i would like is something along the lines of
data.recordset.find(fieldname, 'string');
Tracey
Remember... True happiness is not getting what you want...
Its wanting what you have got!