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 & HelpIntegration › proXML not working in applet form
Page Index Toggle Pages: 1
proXML not working in applet form (Read 1078 times)
proXML not working in applet form
Jul 23rd, 2006, 11:26pm
 
Hi,

I have a Processing app which grabs an XML file from the net using proXML: http://www.texone.org/proxml/.

When I run it from the Processing IDE it works just fine. However, when I export the applet and try to run that from the browser, it doesn't work. Why might this be and what can I do?

Thanks very much

Jon
Re: proXML not working in applet form
Reply #1 - Jul 24th, 2006, 1:32pm
 
Because of java security restructions. It is not possible to load xml from external sources. You can use php to pass the data to your application. Search the forum there are a lot of threads concerning this issue.
Re: proXML not working in applet form
Reply #2 - Jul 24th, 2006, 9:05pm
 
Thank you.
Re: proXML not working in applet form
Reply #3 - Jul 24th, 2006, 11:00pm
 
Arrr, I've written a proxy script which work for sure because I've tried it from the browser... and I am trying to load it with my applet, but for some reason it's just not playing ball. Do you see anything inherently wrong with this?

Code:
xmlio.loadElementFrom(applet.getDocumentBase().toString() + "proxy.php?artist=" + URLEncoder.encode(subjectName)); 



applet is a reference to the processing applet (this is in a different class)

Cheers
Re: proXML not working in applet form
Reply #4 - Jul 25th, 2006, 12:36am
 
Also, I did try to debug this... but I cannot seem to get anything to print to the Java console in Firefox. Any ideas on that?

Thanks
Page Index Toggle Pages: 1