Hi there,
I seem to have an issue passing the xml i am reading to a function.. Basically i have this, this seems to work
$.get("content/xml/faq.xml", function(test) {
alert(test);// TEST CONTAINS THE XML
});
but i really want to isolate the function and have the get call a new function but "data" in my function is undefined. I do end up in processFaq so the call back is working but data is empty
$.get("content/xml/faq.xml", processFaq());
function processFaq(data) {
alert(data); // DATA IS UNDEFINED
}
Anybody know what i am doing wrong?
Thanks in advance