Hi,

I have an application in domain A that makes a call to a CF9 application 
using ModelGlue Gesture in another domain, call it B.
If I make a call type GET to my Remotingservice.cfc component in domain B, 
it returns values. If I make a POST call to the same RemotingService, it 
does not do anything. In Firebug I get no errors (st5atus=200-OK, size =0)

This is my RemotingService executeEvent:

    <cffunction name="executeEvent" output="false" access="remote" 
returntype="any" returnFormat="plain">
        <cfargument name="eventName" type="string" required="true" />
        <cfargument name="values" type="struct" required="true" 
default="#structNew()#" >
        <cfargument name="returnValues" type="string" required="false" 
default="" />

        <!--- make a padded Json response callback --->
        <cfset local.result=super.executeEvent(arguments.eventName, 
arguments.values, arguments.returnValues) >
        <cfreturn arguments.callback & "(" & 
"""#ReplaceList(local.result.page,""",#Chr(13)##Chr(10)#","',")#""" & ")">
</cffunction>

This is the JQuery GET callback that works

    $.ajax({
        type: "GET",
        url: RemoteProxyURL,
        data: values,
        jsonp: true,
        success: function(data){
            targetElem.html(data)
        },
        dataType: "script"
    })

If I change 
        type: "GET",
to
        type: "POST",

I get no response, in Firebug I see 200-ok in the status column and 0 in 
the column column.

The ModelGlue remoting docs use type ="POST".

Is this POST call not working because it is a cross-domain request?

Marc

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to