Hello I found this question about cross domain ajax request, which is close to my intention. As the other author I do not like a page-refresh to be done. Also I need to process the response later. One difference might be that I do include load a javascript from the other domain.
Preferably without an iframe, unless I can ensure the end-user does not see any differences.
My goal is to provide a javascript webservice, which is included (by random websites) with my delivered static (changeable) html, and javascript code. The javascript code does a request based on non-dynamic parameters and changes parts of the html code.
Maybe in past (I think to remember that some years ago it worked for me) it was possible to execute a post ajax-request if the script which does the post has been loaded from the domain the post is sent to.
Somehow this should be possible. Google Maps is a dynamic javascript application too?
One idea I also came up with is including a javascript (static or dynamically) which is generated by my server dynamically and not cached to avoid a dynamic post request.
How would you do that and which possibilities do I have beyond the answers of the above linked question?