The Remote plugin facilitates cross domain communication. It uses what is now being called JSONp or JSON with padding. JavaScriptMVC's remote plugin allows data to be sent larger than a browsers GET data limit. However, the server side must be setup to take data in chunks.
The remote plugin assumes a REST like interface, similar to the Model plugin.
RemoteModel('note', 'https://noteit.jupiterit.com', {
validate: function(){
....
}
});
Note.find('all', find_callback) //calls find_callback with an array of all notes
Note.create({name: 'April 15th meeting.', content: 'Blah Blah Blah'}, create_callback);
Remote( name[, options, prototype_functions]) -> Remote
Generates a Remote class with the given underscored name, options, and class and prototype functionality.
find( params, callback)
create( params, callback)