I've made a YAP application which incorporates AJAX. The AJAX works just fine outside of my YAP Preview page, but doesn't work inside the preview.
None of the examples I have found have been much help either

Anyone have any advice for me? Here's the code I'm using to AJAX in (same domain):
CODE
var callback = {
success: function(o) {
func(o.responseXML);
},
failure: function(o) {
alert("Your selection was not registered. Please try again."); //FAILURE
}
};
var transaction = YAHOO.util.Connect.asyncRequest('GET', url, callback, null);