Which version of Seam are you using? I wasn't able to get the remoting working with the head version of 2.0.
btw you can't make cross domain ajax requests.
Are you setting Seam.Remoting.resourcePath? View the end of the source for the interface.js that is generated within your Seam app to see how this is set.
I am setting the Seam.Remoting.resourcePath, but it's still not working. Am I setting it correctly? Here's the code:
Both pages (the one in the application, and the static one outside the application) alert the same before and after values for Seam.Remoting.resourcePath:
The page served within the application works.
The static page server from outside the application shows the red "Please wait..." dialog, but never returns. Logging within the server-side function shows the function is not getting invoked.
Does the request hit ExecutionHandler? Set a breakpoint in ExecutionHandler.handle() and see if it gets hit when you send your request.
The client-site code on the DYNAMIC page served from the application DOES hit ExecutionHandler.handle
The client-side code on the STATIC page DOES NOT hit ExecutionHandler.handle
Figured it out. samdoyle is correct. You can't make "cross-domain" calls. The definitions of acceptable and unacceptable differences in "domain" can be found here. (e.g. in Firefox, even different port numbers are unacceptable).
More useful info on working around this issue by Using a Web Proxy for Cross-Domain XMLHttpRequest Calls
Thanks everyone for all your help!