October 28, 2007
3:57 pm | Last updated: October 28, 2007 at: 4:01 pm

Thierry Schellenbach has created a cross site Ajax plugin for the prototype framework 1.5.0. The cross site plugin simply allows you to do Ajax cross site remoting using the dynamic script tag method that other frameworks such as Dojo and jQuery have supported for awhile.


You can implement this by simply setting crossSite: true as a config parameter to Ajax.Request:

[javascript]
new Ajax.Request(’myurl’, {
method: ‘GET’,
crossSite: true,
parameters: Form.serialize(obj),
onLoading: function() {
//things to do at the start
},
onSuccess: function(transport) {
//things to do when everything goes well
},
onFailure: function(transport) {
//things to do when we encounter a failure
}
});
[/javascript]

More info….

Prototype, JavaScript, Plugin, Ajax, Cross site Ajax, Dojo, jQuery

Related Posts:

No followup yet

Leave a Response

Comment Preview
« Google Functional Marketing DashboardHoneypot Captcha »
Feed Icon

Subscribe via RSS or email: