We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › proXML cross-domain
Page Index Toggle Pages: 1
proXML cross-domain (Read 792 times)
proXML cross-domain
Dec 29th, 2006, 11:17pm
 
Hi, I'm trying to get a quick app that I developed locally, and I can't figure out whether this is a bug, or whether Java/Processing prevents you from accessing data from other domains.

I'm simply loading XML files from musicbrainz.com via proXML,

Code:
void findNewBand(String name) {
String url = "http://musicbrainz.org/ws/1/artist/?type=xml&name="+name.replaceAll(" ", "+");
println("loaded "+url);
//load ellipses from file if it exists
XMLInOut xmlInOut = new XMLInOut(this);
try{
xmlInOut.loadElement(url);
}
catch(Exception e){
println("problem: "+e);
}
}


But when I try to publish this, I have no luck. Should I use a local proxy? It isn't a huge issue but seems to be an annoying workaround. Or perhaps there's some kind of other workaround I could do?

Thanks for any help & wisdom.
Re: proXML cross-domain
Reply #1 - Dec 29th, 2006, 11:38pm
 
Unfortunately the java sandbox prevents applets from accessing data from other sites than the one the applet is on.

The workaround is, as you say, to do a local proxy to get the files.
Re: proXML cross-domain
Reply #2 - Dec 30th, 2006, 4:45am
 
Sounds reasonable. Thanks for the info.
Page Index Toggle Pages: 1