[RCD] Plugin - AJAX GET request to cross domain
jakob-b at posteo.de
Mon Sep 12 11:21:25 CEST 2016
I am developing a plugin, where I wanna ask my personal web API about
some email details.
First, I tried to make a jquery ajax request.
Firebug shows me the correct response, but I always get a 404 error. So
the plugin does not get the result.
I can imagine that is because a cross domain issue.
Then I tried to do an ajax request to my server side plugin code, where
I would try to make a php request to my API. But to be honest, I can't
figure out how to send my values with such a GET request, process them
within the php function and send it back.
Of course, I have read the documentation. I also analysed some other
plugins, but it is still just random guessing for me.
Thanks for any help.
var value = "test"
In my php I do:
$this->register_action('plugin.someaction', array($this, 'actions'));
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 473 bytes
Desc: OpenPGP digital signature
More information about the dev