[dokuwiki] Re: ajax consuming cross domain webservice
- From: TNHarris <telliamed@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 23 Apr 2009 19:07:16 -0400
On Fri, 27 Mar 2009 09:57:09 +1300
James Lin <guanfenglin@xxxxxxxxx> wrote:
>
> I was coding some ajax stuff consuming cross domain webservices, I was
> having trouble with the cross domain security issue, ...
... snip ...
> $('searchStatus').innerHTML = 'Searching';
> var url = 'lib/plugins/aclmadeeasy/proxy.php?url='+escape('
> http://test/PersonFinderPOC/service.asmx?wsdl')+'&op=search&searchQuery='+escape($('advancedWho').value
> );
> http.open("GET", url, true);
> http.onreadystatechange = callBackResult;
> http.send(null);
> }
>
Do you really want to be sending URLs with the request? Better to
hardcode the destination on the server-side and only send the arguments
from js.
-- tom
telliamed@xxxxxxxxxxxxx
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: