Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function callBRE(data) {
- var url = 'apps/mots/cfcs/remote.cfc?method=getBREfuncRemote';
- $.ajax({type:'POST', url:url, data:data, dataType:'json', cache:false, async:false, success:function(result){
- if ( result.SUCCESS == true ) {
- $.dump(result);
- } else {
- alert("Error receiving data.");
- $.dump(result.error);
- };
- }});
- };
- In the .cfm:
- $('#ceForm').submit(function(e) {
- var obj = {};
- obj = getFormData();
- callBRE(obj);
- e.preventDefault();
- });
- The facade call:
- <cffunction name="getBREfuncRemote" output="false" access="remote" returntype="struct" returnformat="json">
- (bunch of arguments removed, as well as the creation of an xml document (doc) that is passed in)
- ret.data = application.brefunction.BREfunc(doc);
- return ret;
- Now is it not possible to return the XML as a key of a struct via JSON? Or am I doing it all f'd up? :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement