Forum Discussion
ChuckGrigsby
8 years agoQrew Cadet
Not sure how you're getting the info but a typical jquery call I use is like this
$.get(dbid, data, callback)
then for callback it would be this instead
$.get(dbid, data, function(xml){
console.dirxml(xml)
$("SOME_FIELD_NAME", xml).each(function(){
$(this).text()
}
})
Ideally your query will only return one record but if it has more than that function will iterate through each record and display that fields value. Make sense?
$.get(dbid, data, callback)
then for callback it would be this instead
$.get(dbid, data, function(xml){
console.dirxml(xml)
$("SOME_FIELD_NAME", xml).each(function(){
$(this).text()
}
})
Ideally your query will only return one record but if it has more than that function will iterate through each record and display that fields value. Make sense?