crossdomain.xml¶If you plan to do an XHR request to domain www.xyz.com, make sure that http://www.xyz.com/crossdomain.xml exists. Here is a sample crossdomain.xml: <?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy> <allow-access-from domain="*" /></cross-domain-policy>
GETful SOAP to JSON
Published in: PHP
A really simple SOAP to JSON and back script, for when you just want to kick SOAP in the groin.
With jQuery you'd just do:
$.getJSON('path/?function=myFunc&params={"param":"value"}&callback=?',function(json){alert(json);});
Et netVibe, bah utilise une solution à laquelle j'avais pensé mais (!!!) c'est relou quoi... Un script serveur intermédiaire qui va chercher les pages pour nous. Eux c'est sûrement en php... Moi je vais devoir faire du JAVA (SUPER ...).
Bref voici l'article qui m'a renseigné sur la solution de NetVibes...
http://blog.geekfg.net/2008/07/le-crossdomain-un-besoin-de-support.html
Après ils savent peut être pas tout mais ça me parait la seule solution valable... Ce qui est dommage dans cette solution c'est le double chargement, 1 pour appeler le script sur son domaine, et le deuxième de son serveur vers l'autre domaine... bref.
Universal Widget API (UWA) is a widget framework developed by Netvibes, mainly to integrate widgets to their platform, but compatible with other platforms such as iGoogle, Windows Vista, Mac OS X, etc. And now Drupal !
Configure Apache To Accept Cross-Site XMLHttpRequests on Ubuntu
15Oct09
1. Make sure you have the mod_headers Apache module installed. to do this check out /etc/apache2/mods-enabled/ and see if there’s a ‘headers.load’ in there. If there isn’t then just sudo ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/headers.load
2. Add the Access-Control-Allow-Origin header to all HTTP responses. You can do this by adding the line Header set Access-Control-Allow-Origin "*" to the desired <Directory> section in your configuration file (like the /etc/apache2/sites-available/default file). Saying "*" will allow cross-site XHR requests from anywhere. You can say "www.myothersite.com" to only accept requests from that origin.
3. Reload apache server. sudo /etc/init.d/apache2 reload
Maybe this is really obvious to a lot of people, but it wasn’t to me, so there you go.