0

Using AJAX in YAP

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 sad.gif
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);

2 Replies
  • osapi.http or gadgets.io.makeRequest could be another option for you. http://wiki.opensocial.org/index.php?title...ests_%28v0.9%29

    QUOTE (Jackson Rollins @ Sep 4 2010, 06:55 AM) <{POST_SNAPBACK}>
    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 :(var transaction = YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
    0
  • It turns out that XHR is trying to work on my app, but the o.statusText is showing "communication failture" as the failure result.

    granted, this works outside of yap. any ideas?
    0
  • Recent Posts

    in YAP