-
XML from Java Servlet Problem
The Flash engine I built will pull from a static XML file but when I point the load URL to the Java servlet that generates the XML its not working. I have an onLoad function going so it should wait until the XML is loaded before it attempts to do anything with it. Does anyone know anything that I might have missed. Pulling the XML from a servlet is possible right? heh
heres the loading code:
var experimentRaw = new XML();
experimentRaw.onLoad = function(success) {
if (success) {
}
};
experimentRaw.load("abc.def.ghij.com:8080/xxx/experimentAsXML.do?experiment=1");
Thanks for any help
Last edited by FlynnBoyO; 09-05-2003 at 07:49 PM.
-
Senior Member
2 things that might be causing you trouble:
1) Your xml file (from servlet etc) has to be on the same web server that your flash file is on. Have a look in the Flash XML faq (linked below) for solutions of getting the xml file onto your server. This shouldn't be a problem if you are running it from your local machine (or flash debugger).
2) Make sure you have valid XML, Internet Explorer will validate your XML file if you put the URL in the browser.
Thanks
Luke
-
Fixed Problem
Its working now. THe problem was I just needed to ignor the whitespace.
THanks All
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|